Class: Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterHealthPolicy
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterHealthPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb
Overview
Defines a health policy used to evaluate the health of the cluster or of a cluster node.
Instance Attribute Summary collapse
-
#application_health_policies ⇒ Hash{String => ApplicationHealthPolicy}
application health policy map used to evaluate the health of an application or one of its children entities.
-
#max_percent_unhealthy_applications ⇒ Integer
applications before reporting an error.
-
#max_percent_unhealthy_nodes ⇒ Integer
before reporting an error.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ClusterHealthPolicy class as Ruby Hash.
Instance Attribute Details
#application_health_policies ⇒ Hash{String => ApplicationHealthPolicy}
application health policy map used to evaluate the health of an application or one of its children entities.
56 57 58 |
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb', line 56 def application_health_policies @application_health_policies end |
#max_percent_unhealthy_applications ⇒ Integer
applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.
The percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error. If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning. This is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap. The computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero. . Default value: 0 .
51 52 53 |
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb', line 51 def max_percent_unhealthy_applications @max_percent_unhealthy_applications end |
#max_percent_unhealthy_nodes ⇒ Integer
before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.
The percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error. If the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning. The percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster. The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.
In large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that. . Default value: 0 .
33 34 35 |
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb', line 33 def max_percent_unhealthy_nodes @max_percent_unhealthy_nodes end |
Class Method Details
.mapper ⇒ Object
Mapper for ClusterHealthPolicy class as Ruby Hash. This will be used for serialization/deserialization.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb', line 63 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ClusterHealthPolicy', type: { name: 'Composite', class_name: 'ClusterHealthPolicy', model_properties: { max_percent_unhealthy_nodes: { client_side_validation: true, required: false, serialized_name: 'maxPercentUnhealthyNodes', default_value: 0, constraints: { InclusiveMaximum: 100, InclusiveMinimum: 0 }, type: { name: 'Number' } }, max_percent_unhealthy_applications: { client_side_validation: true, required: false, serialized_name: 'maxPercentUnhealthyApplications', default_value: 0, constraints: { InclusiveMaximum: 100, InclusiveMinimum: 0 }, type: { name: 'Number' } }, application_health_policies: { client_side_validation: true, required: false, serialized_name: 'applicationHealthPolicies', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'ApplicationHealthPolicyElementType', type: { name: 'Composite', class_name: 'ApplicationHealthPolicy' } } } } } } } end |