修改¶
POST /api/v1/error_track_rule/{rule_uuid}/modify
概述¶
路由参数¶
| 参数名 | 类型 | 必选 | 说明 |
|---|---|---|---|
| rule_uuid | string | Y | rule uuid 允许为空字符串: False |
Body 请求参数¶
| 参数名 | 类型 | 必选 | 说明 |
|---|---|---|---|
| name | string | Y | 名称 允许为空: False 最大长度: 128 |
| desc | string | 描述 允许为空: False 允许为空字符串: True 最大长度: 256 |
|
| type | string | Y | 类型 允许为空: False 可选值: ['logging', 'tracing', 'rum'] |
| sources | array | 来源 例子: ['wsAdmin', 'acnt_xxxx', 'group_yyyy'] 允许为空: False |
|
| extend | json | 扩展信息 允许为空: False |
参数补充说明¶
请求例子¶
curl 'https://openapi.guance.com/api/v1/error_track_rule/<rule_uuid>/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name":"jj_test-m","desc":"","type":"logging","sources":["front_backend"]}'
响应¶
{
"code": 200,
"content": {
"createAt": 1772788123,
"creator": "acnt_8b4bd2b8782646f3ba8f6554193f5997",
"deleteAt": -1,
"desc": "",
"extend": {},
"id": 30,
"name": "jj_test-m",
"sources": [
"front_backend"
],
"status": 0,
"type": "logging",
"updateAt": 1772788280.5053403,
"updator": "acnt_8b4bd2b8782646f3ba8f6554193f5997",
"uuid": "issetrule_02b5abf016524b3fa2c0a15bd3279c1b",
"workspaceUUID": "wksp_84c4a0044edc4f878ea88e4517659bda"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "57e462a51b100daa7b48b57c57046b49"
}