Class: Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy

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

Overview

Defines a health policy used to evaluate the health of an application or one of its children entities.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#default_service_type_health_policyServiceTypeHealthPolicy

evaluate the health of a service type.

Returns:



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

def default_service_type_health_policy
  @default_service_type_health_policy
end

#service_type_health_policiesHash{String => ServiceTypeHealthPolicy}

type health policy per service type name. The map is empty by default.

Returns:



23
24
25
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/application_health_policy.rb', line 23

def service_type_health_policies
  @service_type_health_policies
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApplicationHealthPolicy',
    type: {
      name: 'Composite',
      class_name: 'ApplicationHealthPolicy',
      model_properties: {
        default_service_type_health_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'defaultServiceTypeHealthPolicy',
          type: {
            name: 'Composite',
            class_name: 'ServiceTypeHealthPolicy'
          }
        },
        service_type_health_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'serviceTypeHealthPolicies',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServiceTypeHealthPolicyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ServiceTypeHealthPolicy'
                }
            }
          }
        }
      }
    }
  }
end