Sha256: 364ae2a063efab40ea88c76291e51682e2c6528d855c0adedb11624befd25472

Contents?: true

Size: 1.92 KB

Versions: 4

Compression:

Stored size: 1.92 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ServiceFabric::Mgmt::V2018_02_01
  module Models
    #
    # Represents the delta health policy used to evaluate the health of
    # services belonging to a service type when upgrading the cluster.
    #
    #
    class ServiceTypeDeltaHealthPolicy

      include MsRestAzure

      # @return [Integer] The maximum allowed percentage of services health
      # degradation allowed during cluster upgrades.
      # The delta is measured between the state of the services at the
      # beginning of upgrade and the state of the services 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.
      # . Default value: 0 .
      attr_accessor :max_percent_delta_unhealthy_services


      #
      # Mapper for ServiceTypeDeltaHealthPolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServiceTypeDeltaHealthPolicy',
          type: {
            name: 'Composite',
            class_name: 'ServiceTypeDeltaHealthPolicy',
            model_properties: {
              max_percent_delta_unhealthy_services: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxPercentDeltaUnhealthyServices',
                default_value: 0,
                constraints: {
                  InclusiveMaximum: 100,
                  InclusiveMinimum: 0
                },
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_service_fabric-0.17.3 lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb
azure_mgmt_service_fabric-0.17.2 lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb
azure_mgmt_service_fabric-0.17.1 lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb
azure_mgmt_service_fabric-0.17.0 lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb