cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

AMU Alarm data in Mashup

VR_10133499
13-Aquamarine

AMU Alarm data in Mashup

Hi,

We want to read/subscribe to the notifications generated by Alarms in AMU application. We want to use the notifications to read alarm data and display it in custom mashup.

 

1 ACCEPTED SOLUTION

Accepted Solutions
SebB
12-Amethyst
(To:VR_10133499)

AMU handles Alarms, like everything else in the connected MS SQL database, so you don't have the option to use standard ThingWorx property change events or subscriptions on alert definitions.

You have two options:

  • If you want to "subscript" to an alarm notification, you can customize the Action Type settings on the Core Configuration thing. This configuration table lists the option that the user has when creating an alarm definition in AMU. By default you will only see "SendEmail", but you could add an option and then select that option when you create a new Alarm definition in AMU. When a alarm gets triggered AMU would then call your custom service on the configured Thing and passes over an JSON that has information about the Alarm, that you can process and do what you want with it. Screenshot 2023-04-11 at 3.11.54 PM.png
  • If you are not really looking to "subscript" to Alarms but just want to list Alarms in your custom mashup, you can simply use the "QueryAlarms_ALM" service on the PTC.FSU.CORE.Alarm.Utils_TG thing. Screenshot 2023-04-11 at 3.12.50 PM.png

Seb
Principal Solution Experience Architect
PTC

View solution in original post

2 REPLIES 2
slangley
23-Emerald II
(To:VR_10133499)

Hi @VR_10133499.

 

It may be helpful to read through the guides on ThingWorx IoT Tips.  If you still have questions after reviewing this information, please let us know.

 

Regards.

 

--Sharon

SebB
12-Amethyst
(To:VR_10133499)

AMU handles Alarms, like everything else in the connected MS SQL database, so you don't have the option to use standard ThingWorx property change events or subscriptions on alert definitions.

You have two options:

  • If you want to "subscript" to an alarm notification, you can customize the Action Type settings on the Core Configuration thing. This configuration table lists the option that the user has when creating an alarm definition in AMU. By default you will only see "SendEmail", but you could add an option and then select that option when you create a new Alarm definition in AMU. When a alarm gets triggered AMU would then call your custom service on the configured Thing and passes over an JSON that has information about the Alarm, that you can process and do what you want with it. Screenshot 2023-04-11 at 3.11.54 PM.png
  • If you are not really looking to "subscript" to Alarms but just want to list Alarms in your custom mashup, you can simply use the "QueryAlarms_ALM" service on the PTC.FSU.CORE.Alarm.Utils_TG thing. Screenshot 2023-04-11 at 3.12.50 PM.png

Seb
Principal Solution Experience Architect
PTC
Top Tags