class Azure::ServiceFabric::V6_2_0_9::Models::ReplicaHealth

Represents a base class for stateful service replica or stateless service instance health. Contains the replica aggregated health state, the health events and the unhealthy evaluations.

Attributes

ServiceKind[RW]
partition_id[RW]

@return Id of the partition to which this replica belongs.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.2.0.9/generated/azure_service_fabric/models/replica_health.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ReplicaHealth',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'ServiceKind',
      uber_parent: 'EntityHealth',
      class_name: 'ReplicaHealth',
      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'
          }
        },
        partition_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.2.0.9/generated/azure_service_fabric/models/replica_health.rb, line 19
def initialize
  @ServiceKind = "ReplicaHealth"
end