ProtectionEventInfo

class c104.ProtectionEventInfo

This class represents all specific protection equipment single event point information

__init__(self: c104.ProtectionEventInfo, state: c104.EventState, elapsed_ms: c104.UInt16, quality: c104.Quality = c104.Quality(), recorded_at: Optional[datetime.datetime] = None) None

create a new event info raised by protection equipment

Parameters:

Example

>>> single_event = c104.ProtectionEventInfo(state=c104.EventState.ON, elapsed_ms=c104.UInt16(35000), quality=c104.Quality.Invalid, recorded_at=datetime.datetime.utcnow())
property elapsed_ms

the elapsed time in milliseconds (read-only)

Type:

int

property processed_at

timestamp with milliseconds of last local information processing (read-only)

Type:

datetime.datetime

property quality

the quality (read-only). The setter is available via point.quality=xyz

Type:

c104.Quality

property recorded_at

timestamp with milliseconds transported with the value itself or None (read-only)

Type:

Optional[int]

property state

the state (read-only)

Type:

c104.EventState

property value

maps to property state (read-only). The setter is available via point.value=xyz

Type:

c104.EventState