Skip to content

Modify



POST /api/v1/viewer/{viewer_uuid}/modify

Overview

Modify Explorer

Route Parameters

Parameter Name Type Required Description
viewer_uuid string Y Explorer UUID

Body Request Parameters

Parameter Name Type Required Description
name string Explorer Name
Example: Explorer 1
Allow Empty: False
Max Length: 64
desc string Description
Example: Description 1
Allow Empty: False
Allow Empty String: True
Max Length: 2048
type string Type, Default is CUSTOM
Example: CUSTOM
Allow Empty: False
Max Length: 32
extend json Extra Data of Explorer, Default is {}
Example: {}
Allow Empty: False
pathName string Explorer Path Name
Example: tracing__profile
Allow Empty: False
Max Length: 32
tagNames array Tag Names
Allow Empty: False
tagNames[*] string Tag Name
Allow Empty: False
Max Length: 128
dashboardBindSet array Bound View Information of Explorer
Example: []
Allow Empty: False
Allow Empty String: False

Parameter Additional Explanation

Request Example

curl 'https://openapi.guance.com/api/v1/viewer/dsbd_xxxx32/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name":"modify_viewer","tagNames":["Application Performance"]}' \
--compressed 

Response

{
    "code": 200,
    "content": {
        "chartGroupPos": [],
        "chartPos": [],
        "createAt": 1677661673,
        "createdWay": "manual",
        "creator": "wsak_xxxxx",
        "dashboardBidding": {},
        "dashboardBindSet": [],
        "deleteAt": -1,
        "extend": {
            "analysisField": "message",
            "charts": [
                null,
                null,
                null
            ],
            "filters": [],
            "index": "tracing",
            "quickFilter": {
                "columns": []
            },
            "rumAppId": "",
            "rumType": "",
            "selectedIndex": "default",
            "source": "",
            "table": {
                "columns": []
            }
        },
        "iconSet": {},
        "id": 712,
        "isPublic": 1,
        "mapping": [],
        "name": "modify_viewer",
        "old_name": "add_viewer",
        "ownerType": "viewer",
        "status": 0,
        "tag_info": {
            "tagInfo": [
                {
                    "id": "tag_xxxx32",
                    "name": "Application Performance"
                }
            ]
        },
        "type": "CUSTOM",
        "updateAt": 1677662058.377045,
        "updator": "wsak_xxxxx",
        "updatorInfo": {
            "email": "wsak_xxxxx",
            "iconUrl": "",
            "name": "Smart Inspection Test",
            "username": "xxxx"
        },
        "uuid": "dsbd_xxxx32",
        "workspaceUUID": "wksp_xxxx32"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-AECCF8D3-29D3-431E-AB68-046688C30035"
} 

Feedback

Is this page helpful? ×