Dict-Like object. Represents a triggered alarm.
AlarmManager
Method | __init__ | Create a new alarm representation |
Class Variable | POSSIBLE_ALARM_STATUS | "Possible alarm statuses : "acknowledged", "unacknowledged" or "" |
Class Variable | ALARM_EVENT_FILTER_FIELDS | Few Events fields names can be automatically added as event's filters when passing to AlarmManager() 's filter argument. See msiempy.event.Event . |
Class Variable | ALARM_DEFAULT_FIELDS | Just a list of regular fields. |
Method | acknowledge | Mark the alarm as acknowledged. |
Method | unacknowledge | Mark the alarm as unacknowledge. |
Method | delete | Delete the alarm. |
Method | ceate_case | Not implemented : TODO |
Method | load_details | Update the alarm with detailled data loaded from the SIEM. |
Method | refresh | Update the alarm with detailled data loaded from the SIEM. Same as load_details |
Method | load_events | Retreive the complete trigerring Event(s) objects from an Alarm. This methos is automatically called automatically by default when calling load_data() . |
Class Variable | ALARM_FIELDS_MAP | List of all Alarm possible fields. This is used only when the private API is used to retreive Alarm infos. To change genuine (UPPERCASE) key names to more explicit ones matching public API names. |
Method | map_alarm_int_fields | Map the internal ESM field names to msiempy style with msiempy.alarm.Alarm.ALARM_FIELDS_MAP . Converts "T" and "F" to True and False and handle None values. |
Method | data_from_id | Gets the alarm parameters based on an ID. |
Method | get_id | Return the alarm ID. |
Inherited from NitroDict:
Instance Variable | data | Underlying dict object |
Method | __str__ | str(obj) -> return text string. |
Method | __repr__ | repr(obj) -> return json string. |
Method | json | JSON representation of a item |
Method | text | Text list of item's values |
Inherited from NitroObject (via NitroDict):
Class | NitroJSONEncoder | Custom JSON encoder that will use the approprtiate propertie depending of the type of NitroObject. TODO support json json dumping of QueryFilers, may be by making them inherits from NitroDict. |
Instance Variable | nitro | msiempy.core.session.NitroSession object. Interface to the SIEM. |
Create a new alarm representation
adict
: Alarm parametersid
: The alarm ID to instanciate. Will load informationsList
)
AlarmManager()
's filter
argument. See msiempy.event.Event
.List[str]
)
load_details
Retreive the complete trigerring Event(s) objects from an Alarm.
This methos is automatically called automatically by default when calling load_data()
.
use_query
(bool
): Uses the query module to retreive the event(s) data. Only works with SIEM v 11.2 or greater.extra_fields
(list[str]
): Only when use_query=True
. Additionnal event fields to load in the query. See: EventManager
workers
(int
): The number of asynchronous workers.Alarm
possible fields.
This is used only when the private API is used to retreive Alarm infos.
To change genuine (UPPERCASE) key names to more explicit ones matching public API names.Dict
)
msiempy.alarm.Alarm.ALARM_FIELDS_MAP
.
Converts "T" and "F" to True
and False
and handle None values.