StatefulServiceReplicaInfo Class

Represents a stateful service replica. This includes information about the identity, role, status, health, node name, uptime, and other details about the replica.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.servicefabric.models._models_py3.ReplicaInfo
StatefulServiceReplicaInfo

Constructor

StatefulServiceReplicaInfo(*, replica_status=None, health_state=None, node_name: Optional[str] = None, address: Optional[str] = None, last_in_build_duration_in_seconds: Optional[str] = None, replica_role=None, replica_id: Optional[str] = None, **kwargs)

Parameters

replica_status
str or ReplicaStatus
Required

The status of a replica of a service. Possible values include: 'Invalid', 'InBuild', 'Standby', 'Ready', 'Down', 'Dropped'

health_state
str or HealthState
Required

The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'

node_name
str
Required

The name of a Service Fabric node.

address
str
Required

The address the replica is listening on.

last_in_build_duration_in_seconds
str
Required

The last in build duration of the replica in seconds.

service_kind
str
Required

Required. Constant filled by server.

replica_role
str or ReplicaRole
Required

The role of a replica of a stateful service. Possible values include: 'Unknown', 'None', 'Primary', 'IdleSecondary', 'ActiveSecondary', 'IdleAuxiliary', 'ActiveAuxiliary', 'PrimaryAuxiliary'

replica_id
str
Required

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.