Moogsoft Docs

setAlertSeverity

A MoogDb v2 method that sets the severity level for an alert.

Back to MoogDb V2 API Method Reference.

Request arguments

Method setAlertSeverity takes the following request arguments:

Name

Type

Required

Description

alertId

Number

Yes

Alert ID.

severity

Number

Yes

Response

Method setAlertSeverity returns the following response:

API behavior in active and historic databases

The behavior of this method depends on whether the relevant alert or Situation is open, closed and still in the active database, or closed and archived to the historic database. This method updates or returns information about the alert or Situation as follows:

See API Update Behavior for more information on Situation statuses.

Examples

The following examples demonstrate typical use of method setAlertSeverity:

Response example