2 This file contains event types as Python objects. 4 TODO: This should be auto-generated but is not!!!!! 14 BaseEvent implements BaseEventType from which inherit all other events and it is used per default. 16 def __init__(self, sourcenode=None, message=None, severity=1):
18 self.
add_property(
"EventId", bytes(), ua.VariantType.ByteString)
20 self.
add_property(
"SourceNode", sourcenode, ua.VariantType.NodeId)
21 self.
add_property(
"SourceName",
None, ua.VariantType.String)
23 self.
add_property(
"ReceiveTime",
None, ua.VariantType.DateTime)
24 self.
add_property(
"LocalTime",
None, ua.VariantType.DateTime)
26 self.
add_property(
"Severity", severity, ua.VariantType.UInt16)
31 Audit implements AuditEventType from which inherit all other Audit events. 33 def __init__(self, sourcenode=None, message=None, severity=1):
34 super(AuditEvent, self).
__init__(sourcenode, message, severity)
36 self.
add_property(
"ActionTimeStamp",
None, ua.VariantType.DateTime)
37 self.
add_property(
"Status",
False, ua.VariantType.Boolean)
38 self.
add_property(
"ServerId",
None, ua.VariantType.String)
39 self.
add_property(
"ClientAuditEntryId",
None, ua.VariantType.String)
40 self.
add_property(
"ClientUserId",
None, ua.VariantType.String)
43 IMPLEMENTED_EVENTS = {
44 ua.ObjectIds.BaseEventType: BaseEvent,
45 ua.ObjectIds.AuditEventType: AuditEvent,
def __init__(self, sourcenode=None, message=None, severity=1)
def add_property(self, name, val, datatype)
def __init__(self, sourcenode=None, message=None, severity=1)