class Azure::ServiceFabric::V6_4_0_36::Models::ServicesHealthEvaluation

Represents health evaluation for services of a certain service type belonging to an application, containing health evaluations for each unhealthy service that impacted current aggregated health state. Can be returned when evaluating application health and the aggregated health state is either Error or Warning.

Attributes

Kind[RW]
max_percent_unhealthy_services[RW]

@return [Integer] Maximum allowed percentage of unhealthy services from the ServiceTypeHealthPolicy.

service_type_name[RW]

@return [String] Name of the service type of the services.

total_count[RW]

@return [Integer] Total number of services of the current service type in the application from the health store.

unhealthy_evaluations[RW]

@return [Array<HealthEvaluationWrapper>] List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ServiceHealthEvaluation that impacted the aggregated health.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.4.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb, line 47
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Services',
    type: {
      name: 'Composite',
      class_name: 'ServicesHealthEvaluation',
      model_properties: {
        aggregated_health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'AggregatedHealthState',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Description',
          type: {
            name: 'String'
          }
        },
        Kind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Kind',
          type: {
            name: 'String'
          }
        },
        service_type_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServiceTypeName',
          type: {
            name: 'String'
          }
        },
        max_percent_unhealthy_services: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MaxPercentUnhealthyServices',
          type: {
            name: 'Number'
          }
        },
        total_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'TotalCount',
          type: {
            name: 'Number'
          }
        },
        unhealthy_evaluations: {
          client_side_validation: true,
          required: false,
          serialized_name: 'UnhealthyEvaluations',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HealthEvaluationWrapperElementType',
                type: {
                  name: 'Composite',
                  class_name: 'HealthEvaluationWrapper'
                }
            }
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.4.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb, line 20
def initialize
  @Kind = "Services"
end