Hi. Using "Special parameters available in automation scripts", I can have the parameter ID of an alarm.
But how could I have the Parameter name when I got the alarm ID or parameter ID?
Kind regards
Henri Martins [DevOps Advocate] Selected answer as best 16th November 2023
Hi Henri,
For this case you can use the field parametername available in correlation rules.
- First you will need to add an extra script parameter in your automation script where you will pass the parameter name of the alarm
- When configuring the automation script to be triggered in the correlation rule, you will need to pass a value to the new script parameter added in the previous step. You should set the value to [field(parametername)]
- Don't forget to check the option Evaluate script parameter value. When the correlation is triggered, the value set in the previous step will be updated with the parameter name of the alarm that triggered the correlation rule
Hope it helps.
Henri Martins [DevOps Advocate] Selected answer as best 16th November 2023