Delen via


Data - Retrieve Rule Information for Alert

Hiermee wordt regelinformatie opgehaald voor de opgegeven waarschuwings-id.

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

URI-parameters

Name In Vereist Type Description
alertId
path True

string

De waarschuwings-id van de regel die moet worden opgehaald.

Antwoorden

Name Type Description
200 OK

TableDataResponse

OK. Regelinformatie voor de waarschuwing is opgehaald

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

Voorbeelden

RetrieveRuleInformationForAlert

Sample Request

GET http://<Servername>/OperationsManager/data/ruleInformationForAlert/aaa0361a-985d-4e74-840c-975dae3f5bba

Sample Response

{
  "tableColumns": [
    {
      "field": "name",
      "header": "Name",
      "type": null,
      "hidden": false
    },
    {
      "field": "value",
      "header": "Value",
      "type": null,
      "hidden": false
    }
  ],
  "rows": [
    {
      "name": "Display name",
      "value": "{\"text\":\"All Management Servers Resource Pool Unavailable\",\"drilldowntype\":\"rule\",\"id\":\"86006a18-5f04-2002-a8a3-9cd37ab016e9\"}"
    },
    {
      "name": "Description",
      "value": "This rule generates alerts when the All Management Servers Resource Pool is not available."
    },
    {
      "name": "Comment",
      "value": null
    },
    {
      "name": "Enabled",
      "value": "true"
    },
    {
      "name": "Identifier",
      "value": "1|Microsoft.SystemCenter.2007/9396306c2be7fcc4|1.0.0.0|Microsoft.SystemCenter.SDKService.PrincipleManagementServerDown.Alert||"
    },
    {
      "name": "Category",
      "value": "Alert"
    },
    {
      "name": "Xml Tag",
      "value": "Rule"
    },
    {
      "name": "Target name",
      "value": "{\"text\":\"Management Server\",\"drilldowntype\":\"class\",\"id\":\"83c21025-550e-695b-c1e0-d3e247b74205\"}"
    }
  ]
}

Definities

Name Description
TableColumn
TableDataResponse

TableColumn

Name Type Description
field

string

Naam van de kolom

header

string

Koptekst van de kolom

hidden

boolean

Is de kolom verborgen

type

string

Type van de kolom

TableDataResponse

Name Type Description
rows

object[]

Tabelrijen met gegevens

tableColumns

TableColumn[]

Tabelkolommen met gegevens