Class: Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceReplicaHealthState
- Inherits:
-
ReplicaHealthState
- Object
- EntityHealthState
- ReplicaHealthState
- Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceReplicaHealthState
- Includes:
- MsRestAzure
- Defined in:
- lib/6.4.0.36/generated/azure_service_fabric/models/stateful_service_replica_health_state.rb
Overview
Represents the health state of the stateful service replica, which contains the replica ID and the aggregated health state.
Instance Attribute Summary collapse
-
#replica_id ⇒ String
Service Fabric to uniquely identify a replica of a partition.
-
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
Attributes inherited from ReplicaHealthState
Attributes inherited from EntityHealthState
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for StatefulServiceReplicaHealthState class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ StatefulServiceReplicaHealthState
constructor
A new instance of StatefulServiceReplicaHealthState.
Constructor Details
#initialize ⇒ StatefulServiceReplicaHealthState
Returns a new instance of StatefulServiceReplicaHealthState.
17 18 19 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/stateful_service_replica_health_state.rb', line 17 def initialize @ServiceKind = "Stateful" end |
Instance Attribute Details
#replica_id ⇒ String
Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id.
30 31 32 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/stateful_service_replica_health_state.rb', line 30 def replica_id @replica_id end |
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
21 22 23 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/stateful_service_replica_health_state.rb', line 21 def ServiceKind @ServiceKind end |
Class Method Details
.mapper ⇒ Object
Mapper for StatefulServiceReplicaHealthState class as Ruby Hash. This will be used for serialization/deserialization.
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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/stateful_service_replica_health_state.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Stateful', type: { name: 'Composite', class_name: 'StatefulServiceReplicaHealthState', model_properties: { aggregated_health_state: { client_side_validation: true, required: false, serialized_name: 'AggregatedHealthState', type: { name: 'String' } }, partition_id: { client_side_validation: true, required: false, serialized_name: 'PartitionId', type: { name: 'String' } }, ServiceKind: { client_side_validation: true, required: true, serialized_name: 'ServiceKind', type: { name: 'String' } }, replica_id: { client_side_validation: true, required: false, serialized_name: 'ReplicaId', type: { name: 'String' } } } } } end |