ehs – Functions specific to the event handling system (EHS)

This module is used when executing on SR OS only. On a remote machine, the event handling system (EHS) and its functionality are not supported.

The ehs module provides functions for obtaining the data from the specific event that triggered the execution of a Python application from the event handling system (EHS).

Classes

class ehs.get_event

The EHS event that triggered the execution of the Python application.

appid()

The name of the application that generated the event.

Returns

Application name.

Return type

str

eventid()

The event ID number of the application.

Returns

Event ID.

Return type

int

severity()

The severity level of the event.

Returns

Severity of the event.

Return type

str

subject()

The subject or affected object of the event.

Returns

Subject or affected object.

Return type

str

gentime()

The formatted time the event was generated in UTC.

Returns

The timestamp in ISO 8601 format that the event was generated.

Return type

str

timestamp()

The formatted time the event was generated.

Returns

The timestamp in seconds.

Return type

float

eventparameters()

The additional parameters specific to the event that caused the Python application to execute.

Returns

Additional attributes of the specific event.

Return type

dict