Class: Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterHealthPolicy
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterHealthPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-07-01-preview/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
-
#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
#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.
24 25 26 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb', line 24 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.
19 20 21 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb', line 19 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.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb', line 31 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', constraints: { InclusiveMaximum: 100, InclusiveMinimum: 0 }, type: { name: 'Number' } }, max_percent_unhealthy_applications: { client_side_validation: true, required: false, serialized_name: 'maxPercentUnhealthyApplications', constraints: { InclusiveMaximum: 100, InclusiveMinimum: 0 }, type: { name: 'Number' } } } } } end |