Hi Team,
I'm looking to retrieve the data from the 'Information Events' tab in the Cube using a GQI and automation script. Whenever a service is created, updated, or deleted, it gets logged under Information Events. I want to access this data regardless of which DMA in the cluster the service originates from. Is there a method available to retrieve Information Event details programmatically?
Hi Hari,
To retrieve information events from the database, you can use the GetAlarmDetailsFromDbMessage() method. Refer to the example snippet below as example.
AlarmFilterItem filterService = new AlarmFilterItemString(
AlarmFilterField.Value,
AlarmFilterCompareType.WildcardEquality,
new[] { "* Service *" });var dateNow = DateTime.Now;
var request = new GetAlarmDetailsFromDbMessage(
dataMinerID: 293,
filter: new AlarmFilter(filterService),
startTime: dateNow.AddHours(-6),
endTime: dateNow,
alarmTable: false,
infoTable: true);var response = engine.SendSLNetMessage(request);
foreach(var a in response.Select(alarm => (AlarmEventMessage)alarm))
engine.Log(a.ToString());
Kind regards,