5 Replies Latest reply on Mar 17, 2016 10:38 AM by jmay RSS
    jmay Apprentice

    Get Template alerts

    I'm looking for a service that returns the alerts by template. For Example, the AlertFunctions resource has a QueryAlertSummary. But this lists the alerts by Thing. If I have 2500 instances of a Template, I want to only see 1 row per alert, not 2500 rows.

    Is there a service that does this?

      • Re: Get Template alerts
        aanjan Heavyweight Champ

        Jenna, I don't believe we have a service that gets alerts at a Template level. While services like GetAlertSummary is based on Templates, it won't run at a Template level. You would have to run it a the Thing level.

        • Re: Get Template alerts
          pchung Collaborator

          If you just wanted to return a Status - a Device based on this Template has an Alert, you still will have to do a 'get alerts' on all Entities first, but your service can then examine the returned information and create a true/false response or something like that, or a count etc.

          So you get one single result back.

          • Re: Get Template alerts
            jmay Apprentice

            Sorry when I say alerts, I mean alert definitions. The alerts defined on the template. I don't want a history of alerts. I just want to see that this property has an alert defined and what is the criteria for that alert, etc... Does that make sense?

             

            I need a mashup that allows the user to create, disable/enable and delete alerts. I want them to be able to view all alerts defined for all device types. And add alerts by template or thing.