Data - Retrieve Alert Properties

Ruft die Warnungseigenschaften für die angegebene Warnung ab.

GET http://<Servername>/OperationsManager/data/alertInformation/{alertId}

URI-Parameter

Name In Erforderlich Typ Beschreibung
alertId
path True

string

Alert-ID, für den der Kontext abgerufen werden soll.

Antworten

Name Typ Beschreibung
200 OK

AlertDataResponse

OKAY. Warnungsinformationen wurden erfolgreich wiederholt.

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

Beispiele

RetrieveAlertInformation

Beispielanforderung

GET http://<Servername>/OperationsManager/data/alertInformation/f50652d0-2317-44de-81a6-2c622b94d00a

Beispiel für eine Antwort

{
  "alertHistoryResponses": [
    {
      "id": "f50652d0-2317-44de-81a6-2c622b94d00a",
      "modifiedBy": "System",
      "comments": "Alert Activated by the System.",
      "timeModified": "2022-05-17T05:36:38.0200000Z"
    }
  ],
  "description": "The All Management Servers Pool has not reported availability since Tue, 17 May 2022 05:31:42 GMT. This adversely affects all availability calculation for the entire management group.",
  "context": "",
  "name": "All Management Servers Pool Unavailable.",
  "ruleId": "86006a18-5f04-2002-a8a3-9cd37ab016e9",
  "monitorId": null,
  "isMonitorAlert": false
}

Definitionen

Name Beschreibung
AlertDataResponse
AlertHistoryResponse

AlertDataResponse

Name Typ Beschreibung
alertHistoryResponses

AlertHistoryResponse[]

Antworten auf den Warnungsverlauf

context

string

Kontext der Warnung.

description

string

Beschreibung der Warnung

isMonitorAlert

boolean

ist die von Monitor generierte Warnung

monitorId

string

Monitor-ID, die die Warnung generiert hat.

name

string

Name der Warnung

ruleId

string

Regel-ID, die die Warnung generiert hat.

AlertHistoryResponse

Name Typ Beschreibung
comments

string

Kommentare zur Warnung

id

string

Warnungs-ID

modifiedBy

string

Warnung geändert von

timeModified

string

Zeitalarm wurde geändert