SevOne

 View Only
Expand all | Collapse all

Fetching only active alerts through Sevone API

  • 1.  Fetching only active alerts through Sevone API

    Posted Fri February 23, 2024 06:44 AM

    Hi,

    I wanted to fetch the active only alerts through Sevone API. When I tried using the alert API call, it fetched all the alerts including the ignored ones. Can anyone please help me on how to fetch the active alerts?

    Thanks in advance



    ------------------------------
    Charan Kumar
    ------------------------------


  • 2.  RE: Fetching only active alerts through Sevone API

    IBM TechXchange Speaker
    Posted Mon March 04, 2024 04:07 AM

    Hi Charan

    using the API endpoint POST /api/v3/alerts with body:

    {
        "query": {
            "alertStatus": "OPEN"
        }
    }

    will show you only alerts that are neither acknowledged nor ignored.



    ------------------------------
    Raul Gonzalez
    Software Networking Solutions Architect
    IBM
    Brighton, UK
    ------------------------------