class Azure::ServiceFabric::V6_2_0_9::Models::StatefulServiceReplicaInfo
Represents a stateful service replica. This includes information about the identity, role, status, health, node name, uptime, and other details about the replica.
Attributes
@return [String] Id of a stateful service replica. ReplicaId is used by 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.
@return [ReplicaRole] The role of a replica of a stateful service. Possible values include: 'Unknown', 'None', 'Primary', 'IdleSecondary', 'ActiveSecondary'
Public Class Methods
Mapper for StatefulServiceReplicaInfo
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/6.2.0.9/generated/azure_service_fabric/models/stateful_service_replica_info.rb, line 43 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Stateful', type: { name: 'Composite', class_name: 'StatefulServiceReplicaInfo', model_properties: { replica_status: { client_side_validation: true, required: false, serialized_name: 'ReplicaStatus', type: { name: 'String' } }, health_state: { client_side_validation: true, required: false, serialized_name: 'HealthState', type: { name: 'String' } }, node_name: { client_side_validation: true, required: false, serialized_name: 'NodeName', type: { name: 'String' } }, address: { client_side_validation: true, required: false, serialized_name: 'Address', type: { name: 'String' } }, last_in_build_duration_in_seconds: { client_side_validation: true, required: false, serialized_name: 'LastInBuildDurationInSeconds', type: { name: 'String' } }, ServiceKind: { client_side_validation: true, required: true, serialized_name: 'ServiceKind', type: { name: 'String' } }, replica_role: { client_side_validation: true, required: false, serialized_name: 'ReplicaRole', type: { name: 'String' } }, replica_id: { client_side_validation: true, required: false, serialized_name: 'ReplicaId', type: { name: 'String' } } } } } end
# File lib/6.2.0.9/generated/azure_service_fabric/models/stateful_service_replica_info.rb, line 18 def initialize @ServiceKind = "Stateful" end