监控与采集相关接口/Grafana 仪表盘
POSTGrafana起始版本 1.0同步需要认证
创建仪表盘
创建新监控仪表盘面板布局租户。
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
请求参数
请求体字段
tenantIdString必填租户ID。
示例: tenant-001-xyz
userIdString必填用户ID。
示例: user-001-abc
titleString必填标题。
示例: VM Performance Overview
categoryString必填类型分类。
示例: compute
layoutList必填布局信息。
示例: (nested array)
panelIdString面板ID。
示例: panel-cpu-001
xInteger面板横向坐标。
示例: 20
yInteger面板纵向坐标。
示例: 20
wInteger面板宽度。
示例: 12
hInteger面板高度。
示例: 8
响应状态
请求地址
POST/api/v1/monitoring/dashboards
/api/v1/monitoring/dashboards
请求示例
curl -X POST '{host}/api/v1/monitoring/dashboards' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"tenantId":"tenant-001-xyz","userId":"user-001-abc","title":"VM Performance Overview","category":"compute","layout":"(nested array)"}'
响应示例
200{
"id": "dash-001-abc",
"tenantId": "tenant-001-xyz",
"title": "VM Performance Overview",
"category": "compute",
"layout": [
{}
],
"createdBy": "user-001-abc",
"createdAt": "example",
"updatedAt": "example"
}变更历史
此 API 暂无变更历史记录。
