class Azure::ServiceFabric::V6_2_0_9::Models::EntityHealth

Health information common to all entities in the cluster. It contains the aggregated health state, health events and unhealthy evaluation.

Attributes

aggregated_health_state[RW]

@return [HealthState] The HealthState representing the aggregated health state of the entity computed by Health Manager. The health evaluation of the entity reflects all events reported on the entity and its children (if any). The aggregation is done by applying the desired health policy. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'

health_events[RW]

@return [Array<HealthEvent>] The list of health events reported on the entity.

health_statistics[RW]

@return [HealthStatistics] Shows the health statistics for all children types of the queried entity.

unhealthy_evaluations[RW]

@return [Array<HealthEvaluationWrapper>] The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.2.0.9/generated/azure_service_fabric/models/entity_health.rb, line 42
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EntityHealth',
    type: {
      name: 'Composite',
      class_name: 'EntityHealth',
      model_properties: {
        aggregated_health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'AggregatedHealthState',
          type: {
            name: 'String'
          }
        },
        health_events: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HealthEvents',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HealthEventElementType',
                type: {
                  name: 'Composite',
                  class_name: 'HealthEvent'
                }
            }
          }
        },
        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'
                }
            }
          }
        },
        health_statistics: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HealthStatistics',
          type: {
            name: 'Composite',
            class_name: 'HealthStatistics'
          }
        }
      }
    }
  }
end