Hi,
I have an AdHoc Script to retrieve some element and DOM data from an event. I need to retrieve the services from a view and have the service alarm state on it. I also need to subscribe to the service alarms changes. Is there a way to do that? Which SLNet call could I use to retrieve that?
Hi Miguel,
This script should work for the first part but there's no subscription to the service alarm updates. Let's see if someone else in the community has an answer for this one. Thanks!
Hi German,
You can use the GetLiteServiceInfo message with the ViewID property set to retrieve all services within a view.
You can then use a subscription on the LiteServiceStateEvent to get events for the alarm state. You could either subscribe on each service individually or subscribe on all service state changes at once and then filter the relevant events in your script.
You can use this ad hoc data source as a starting point: https://github.com/SkylineCommunications/SLC-GQIDS-ServiceAlarmStates
Be aware that this is just a demo implementation. More testing, error handling, logging, caching etc. should be considered for use in production.
Hello Ronald,
Do we have an example or a reference script I can guide to implement multiple service subscriptions?
Thanks
Hi German, I've update my answer to link to a demo implementation you can use as a reference.
Hi German,
Did you have a look at this adhoc data source:
https://github.com/SkylineCommunications/SLC-GQIDS-ServiceAlarms