ServiceEvent Class

Represents the base for all Service Events.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: ServiceCreatedEvent, ServiceDeletedEvent, ServiceNewHealthReportEvent, ServiceHealthReportExpiredEvent

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

Inheritance
azure.servicefabric.models._models_py3.FabricEvent
ServiceEvent

Constructor

ServiceEvent(*, event_instance_id: str, time_stamp, service_id: str, 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.

service_id
str
Required

Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions.