I am currently working from the provided client-list connections example to understand how the new GQI adhoc data source works. My goal is to retrieve and display historical information events instead of client connections.
The client-list script is using the LoginInfoResponseMessage class within the Skyline.DataMiner.Net.Messages namespace.
Which namespace and class can be used to instead retrieve historical information events for a DMS?
Additionally, the script also uses an enumeration under the same Skyline.DataMiner.Net.Messages namespace that lists Info Types (InfoType). Which info type from this list should be used for information events?
Thank you,
Instead of the GetInfoMessage, you can use the GetAlarmDetailsFromDbMessage (also in the Skyline.DataMiner.Net.Messages namespace) to request the historical information events.
You can create such a message with the following constructor:
GetAlarmDetailsFromDbMessage(AlarmFilter filter, DateTime startTime, DateTime endTime, bool alarmTable, bool infoTable)
Where:
- filter can just be AlarmFilter.AlwaysTrue if you don't need additional filtering
- startTime & endTime define the time window for which you want the info events
- alarmTable should be set to false to exclude the alarm events
- infoTable should be set to true to include the information events
The responses will be of type AlarmEventMessage.
Thank you for the detailed response Ronald.