変更¶
POST /api/v1/dashboard/{dashboard_uuid}/modify
概要¶
単一のユーザービューを変更します。
パスパラメータ¶
| パラメータ名 | 型 | 必須 | 説明 |
|---|---|---|---|
| dashboard_uuid | string | Y | ビュー UUID |
Body リクエストパラメータ¶
| パラメータ名 | 型 | 必須 | 説明 |
|---|---|---|---|
| name | string | ビュー名 例: テストビュー1号 空を許可: False 最大長: 256 |
|
| desc | string | 説明 例: 説明1 空を許可: False 最大長: 2048 |
|
| identifier | string | 識別子 ID --2024.12.25 新規追加の識別子 ID 例: xxxx 空を許可: False 空文字列を許可: True 最大長: 128 |
|
| dashboardBidding | json | mapping、デフォルトは {} 例: {} 空を許可: False |
パラメータ補足説明¶
リクエストボディ構造の説明
| パラメータ名 | 型 | 説明 |
|---|---|---|
| name | string | ビュー名 |
| desc | string | 説明 |
| identifier | string | 識別子 ID --2024.12.25 新規追加 |
| dashboardBidding | dict | ダッシュボードのバインディング情報 |
組み込みビューフィールド dashboardBidding のバインディング説明
内部でサポートする op 値は in/wildcard です。
dashboardBidding フィールド例:
{
"service": [
{
"value": [
"*"
],
"op": "in"
}
],
"app_id": [
{
"value": [
"test0"
],
"op": "wildcard"
}
],
"label": [
{
"value": [
"勿删"
],
"op": "in"
}
]
}
リクエスト例¶
curl 'https://openapi.guance.com/api/v1/dashboard/dsbd_xxxx32/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: zh' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name":"test_Redis Monitor View","dashboardBidding":{"app_id":[{"value":["cccc"],"op":"in"}]}}' \
--compressed
レスポンス¶
{
"code": 200,
"content": {
"chartGroupPos": [
"chtg_xxxx32",
"chtg_xxxx32",
"chtg_xxxx32"
],
"chartPos": [
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 8,
"x": 0,
"y": 2
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 6,
"x": 0,
"y": 12.5
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 8,
"x": 0,
"y": 23
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 6,
"x": 18,
"y": 12.5
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 8,
"x": 8,
"y": 2
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 8,
"x": 8,
"y": 23
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 8,
"x": 0,
"y": 31
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 8,
"x": 16,
"y": 23
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 6,
"x": 12,
"y": 12.5
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 8,
"x": 16,
"y": 31
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 6,
"x": 6,
"y": 12.5
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 8,
"x": 16,
"y": 2
}
},
{
"chartUUID": "chrt_xxxx32",
"pos": {
"h": 8,
"i": "chrt_xxxx32",
"w": 8,
"x": 8,
"y": 31
}
}
],
"createAt": 1698732345,
"createdWay": "manual",
"creator": "wsak_xxxxx",
"dashboardBidding": {
"app_id": [
{
"op": "in",
"value": [
"cccc"
]
}
]
},
"dashboardBindSet": [],
"deleteAt": -1,
"extend": {},
"iconSet": {
"icon": "http://testing-static-res.dataflux.cn/dataflux-template/dashboard/zh/aliyun_redis/icon.svg",
"url": "http://testing-static-res.dataflux.cn/dataflux-template/dashboard/zh/aliyun_redis/aliyun_redis.png"
},
"id": 4615,
"isPublic": 1,
"mapping": [],
"name": "test_Redis Monitor View",
"old_name": "test_Redis Monitor View",
"ownerType": "inner",
"status": 0,
"tag_info": {
"tagInfo": []
},
"type": "CUSTOM",
"updateAt": 1698732854,
"updator": "wsak_xxxxx",
"updatorInfo": {
"acntWsNickname": "",
"email": "wsak_xxxxx",
"iconUrl": "",
"name": "a",
"username": "xxx"
},
"uuid": "dsbd_xxxx32",
"workspaceUUID": "wksp_xxxx32"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-CEA33BA0-68C7-499B-83D7-F59015192DBB"
}