Class: Azure::ServiceFabric::V7_0_0_42::Models::ClusterHealthPolicies

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/7.0.0.42/generated/azure_service_fabric/models/cluster_health_policies.rb

Overview

Health policies to evaluate cluster health.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#application_health_policy_mapArray<ApplicationHealthPolicyMapItem>

contains specific application health policies for different applications. Each entry specifies as key the application name and as value an ApplicationHealthPolicy used to evaluate the application health. If an application is not specified in the map, the application health evaluation uses the ApplicationHealthPolicy found in its application manifest or the default application health policy (if no health policy is defined in the manifest). The map is empty by default.

Returns:



25
26
27
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/cluster_health_policies.rb', line 25

def application_health_policy_map
  @application_health_policy_map
end

#cluster_health_policyClusterHealthPolicy

the health of the cluster or of a cluster node.

Returns:



29
30
31
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/cluster_health_policies.rb', line 29

def cluster_health_policy
  @cluster_health_policy
end

Class Method Details

.mapperObject

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



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
69
70
71
72
73
74
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/cluster_health_policies.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ClusterHealthPolicies',
    type: {
      name: 'Composite',
      class_name: 'ClusterHealthPolicies',
      model_properties: {
        application_health_policy_map: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ApplicationHealthPolicyMap',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ApplicationHealthPolicyMapItemElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationHealthPolicyMapItem'
                }
            }
          }
        },
        cluster_health_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ClusterHealthPolicy',
          type: {
            name: 'Composite',
            class_name: 'ClusterHealthPolicy'
          }
        }
      }
    }
  }
end