مشاركة عبر


My Workspace - Add Widget in MyWorkspace

يضيف عنصر واجهة المستخدم في لوحة معلومات myworkspace

POST http://<Servername>/OperationsManager/myWorkspace/dashboard/{dashboardId}/widget

معلمات URI

الاسم في مطلوب النوع الوصف
dashboardId
path True

string

حدد معرف لوحة المعلومات.

نص الطلب

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

الاسم مطلوب النوع الوصف
name True

string

اسم المكون

componentType

string

نوع المكون

config

string

تكوين المكون

description

string

وصف المكون

الاستجابات

الاسم النوع الوصف
200 OK

ComponentResponse

موافق. تمت إضافة عنصر واجهة مستخدم بنجاح في مساحة العمل الخاصة بي.

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

أمثلة

MyWorkspace_AddWidget

نموذج الطلب

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

{
  "name": "testwid",
  "description": "test",
  "config": "{\"widgetDisplay\":{\"col\":1,\"row\":3,\"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}",
  "componentType": "HtmlAlertWidget"
}

استجابة العينة

{
  "id": "6d91d7cd-729f-4cc3-938b-6cdb75842a49",
  "name": "testwid",
  "description": "test",
  "mpId": null,
  "componentType": "HtmlAlertWidget",
  "config": "{\"widgetDisplay\":{\"col\":1,\"row\":3,\"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}"
}

التعريفات

الاسم الوصف
ComponentRequest
ComponentResponse

ComponentRequest

الاسم النوع الوصف
componentType

string

نوع المكون

config

string

تكوين المكون

description

string

وصف المكون

name

string

اسم المكون

ComponentResponse

الاسم النوع الوصف
componentType

string

نوع المكون

config

string

التكوين

description

string

وصف المكون

id

string

المعرف

mpId

string

معرف MP المكون

name

string

اسم المكون