Dela via


My Workspace - RetrieveWidgets in MyWorkspace

Hämtar instrumentpanelen och widgeten på instrumentpanelen.

GET http://<Servername>/OperationsManager/myWorkspace/dashboard/{dashboardId}/widgets

URI-parametrar

Name I Obligatorisk Typ Description
dashboardId
path True

string

Ange instrumentpanelens ID

Svar

Name Typ Description
200 OK

ComponentResponse[]

Okej. Widgetar har hämtats på instrumentpanelen.

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

Exempel

MyWorkspace_RetrieveWidgets

Sample Request

GET http://<Servername>/OperationsManager/myWorkspace/dashboard/ea1c7f80-8022-4222-9be4-6158d46abd87/widgets

Sample Response

[
  {
    "id": "7ecc8c4f-a648-4a8a-b1f7-59b4c2e40070",
    "name": "test",
    "description": null,
    "mpId": null,
    "componentType": "HtmlAlertWidget",
    "config": "{\"widgetDisplay\":{\"col\":1,\"row\":1,\"sizex\":6,\"sizey\":4,\"columns\":[\"severity\",\"monitoringobjectdisplayname\",\"name\",\"age\",\"repeatcount\",\"lastmodified\"],\"groupByColumn\":\"nogrouping\",\"expandGroupByColumn\":false,\"sortByColumn\":\"nosorting\",\"sortOrder\":1},\"widgetParameters\":{\"scope\":{\"scopeSelection\":[]},\"criteria\":{\"severities\":[\"0\",\"1\",\"2\"],\"priorities\":[\"2\",\"1\",\"0\"],\"resolutionStates\":[\"0\",\"247\",\"248\",\"249\",\"250\",\"254\",\"255\"],\"age\":7,\"ageTimeUnit\":\"days\"}},\"widgetRefreshInterval\":5}"
  },
  {
    "id": "c40b80cf-f604-4a27-8b54-587dd58e830e",
    "name": "state",
    "description": null,
    "mpId": null,
    "componentType": "HtmlStateWidget",
    "config": "{\"widgetDisplay\":{\"col\":1,\"row\":2,\"sizex\":6,\"sizey\":4,\"columns\":[\"healthstate\",\"displayname\"]},\"widgetParameters\":{\"scope\":{\"scopeSelection\":[],\"classSelection\":[{\"id\":\"3c8ac4f3-475e-44dd-4163-8a97af363705\",\"displayName\":\"All Windows Computers\",\"className\":\"Microsoft.SystemCenter.Library!Microsoft.SystemCenter.AllComputersGroup\",\"path\":null,\"fullName\":null,\"objectType\":-2}]},\"criteria\":{\"healthStates\":[\"3\",\"0\",\"2\",\"1\"],\"inMaintenanceMode\":\"All\"}},\"widgetRefreshInterval\":5}"
  }
]

Definitioner

ComponentResponse

Name Typ Description
componentType

string

Komponenttyp

config

string

konfiguration

description

string

Komponentbeskrivning

id

string

ID

mpId

string

Komponentens MP-ID

name

string

Komponentnamn