Class: Azure::ServiceFabric::V6_3_0_9::Models::EntityHealth

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/entity_health.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#aggregated_health_stateHealthState

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’

Returns:

  • (HealthState)

    The HealthState representing the aggregated



22
23
24
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/entity_health.rb', line 22

def aggregated_health_state
  @aggregated_health_state
end

#health_eventsArray<HealthEvent>

entity.

Returns:

  • (Array<HealthEvent>)

    The list of health events reported on the



26
27
28
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/entity_health.rb', line 26

def health_events
  @health_events
end

#health_statisticsHealthStatistics

types of the queried entity.

Returns:



35
36
37
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/entity_health.rb', line 35

def health_statistics
  @health_statistics
end

#unhealthy_evaluationsArray<HealthEvaluationWrapper>

show why the current aggregated health state was returned by Health Manager.

Returns:



31
32
33
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/entity_health.rb', line 31

def unhealthy_evaluations
  @unhealthy_evaluations
end

Class Method Details

.mapperObject

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



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/6.3.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