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
}
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 10th July 2023
Hi Cyrus,
In these cases, normally we trigger the Automation script from a Correlation rule.
- In the Correlation rule, you can configure a filter based on the service name and alarm severity.
- In the action, you can point to the Automation script that you want to execute.
Please keep in mind that you can pass information from the Correlation rule to the Automation script. For more information, refer to How do I parse Correlation Alarm Info data? in the DataMiner Help.
Marieke Goethals [SLC] [DevOps Catalyst] Changed status to publish 18th August 2020