Dela via


Monitoring - update Widget

Uppdateringar widgetens egenskaper eller konfiguration

PUT http://<Servername>/OperationsManager/monitoring/widget/{widgetId}

URI-parametrar

Name I Obligatorisk Typ Description
widgetId
path True

string

Ange widget-ID

Begärandetext

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

Name Obligatorisk Typ Description
name True

string

Namnet på komponenten

componentType

string

Komponenttyp

config

string

Komponentkonfiguration

description

string

Beskrivning av komponent

mpDescription

string

MP-beskrivning

mpId

string

Mp-ID

mpName

string

MP-namn

mpVersion

string

MP-version

path

string

Sökväg

Svar

Name Typ Description
200 OK

boolean

Okej. Widgetkonfigurationen har uppdaterats.

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

Exempel

Monitoring_updateWidget

Sample Request

PUT http://<Servername>/OperationsManager/monitoring/widget/36d07f06-f74b-f820-9697-fc6dda6bce4e

{
  "mpId": "dcfdedc4-68bd-42b4-1e9a-ba94b1577732",
  "path": "Monitoring",
  "name": "test alert widget",
  "description": "test",
  "config": "{\"widgetDisplay\":{\"col\":1,\"row\":1,\"sizex\":6,\"sizey\":4,\"columns\":[\"severity\",\"monitoringobjectdisplayname\",\"name\",\"repeatcount\",\"lastmodified\"],\"groupByColumn\":\"nogrouping\",\"expandGroupByColumn\":false,\"sortByColumn\":\"nosorting\",\"sortOrder\":1,\"payload\":\"36d07f06-f74b-f820-9697-fc6dda6bce4e\",\"dragHandle\":\".draggable\",\"resizeHandle\":\".resizable\"},\"widgetParameters\":{\"scope\":{\"scopeSelection\":[]},\"criteria\":{\"severities\":[\"0\",\"1\",\"2\"],\"priorities\":[\"0\",\"2\",\"1\"],\"resolutionStates\":[\"0\",\"247\",\"248\",\"249\",\"250\",\"254\",\"255\"],\"age\":7,\"ageTimeUnit\":\"days\"}},\"widgetRefreshInterval\":5}",
  "componentType": "HtmlAlertWidget"
}

Sample Response

[
  "Ok"
]

Definitioner

MonitoringComponentRequest

Name Typ Description
componentType

string

Komponenttyp

config

string

Komponentkonfiguration

description

string

Beskrivning av komponent

mpDescription

string

MP-beskrivning

mpId

string

Mp-ID

mpName

string

MP-namn

mpVersion

string

MP-version

name

string

Namnet på komponenten

path

string

Sökväg