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.ServiceFabricManagedClusters.Models.ServiceTypeHealthPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabricManagedClusters.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(Int32, Int32, Int32)

Initializes a new instance of ServiceTypeHealthPolicy.

Properties

MaxPercentUnhealthyPartitionsPerService

The maximum allowed percentage of unhealthy partitions per service.

The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service is considered in error. If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service. The computation rounds up to tolerate one failure on small numbers of partitions.

MaxPercentUnhealthyReplicasPerPartition

The maximum allowed percentage of unhealthy replicas per partition.

The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition is considered in error. If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. The computation rounds up to tolerate one failure on small numbers of replicas.

MaxPercentUnhealthyServices

The maximum allowed percentage of unhealthy services.

The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error. If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. This is calculated by dividing the number of unhealthy services of the specific service type over the total number of services of the specific service type. The computation rounds up to tolerate one failure on small numbers of services.

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