Skip to main content
12-Amethyst
November 10, 2024
Solved

alerts in subscribers

  • November 10, 2024
  • 2 replies
  • 656 views

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,

Best answer by Velkumar

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
November 11, 2024

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

 

 

 

Community Moderator
November 15, 2024

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.