Udostępnij za pośrednictwem


ServiceTypeHealthPolicy Class

Definition

Represents the health policy used to evaluate the health of services belonging to a service type.

public class ServiceTypeHealthPolicy
public class ServiceTypeHealthPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceFabric.Models.ServiceTypeHealthPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabric.Models.ServiceTypeHealthPolicy>
type ServiceTypeHealthPolicy = class
type ServiceTypeHealthPolicy = class
    interface IJsonModel<ServiceTypeHealthPolicy>
    interface IPersistableModel<ServiceTypeHealthPolicy>
Public Class ServiceTypeHealthPolicy
Public Class ServiceTypeHealthPolicy
Implements IJsonModel(Of ServiceTypeHealthPolicy), IPersistableModel(Of ServiceTypeHealthPolicy)
Inheritance
ServiceTypeHealthPolicy
Implements

Constructors

ServiceTypeHealthPolicy()

Initializes a new instance of ServiceTypeHealthPolicy.

Properties

MaxPercentUnhealthyServices

The maximum percentage of services allowed to be unhealthy before your application is considered in error.

Explicit Interface Implementations

IJsonModel<ServiceTypeHealthPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ServiceTypeHealthPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ServiceTypeHealthPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ServiceTypeHealthPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ServiceTypeHealthPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to