class Azure::ServiceFabric::V6_5_0_36::Models::ServiceHealth

Information about the health of a Service Fabric service.

Attributes

name[RW]

@return [String] The name of the service whose health information is described by this object.

partition_health_states[RW]

@return [Array<PartitionHealthState>] The list of partition health states associated with the service.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.5.0.36/generated/azure_service_fabric/models/service_health.rb, line 28
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceHealth',
    type: {
      name: 'Composite',
      class_name: 'ServiceHealth',
      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'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Name',
          type: {
            name: 'String'
          }
        },
        partition_health_states: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionHealthStates',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PartitionHealthStateElementType',
                type: {
                  name: 'Composite',
                  class_name: 'PartitionHealthState'
                }
            }
          }
        }
      }
    }
  }
end