cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 10

SWQL Variable for AlertActiveID as Alert Trigger Action

Jump to solution

Hello Orion SDK Community,

I'm wanting to capture the unique identifier of the alert being generated as it is triggering - so that it can be included as information to use later for acknowledging through API.

The issue seems to be that the unique identifier is not available to be included in the alert trigger message as the alert (I'm assuming) hasn't generated the unique identifier yet.

Is there some way around this, or am I doing it wrong? Here is the variable I'm using:  ${N=Alerting;M=AlertActiveID}.

Thank you,

= swql

Tags (3)
0 Kudos
1 Solution
Level 19

This is a bug. It was fixed after Orion Platform 2017.1 (NPM 12.1) was released, but you can expect the fix in the next release. It's CORE-4521 if you need to check on the status.

View solution in original post

2 Replies
Level 19

This is a bug. It was fixed after Orion Platform 2017.1 (NPM 12.1) was released, but you can expect the fix in the next release. It's CORE-4521 if you need to check on the status.

View solution in original post

Hello tdanner​,

Thank you for the update. Much appreciated.

For now - I figured out a workaround by using a custom swql variable:

${N=SWQL;M=SELECT a.AlertActiveID FROM Orion.AlertActive a WHERE AlertObjectID = ${N=Alerting;M=AlertObjectID} }

Thank you,

= swql

0 Kudos