Class: Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthStateChunk

Inherits:
EntityHealthStateChunk show all
Includes:
MsRestAzure
Defined in:
lib/6.4.0.36/generated/azure_service_fabric/models/partition_health_state_chunk.rb

Overview

Represents the health state chunk of a partition, which contains the partition ID, its aggregated health state and any replicas that respect the filters in the cluster health chunk query description.

Instance Attribute Summary collapse

Attributes inherited from EntityHealthStateChunk

#health_state

Class Method Summary collapse

Instance Attribute Details

#partition_idObject

Returns The Id of the partition.

Returns:

  • The Id of the partition.



18
19
20
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/partition_health_state_chunk.rb', line 18

def partition_id
  @partition_id
end

#replica_health_state_chunksReplicaHealthStateChunkList

chunks belonging to the partition that respect the filters in the cluster health chunk query description.

Returns:



23
24
25
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/partition_health_state_chunk.rb', line 23

def replica_health_state_chunks
  @replica_health_state_chunks
end

Class Method Details

.mapperObject

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



30
31
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
62
63
64
65
66
67
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/partition_health_state_chunk.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PartitionHealthStateChunk',
    type: {
      name: 'Composite',
      class_name: 'PartitionHealthStateChunk',
      model_properties: {
        health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HealthState',
          type: {
            name: 'String'
          }
        },
        partition_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionId',
          type: {
            name: 'String'
          }
        },
        replica_health_state_chunks: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReplicaHealthStateChunks',
          type: {
            name: 'Composite',
            class_name: 'ReplicaHealthStateChunkList'
          }
        }
      }
    }
  }
end