Delen via


Data - Retrieve Monitors For Objects

Hiermee haalt u de lijst met monitors en de bijbehorende eigenschappen op die zijn gekoppeld aan een specifiek object.

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

Aanvraagbody

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

Name Type Description
id

string

Object-id bewaken

showUnhealthyMonitorsOnly

boolean

om alleen beeldschermen met een slechte status weer te geven

Antwoorden

Name Type Description
200 OK

TableDataResponse

OK. De lijst met monitors en de bijbehorende eigenschappen die aan een specifiek object zijn gekoppeld, is opgehaald

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

Voorbeelden

RetrieveMonitorsForObjects

Sample Request

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

{
  "id": "3c8ac4f3-475e-44dd-4163-8a97af363705",
  "showUnhealthyMonitorsOnly": true
}

Sample Response

{
  "tableColumns": [
    {
      "field": "state",
      "header": "State",
      "type": null,
      "hidden": false
    },
    {
      "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": "category",
      "header": "Category",
      "type": null,
      "hidden": false
    },
    {
      "field": "type",
      "header": "Type",
      "type": null,
      "hidden": false
    },
    {
      "field": "laststatechange",
      "header": "Last State Change",
      "type": null,
      "hidden": false
    }
  ],
  "rows": [
    {
      "id": "ffee43e2-9221-1df8-3259-8835a93b42e8",
      "targetid": "ac5cddfc-a96a-ee99-745d-ec74845f53f6",
      "displayname": "Entity Health",
      "state": "/OperationsManager/images/instance/state/ErrorDisabled.png",
      "category": "AvailabilityHealth",
      "targetname": "Object",
      "type": "Aggregate",
      "laststatechange": "2022-05-16T20:40:27.933"
    },
    {
      "id": "040e606c-6330-7245-f49d-a2e70a78177e",
      "targetid": "ac5cddfc-a96a-ee99-745d-ec74845f53f6",
      "displayname": "Availability",
      "state": "/OperationsManager/images/instance/state/ErrorDisabled.png",
      "category": "AvailabilityHealth",
      "targetname": "Object",
      "type": "Aggregate",
      "laststatechange": "2022-05-16T20:40:27.933"
    },
    {
      "id": "d08269f6-cb82-f2de-cf53-161993a3f841",
      "targetid": "ee7ec974-c9f0-1818-e5be-1fb41eb4f2ae",
      "displayname": "Computer Availability Health Rollup",
      "state": "/OperationsManager/images/instance/state/ErrorDisabled.png",
      "category": "AvailabilityHealth",
      "targetname": "Computer Group",
      "type": "Dependency",
      "laststatechange": "2022-05-16T20:40:27.933"
    }
  ]
}

Definities

Name Description
MonitorObjectDataRequest
TableColumn
TableDataResponse

MonitorObjectDataRequest

Name Type Description
id

string

Object-id bewaken

showUnhealthyMonitorsOnly

boolean

om alleen beeldschermen met een slechte status weer te geven

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 kolom

TableDataResponse

Name Type Description
rows

object[]

Tabelrijen met gegevens

tableColumns

TableColumn[]

Tabelkolommen met gegevens