Dear Dojo community,
I would like to retrieve information from the Information Event in my code as below:
This information event will trigger a correlation rule which will launch a script to parse.
Is it possible to parse information event with this code :
ScriptParam paramCorrelationAlarmInfo = engine.GetScriptParam(65006);
AlarmInfo alarmInfo = new AlarmInfo(paramCorrelationAlarmInfo.Value);
If this code doesn't work, which code could I use ?
Thanks in advance.
So you’re all set then for the implementation that you had in mind?
Hi Laurine,
This should be possible. Please keep in mind that the correlation rule should have the following settings in place:
- Accept information events
- Trigger on single events
The first line of you code is ok. It goes inline with the example available in DataMiner Help (How do I parse Correlation Alarm Info data?). However, for the second line (AlarmInfo ...), I am not aware of an AlarmInfo class. Maybe this is a custom implementation?
It’s indeed working