Class: Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeDeltaHealthPolicy

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb

Overview

Represents the delta health policy used to evaluate the health of services belonging to a service type when upgrading the cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#max_percent_delta_unhealthy_servicesInteger

degradation allowed during cluster upgrades. The delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. . Default value: 0 .

Returns:

  • (Integer)

    The maximum allowed percentage of services health



25
26
27
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb', line 25

def max_percent_delta_unhealthy_services
  @max_percent_delta_unhealthy_services
end

Class Method Details

.mapperObject

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



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
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceTypeDeltaHealthPolicy',
    type: {
      name: 'Composite',
      class_name: 'ServiceTypeDeltaHealthPolicy',
      model_properties: {
        max_percent_delta_unhealthy_services: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maxPercentDeltaUnhealthyServices',
          default_value: 0,
          constraints: {
            InclusiveMaximum: 100,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end