Dojo Community, I'm trying to figure how to get the service alarm level inside of a C# script. Something like.
Service testService = engine.FindServiceByKey("123/123");
if ( testService alarm level == critical)
// do something
There's an SLNET call called GetServiceStateMessage that you can use which will allow you to get the alarm state of the service.
Note that this is an internal call and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using SLNet calls, as these are subject to change without notice.