class Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy

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

Attributes

default_service_type_health_policy[RW]

@return [ServiceTypeHealthPolicy] The health policy used by default to evaluate the health of a service type.

service_type_health_policies[RW]

@return [Hash{String => ServiceTypeHealthPolicy}] The map with service type health policy per service type name. The map is empty by default.

Private Class Methods

mapper() click to toggle source

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

# 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