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.
Hello,
As the other answers mentioned, the GetAlarmDetailsFromDBMessage is a good start.
As Michiel Oda mentioned, this could be subject to change. As it so happens, since internal RN26019 this has happend and this request is marked as "obsolete". It will still work, but it might be behaving diffrently due to CassandraCluster.
A better approach, since 10.1.0 main release would be to use the Repository API for Alarms.
//FetchRepository code here
var alarmRepository = repositoryRegistry.Get<IAlarmRepository>();
alarmsFromDb = alarmRepository.Read(alarmFilter, startTime, endTime, squashed)
.Cast<AlarmEventMessage>()
.ToList();
Would be the correct new way to do this. This is just for future reference