Class: Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeHealthPolicy

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

Overview

Represents the health policy used to evaluate the health of services belonging to a service type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#max_percent_unhealthy_servicesInteger

unhealthy before your application is considered in error. . Default value: 0 .

Returns:

  • (Integer)

    The maximum percentage of services allowed to be



20
21
22
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb', line 20

def max_percent_unhealthy_services
  @max_percent_unhealthy_services
end

Class Method Details

.mapperObject

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



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb', line 27

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