Partilhar via


Monitoring - Update Dashboard Details

Atualizações as propriedades ou configurações de um dashboard e os widgets disponíveis num painel específico.

PUT http://<Servername>/OperationsManager/monitoring/dashboard/{dashboardId}/widgets

Parâmetros do URI

Name Em Necessário Tipo Description
dashboardId
path True

string

especificar o ID do painel de instrumentos.

Corpo do Pedido

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

Name Tipo Description
dashboard

ComponentRequest

widgets

WidgetRequest[]

Respostas

Name Tipo Description
200 OK

boolean

Ok. Atualizou com sucesso as propriedades ou configurações de um dashboard e os widgets disponíveis num painel específico.

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

Exemplos

UpdateDashboardDetails

Sample Request

PUT http://<Servername>/OperationsManager/monitoring/dashboard/925b3d43-d716-d56d-84ba-55a2467a6e7d/widgets

{
  "dashboard": {
    "name": "performance Dashboard",
    "description": "test",
    "config": "",
    "componentType": ""
  },
  "widgets": [
    {
      "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,\"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}",
      "name": "test",
      "mpId": "dcfdedc4-68bd-42b4-1e9a-ba94b1577732",
      "id": "36d07f06-f74b-f820-9697-fc6dda6bce4e"
    }
  ]
}

Sample Response

[
  "Ok"
]

Definições

Name Description
ComponentRequest
UpdateDashboard
WidgetRequest

ComponentRequest

Name Tipo Description
componentType

string

Tipo de Componente

config

string

Componente Config

description

string

Descrição do Componente

name

string

Nome do Componente

UpdateDashboard

Name Tipo Description
dashboard

ComponentRequest

widgets

WidgetRequest[]

WidgetRequest

Name Tipo Description
componentType

string

Tipo de Componente

config

string

Componente Config

description

string

Descrição do Componente

id

string

Widget ID

name

string

Nome do Componente