class Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterHealthPolicy

Defines a health policy used to evaluate the health of the cluster or of a cluster node.

Attributes

max_percent_unhealthy_applications[RW]

@return [Integer] The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.

max_percent_unhealthy_nodes[RW]

@return [Integer] The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.

Public Class Methods

mapper() click to toggle source

Mapper for ClusterHealthPolicy class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2016-09-01/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