Monitoring - Add Dashboard
请求将控制面板保存在监控视图中。
POST http://<Servername>/OperationsManager/monitoring/dashboard
请求正文
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| name | True |
string |
组件的名称 |
| componentType |
string |
组件类型 |
|
| config |
string |
组件配置 |
|
| description |
string |
组件说明 |
|
| mpDescription |
string |
MP 描述 |
|
| mpId |
string |
Mp ID |
|
| mpName |
string |
MP 名称 |
|
| mpVersion |
string |
MP 版本 |
|
| path |
string |
路径 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
还行。已成功保存仪表板 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
示例
Monitoring_AddDashboard
示例请求
POST http://<Servername>/OperationsManager/monitoring/dashboard
{
"mpId": "dcfdedc4-68bd-42b4-1e9a-ba94b1577732",
"mpName": "Notifications Internal Library",
"path": "Monitoring",
"name": "Notification Dashsboard",
"description": "test",
"config": null,
"componentType": null
}
示例响应
{
"id": "7c7cd385-30f5-312f-9123-31c2f22f6edf",
"name": "Notification Dashsboard",
"description": "test",
"mpId": "dcfdedc4-68bd-42b4-1e9a-ba94b1577732",
"componentType": null,
"config": null
}
定义
| 名称 | 说明 |
|---|---|
|
Component |
|
|
Monitoring |
ComponentResponse
| 名称 | 类型 | 说明 |
|---|---|---|
| componentType |
string |
组件类型 |
| config |
string |
配置 |
| description |
string |
组件描述 |
| id |
string |
身份证件 |
| mpId |
string |
组件 MP ID |
| name |
string |
组件名称 |
MonitoringComponentRequest
| 名称 | 类型 | 说明 |
|---|---|---|
| componentType |
string |
组件类型 |
| config |
string |
组件配置 |
| description |
string |
组件说明 |
| mpDescription |
string |
MP 描述 |
| mpId |
string |
Mp ID |
| mpName |
string |
MP 名称 |
| mpVersion |
string |
MP 版本 |
| name |
string |
组件的名称 |
| path |
string |
路径 |