共用方式為


ArmApplicationHealthPolicy Constructors

Definition

Overloads

ArmApplicationHealthPolicy()

Initializes a new instance of the ArmApplicationHealthPolicy class.

ArmApplicationHealthPolicy(Nullable<Boolean>, Nullable<Int32>, ArmServiceTypeHealthPolicy, IDictionary<String,ArmServiceTypeHealthPolicy>)

Initializes a new instance of the ArmApplicationHealthPolicy class.

ArmApplicationHealthPolicy()

Initializes a new instance of the ArmApplicationHealthPolicy class.

public ArmApplicationHealthPolicy ();
Public Sub New ()

Applies to

ArmApplicationHealthPolicy(Nullable<Boolean>, Nullable<Int32>, ArmServiceTypeHealthPolicy, IDictionary<String,ArmServiceTypeHealthPolicy>)

Initializes a new instance of the ArmApplicationHealthPolicy class.

public ArmApplicationHealthPolicy (bool? considerWarningAsError = default, int? maxPercentUnhealthyDeployedApplications = default, Microsoft.Azure.Management.ServiceFabric.Models.ArmServiceTypeHealthPolicy defaultServiceTypeHealthPolicy = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.ServiceFabric.Models.ArmServiceTypeHealthPolicy> serviceTypeHealthPolicyMap = default);
new Microsoft.Azure.Management.ServiceFabric.Models.ArmApplicationHealthPolicy : Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.ServiceFabric.Models.ArmServiceTypeHealthPolicy * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.ServiceFabric.Models.ArmServiceTypeHealthPolicy> -> Microsoft.Azure.Management.ServiceFabric.Models.ArmApplicationHealthPolicy
Public Sub New (Optional considerWarningAsError As Nullable(Of Boolean) = Nothing, Optional maxPercentUnhealthyDeployedApplications As Nullable(Of Integer) = Nothing, Optional defaultServiceTypeHealthPolicy As ArmServiceTypeHealthPolicy = Nothing, Optional serviceTypeHealthPolicyMap As IDictionary(Of String, ArmServiceTypeHealthPolicy) = Nothing)

Parameters

considerWarningAsError
Nullable<Boolean>

Indicates whether warnings are treated with the same severity as errors.

maxPercentUnhealthyDeployedApplications
Nullable<Int32>

The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100. The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error. This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster. The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.

defaultServiceTypeHealthPolicy
ArmServiceTypeHealthPolicy

The health policy used by default to evaluate the health of a service type.

serviceTypeHealthPolicyMap
IDictionary<String,ArmServiceTypeHealthPolicy>

The map with service type health policy per service type name. The map is empty by default.

Applies to