Hi
If anyone knows how to create a script to send Active Alarms to Slack,
I would really appreciate it if you could share the information.
Alternatively, if there is a related Dojo contents or any documentation available,
a link to that would also be very helpful.
Hi, you can create a new automation script and add the following code:
var message = new GetActiveAlarmsMessage(/* you DMA ID here */);
var response = engine.SLNet.SendSLNetSingleResponseMessage(message);
List<AlarmEventMessage> alarmsList = ((ActiveAlarmsResponseMessage)response).ActiveAlarms.ToList();
You can then further use the Slack API to send a request to your slack server.