• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Silence events by API

    User help
    3
    7
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Johautt
      last edited by

      I want to read and mute events by an endpoint in the REST API.
      But i found that the only way to make changes to change this is through the legacy interface.
      0_1558384940864_9f212bc2-4071-4b57-8c81-ed6bf6e1bcdf-imagen.png
      Is the a way to read/change the state of audio alarm sounds by API?
      Thanks...

      J 1 Reply Last reply Reply Quote 0
      • J
        Johautt @Johautt
        last edited by

        Somebody can help me?

        1 Reply Last reply Reply Quote 0
        • CraigWebC
          CraigWeb
          last edited by

          Have you had a look in swagger? From what I can see is there is an end-point in API v1. This is the example:
          curl -X POST "http://localhost:8080/rest/v1/events/acknowledge" -H "accept: application/json;charset=UTF-8" -H "Content-Type: application/json;charset=UTF-8" -H "X-XSRF-TOKEN: cf459eb8-2655-4f5d-bbaf-2c2aeb522a10" -d "{ \"args\": [ \"string\" ], \"key\": \"string\"}"

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            Hi Johautt,

            There is not currently an endpoint for silencing events, but the asking raised the question! As Craig suggests, acknowledging the event would silence it, but the distinction of silencing the event for just the individual hasn't made it into the new UI quite yet. I suspect you hastened it!

            You could use the network tab of your browser's developer tools to see a request to the old DWR on the old events page, which you could make directly from a curl or whatever. That's the only way currently.

            1 Reply Last reply Reply Quote 0
            • J
              Johautt
              last edited by

              Good morning. Yes, i had looked in swagger. And tested the

              http://localhost:8080/rest/v1/events/acknowledge
              

              end-point, and i can acknowledge with it. But in this case, i want to toggle the silence into the alarm without make the acknowledge.
              I will take the suggestion of network tab for the old events page.

              1 Reply Last reply Reply Quote 0
              • J
                Johautt
                last edited by

                By the way, i want to take the opportunity to ask what is the message body in /v1/events/acknowledge useful for. How can i use it? I refer to:

                {
                  "args": [
                    "string"
                  ],
                  "key": "string"
                }
                

                Do you prefer i to ask this in another topic?

                1 Reply Last reply Reply Quote 0
                • phildunlapP
                  phildunlap
                  last edited by

                  The query string is RQL to identify which events to acknowledge. You can make some requests from the events page to acknowledge multiple events and see this endpoint being used in the network tab. Generally yes, it's best to put distinct questions in their own threads.

                  Here's one such post body I saw,

                  eq(alarmLevel,URGENT)&eq(acknowledged,false)

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post