ReplicaEvent Class

Represents the base for all Replica Events.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: StatefulReplicaNewHealthReportEvent, StatefulReplicaHealthReportExpiredEvent, StatelessReplicaNewHealthReportEvent, StatelessReplicaHealthReportExpiredEvent, ChaosReplicaRemovalScheduledEvent, ChaosReplicaRestartScheduledEvent

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

Inheritance
azure.servicefabric.models._models_py3.FabricEvent
ReplicaEvent

Constructor

ReplicaEvent(*, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, category: Optional[str] = None, has_correlated_events: Optional[bool] = None, **kwargs)

Parameters

event_instance_id
str
Required

Required. The identifier for the FabricEvent instance.

category
str
Required

The category of event.

time_stamp
datetime
Required

Required. The time event was logged.

has_correlated_events
bool
Required

Shows there is existing related events available.

kind
str
Required

Required. Constant filled by server.

partition_id
str
Required

Required. An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition ID is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be different.

replica_id
<xref:long>
Required

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.