Class: Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradeDeltaHealthPolicy

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

Overview

Describes the delta health policies for the cluster upgrade.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#application_delta_health_policiesHash{String => ApplicationDeltaHealthPolicy}

application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster.

Returns:



50
51
52
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb', line 50

def application_delta_health_policies
  @application_delta_health_policies
end

#max_percent_delta_unhealthy_applicationsInteger

degradation allowed during cluster upgrades. The delta is measured between the state of the applications at the beginning of upgrade and the state of the applications 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. System services are not included in this.

Returns:

  • (Integer)

    The maximum allowed percentage of applications health



45
46
47
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb', line 45

def max_percent_delta_unhealthy_applications
  @max_percent_delta_unhealthy_applications
end

#max_percent_delta_unhealthy_nodesInteger

degradation allowed during cluster upgrades. The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes 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.

Returns:

  • (Integer)

    The maximum allowed percentage of nodes health



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

def max_percent_delta_unhealthy_nodes
  @max_percent_delta_unhealthy_nodes
end

#max_percent_upgrade_domain_delta_unhealthy_nodesInteger

nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.

Returns:

  • (Integer)

    The maximum allowed percentage of upgrade domain



34
35
36
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb', line 34

def max_percent_upgrade_domain_delta_unhealthy_nodes
  @max_percent_upgrade_domain_delta_unhealthy_nodes
end

Class Method Details

.mapperObject

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



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb', line 57

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ClusterUpgradeDeltaHealthPolicy',
    type: {
      name: 'Composite',
      class_name: 'ClusterUpgradeDeltaHealthPolicy',
      model_properties: {
        max_percent_delta_unhealthy_nodes: {
          client_side_validation: true,
          required: true,
          serialized_name: 'maxPercentDeltaUnhealthyNodes',
          constraints: {
            InclusiveMaximum: 100,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        max_percent_upgrade_domain_delta_unhealthy_nodes: {
          client_side_validation: true,
          required: true,
          serialized_name: 'maxPercentUpgradeDomainDeltaUnhealthyNodes',
          constraints: {
            InclusiveMaximum: 100,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        max_percent_delta_unhealthy_applications: {
          client_side_validation: true,
          required: true,
          serialized_name: 'maxPercentDeltaUnhealthyApplications',
          constraints: {
            InclusiveMaximum: 100,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        application_delta_health_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'applicationDeltaHealthPolicies',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ApplicationDeltaHealthPolicyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationDeltaHealthPolicy'
                }
            }
          }
        }
      }
    }
  }
end