- """
- Representation of a row in the events table.
- """
-
- table_name = 'events'
- primary_key = 'event_id'
- fields = {
- 'event_id': Parameter(int, "Event identifier"),
- 'person_id': Parameter(int, "Identifier of person responsible for event"),
- 'event_type': Parameter(str, "Type of event"),
- 'object_type': Parameter(str, "Type of object affected by this event"),
- 'fault_code': Parameter(int, "Event fault code"),
- 'call': Parameter(str, "Call responsible for this event"),
- 'time': Parameter(str, "Date/Time the event took place"),
- 'object_ids': Parameter([int], "Ids of objects affected by this event")
- }
-
- def __init__(self, api, fields = {}):
- Row.__init__(self, fields)
- self.api = api
+ """
+ Representation of a row in the events table.
+ """
+
+ table_name = 'events'
+ primary_key = 'event_id'
+ fields = {
+ 'event_id': Parameter(int, "Event identifier"),
+ 'person_id': Parameter(int, "Identifier of person responsible for event, if any"),
+ 'node_id': Parameter(int, "Identifier of node responsible for event, if any"),
+ 'auth_type': Parameter(int, "Type of auth used. i.e. AuthMethod"),
+ 'fault_code': Parameter(int, "Event fault code"),
+ 'call_name': Parameter(str, "Call responsible for this event"),
+ 'call': Parameter(str, "Call responsible for this event, including paramters"),
+ 'message': Parameter(str, "High level description of this event"),
+ 'runtime': Parameter(float, "Runtime of event"),
+ 'time': Parameter(int, "Date and time that the event took place, in seconds since UNIX epoch", ro = True),
+ 'object_ids': Parameter([int], "IDs of objects affected by this event"),
+ 'object_types': Parameter([str], "What type of object were affected by this event")
+ }