Partilhar via


Data - Retrieve Monitors For Classes

Recupera a lista de monitores e suas propriedades associadas a uma classe específica.

POST http://<Servername>/OperationsManager/data/class/monitors

Corpo do Pedido

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

Name Tipo Description
criteria

string

especificar os critérios de pesquisa.

Respostas

Name Tipo Description
200 OK

TableDataResponse

OK. Recuperou com sucesso a lista de monitores e suas propriedades associadas a uma classe específica.

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

Exemplos

RetrieveMonitorsForClasses

Sample Request

POST http://<Servername>/OperationsManager/data/class/monitors

[
  "DisplayName LIKE %SQL%"
]

Sample Response

{
  "tableColumns": [
    {
      "field": "id",
      "header": "Id",
      "type": null,
      "hidden": true
    },
    {
      "field": "targetid",
      "header": "Target Id",
      "type": null,
      "hidden": true
    },
    {
      "field": "displayname",
      "header": "Display Name",
      "type": null,
      "hidden": false
    },
    {
      "field": "targetname",
      "header": "Target",
      "type": null,
      "hidden": false
    },
    {
      "field": "description",
      "header": "Description",
      "type": null,
      "hidden": false
    },
    {
      "field": "enabled",
      "header": "Enabled",
      "type": null,
      "hidden": false
    },
    {
      "field": "priority",
      "header": "Priority",
      "type": null,
      "hidden": false
    }
  ],
  "rows": [
    {
      "id": "b3a4993a-7380-3ae1-70f4-055e077f916c",
      "targetid": "8a5823d6-19a8-fc4a-2aac-52b3b09ba86b",
      "displayname": "Data Warehouse SQL RS Deployed Management Pack List Request First Chance State",
      "description": "This monitor switches to warning state once Data Warehouse SQL RS deployed management pack list request process experiences a problem",
      "enabled": "true",
      "targetname": "Data Warehouse Synchronization Server",
      "priority": "Normal"
    },
    {
      "id": "947d5000-5ed0-0b51-ceed-3b3eff29a9e6",
      "targetid": "8a5823d6-19a8-fc4a-2aac-52b3b09ba86b",
      "displayname": "Data Warehouse Alert Data Collection SQL Server Authentication State",
      "description": "Data Warehouse alert data collection SQL Server Authentication state for a Management Server",
      "enabled": "true",
      "targetname": "Data Warehouse Synchronization Server",
      "priority": "Normal"
    }
  ]
}

Definições

Name Description
TableColumn
TableDataResponse

TableColumn

Name Tipo Description
field

string

Nome da Coluna

header

string

Cabeçalho da coluna

hidden

boolean

É coluna escondida

type

string

Tipo da Coluna

TableDataResponse

Name Tipo Description
rows

object[]

Linhas de dados

tableColumns

TableColumn[]

Colunas de dados