Restarting an alert definition evaluation

Ops Center Analyzer Detail View REST API Reference Guide

Version
11.0.x
Audience
anonymous
Part Number
MK-99ANA004-11

You can restart a paused alert definition for an alert based on its ID.

Request line

POST baseURL/alertapi.do?action=enableAlertDef

The request payload is a JSON object.

Request body

{
  "alertId":[
    ,
    
  ]
}

Request example

POST /alertapi.do?action=enableAlertDef
{
  "alertId":[
    23423,
    542324
  ]
}

Request parameters

Parameter Type Description
alertId Integer[ ] List of alert definition IDs to be restarted.

Response body

{
  "enabled":{
    "alertId":[
      
    ]
  }
}
{
  "failed":[
    {
      "alertId":,
      "error":"",
      "code":""
    }
  ]
}

Response examples

Success

{
  "enabled":{
    "alertId":[
      23423
    ]
  }
}

Error

{
  "failed":[
    {
      "alertId":23423,
      "error":"Alert definition with id:[12] not found.",
      "code":"A7040010"
    }
  ]
}

For a list of alert API error codes, see Alert API response error codes and messages.