Class: Azure::ServiceFabric::V6_5_0_36::Models::HealthStatistics

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

Overview

The health statistics of an entity, returned as part of the health query result when the query description is configured to include statistics. The statistics include health state counts for all children types of the current entity. For example, for cluster, the health statistics include health state counts for nodes, applications, services, partitions, replicas, deployed applications and deployed service packages. For partition, the health statistics include health counts for replicas.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#health_state_count_listArray<EntityKindHealthStateCount>

per entity kind, which keeps track of how many children of the queried entity are in Ok, Warning and Error state.

Returns:



25
26
27
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/health_statistics.rb', line 25

def health_state_count_list
  @health_state_count_list
end

Class Method Details

.mapperObject

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



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/health_statistics.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'HealthStatistics',
    type: {
      name: 'Composite',
      class_name: 'HealthStatistics',
      model_properties: {
        health_state_count_list: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HealthStateCountList',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'EntityKindHealthStateCountElementType',
                type: {
                  name: 'Composite',
                  class_name: 'EntityKindHealthStateCount'
                }
            }
          }
        }
      }
    }
  }
end