Hello,
I can retrieve active alarms and could not be able to retrieve history alarms from the below API endpoint.
https://inxdmadeva.daznservices.com/API/v1/Json.asmx/GetAlarms.
Here is the payload used:
{
"connection": "b77deefb-afe1-42ea-88f2-4fc95f4e5861",
"filter": {
"History": true,
"SlidingWindow": false,
"FilterItem": {
"__type": "Skyline.DataMiner.Web.Common.v1.DMAAlarmFilterSavedFilter",
"Filter": "sharedusersettings:CoreInfoEvents",
"Match": true
},
"StartTime": 1767092820000,
"EndTime": 1767092827100,
"Masked": false,
"InfoEvents": false,
"Columns": [],
"Limit": -1,
"SortBy": null,
"SortAscending": true
}
}
=
Here is the response:
{
"d": []
}
Could somebody help us to get understand this properly if there is any issue with the above payload
Thank you!
Hi Naresh,
You window is pretty small (+- 7s). Have you tried to increase the timespan just to make sure this is not the root cause? Are there other things that you've tried already?
Next to that, your shared filter is called CoreInfoEvents which looks like you're aiming to search for information events but the InfoEvents property is set to false. Maybe this is also something you could check?
Kind Regards,
Jarno
Hey Jarno, thank you for the response.
yes, the timespan we tried is just for a case to check whether it's returning any alarms or not. We have tried multiple time durations as well and got the response for active alarms which includes information events as well assume that InfoEvents flag set to true. The issues we got here is when the "History" flag sets true.
Hope it give some clarity.
for more clarifications, please check the below which we referred for this.
1. https://docs.dataminer.services/develop/webservices/WS_v1/WS_About_v1/WS_v1_examples.html
2. https://docs.dataminer.services/develop/webservices/WS_v1/WS_Methods_v1/GetAlarms.html
3. https://docs.dataminer.services/develop/webservices/WS_v1/WS_CustomDataTypes_v1/DMAAlarmFilterV2.html
regards,
Naresh Nama