I am trying to get past alarms from a DMA. For example, alarms between the dates 11/07/2020 - 11/12/2020. I was looking at the list of SLNet calls and saw a "GetHistoryAlarmsMessage". I am not sure if this is the correct call to use, but I did use it in the client test tool, however, I was not able to see earlier alarms from that day. Any suggestions on how I can retrieve older alarms or how to correctly use the "GetHistoryAlarmsMessage" would be greatly appreciated.
Hi Julian
I'm just making an Automation Script that needs to retrieve all the alarms from the last day. The call I use for this is the GetAlarmDetailsFromDbMessage.
var message = new GetAlarmDetailsFromDbMessage
{
StartTime = start,
EndTime = end,
Filter = new Skyline.DataMiner.Net.Filters.AlarmFilter(),
AlarmTable = true,
};var responses = engine.SendSLNetMessage(message);
These responses will be of the AlarmEventMessage type.
Note that this is an internal call and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using SLNet calls, as these are subject to change without notice.