Dela via


Data - Set Alert Resolution States

Anger lösningstillstånd för de angivna aviseringarna.

POST http://<Servername>/OperationsManager/data/alertResolutionStates

Begärandetext

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Typ Description
alertIds

string[]

Lista över aviserings-ID:t

comment

string

Kommentar

resolutionState

integer

Lösningstillstånd för avisering

Svar

Name Typ Description
200 OK

ResolutionStateUpdateResponse

Okej. Lösningstillståndet har uppdaterats.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Exempel

SetAlertResolutionStates

Sample Request

POST http://<Servername>/OperationsManager/data/alertResolutionStates

{
  "alertIds": [
    "667736a8-d59a-407b-b142-80fd74ba4041"
  ],
  "resolutionState": 249,
  "comment": "Acko"
}

Sample Response

{
  "failures": [
    {
      "alertId": null,
      "failureMessage": null,
      "exceptionType": null
    }
  ],
  "isFailure": false
}

Definitioner

Name Description
ResolutionStateRequest
ResolutionStateUpdateFailure
ResolutionStateUpdateResponse

ResolutionStateRequest

Name Typ Description
alertIds

string[]

Lista över aviserings-ID:t

comment

string

Kommentar

resolutionState

integer

Lösningstillstånd för avisering

ResolutionStateUpdateFailure

Name Typ Description
alertId

string

Aviserings-ID

exceptionType

string

Undantagstyp

failureMessage

string

Felmeddelande

ResolutionStateUpdateResponse

Name Typ Description
failures

ResolutionStateUpdateFailure[]

isFailure

boolean

är fel