Skip to main content
12-Amethyst
Nov 10, 2024 4:36 AM UTC
Solved

alerts in subscribers

Hi,

 

i want to write a subscriber inside a thing that will run only at a certain alert happens, I am currently using the alert event and it works fine only if there is only one alert configured on the property but when i have for example two alerts on one property how I can detect which alert triggered the alert event, in other words, i want a script that will detect which alert is active now 

thanks,

VelkumarAnswer
19-Tanzanite
Nov 11, 2024 5:50 AM UTC

Hi @IA_10816220 

 

You can use AlertName or eventData.name to identify which alert is triggered.

Velkumar_1-1731304198887.png

 

And GetAlertSummary will provide list of active alerts

 

/VR

 

 

 

2 replies

Velkumar19-TanzaniteAnswer
19-Tanzanite
Nov 11, 2024 5:50 AM UTC

Hi @IA_10816220 

 

You can use AlertName or eventData.name to identify which alert is triggered.

Velkumar_1-1731304198887.png

 

And GetAlertSummary will provide list of active alerts

 

/VR

 

 

 

Translate
Community Moderator
Nov 15, 2024 6:06 AM UTC

Hello @IA_10816220,

 

It looks like you have a response from a community member. If it helped you solve your question please mark the reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Translate