Dela via


Data - Retrieve Rule Information for Alert

Hämtar regelinformation för angivet aviserings-ID.

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

URI-parametrar

Name I Obligatorisk Typ Description
alertId
path True

string

Aviserings-ID för regeln som ska hämtas.

Svar

Name Typ Description
200 OK

TableDataResponse

Okej. Regelinformation för aviseringen har hämtats

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

Exempel

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\"}"
    }
  ]
}

Definitioner

Name Description
TableColumn
TableDataResponse

TableColumn

Name Typ Description
field

string

Namnet på kolumnen

header

string

Kolumnrubrik

hidden

boolean

Är kolumnen dold

type

string

Typ av kolumn

TableDataResponse

Name Typ Description
rows

object[]

Tabellrader med data

tableColumns

TableColumn[]

Tabellkolumner med data