In IM you have the option to pull a list of alarms from a custom range:
but I would like to capture this data via an api call. Can this be done?
Version: All
Component: rest, uimapi
Unfortunately, the closest that could be achieved via api currently would be to use uimapi (POST /uimapi/alarms)
{
"assigned_to": "string",
"custom1": "string",
"custom2": "string",
"custom3": "string",
"custom4": "string",
"custom5": "string",
"deviceIds": "string",
"domain": "string",
"hostname": "string",
"hub": "string",
"id": "string",
"includeClosed": "string",
"level": "string",
"message": "string",
"message_count": "string",
"origin": "string",
"probe": "string",
"robot": "string",
"source": "string",
"subsystem": "string",
"subsystem_id": "string",
"timeArrival": "2024-05-10T23:53:12.381Z",
"timeLast": "2024-05-10T23:53:12.381Z",
"userTag1": "string",
"userTag2": "string",
"visible": true
}
The bolded items can be set to the beginning of the range, and then the data can be up to the endpoint, and the end data truncated programmatically.