Hello,
How can I retrieve information events of certain interval through an automation script?
Thanks in advance
Hi Maximiliano,
You can get all information events by sending a GetAlarmDetailsFromDbMessage in which you define the start time, end time and DMA ID. This can do this as follows:
var msg = new GetAlarmDetailsFromDbMessage()
{
StartTime = startTime,
EndTime = endTime,
InfoTable = true,
Filter = new AlarmFilter("system:TRUE"),
DataMinerID = dmaId,
HostingDataMinerID = dmaId
};var responses = engine.SendSLNetMessage(msg)?.OfType<AlarmEventMessage>().ToList();
More information about the alarmEventMessages that you will get in the response can be found here.