Hello Dojo,
I am developing a GQI solution intended to display real-time updates of alarms for a specific Element/Service or Domain. Additionally, I would like to filter alarms based on the value of the Component Info property.
Currently, I have implemented a subscription filter that listens for Alarm Event Messages on a given element by its Element ID. However, I am looking to further refine this filtering to be as specific as possible.
Do you have any suggestions or best practices for achieving more granular filtering in this scenario?
Thank you.
Current code :
subscriptionFilter = new SubscriptionFilterElement(typeof(AlarmEventMessage), agentId, elementId);
this.connection.AddSubscription("1", subscriptionFilter);
this.connection.OnNewMessage += Connection_OnNewMessage;
Hi Sara,
You can also add some extra filtering to the AlarmEventMessage, filtering the alarm events by doing the following.
subscriptionFilter = new SubscriptionFilterElement(typeof(AlarmEventMessage), agentId, elementId)
{
Filters = new [] { "<FilterName> or <FilterName2 (shared filter)>"}
}
that will allow you to trigger the real-time updates in a more granular way.
Hope this helps.