新建¶
POST /api/v1/error_track_rule/add
概述¶
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/add' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name":"jj_test","desc":"","type":"logging","sources":["a-123"]}'
响应¶
{
"code": 200,
"content": {
"workspaceUUID": "wksp_84c4a0044edc4f878ea88e4517659bda",
"name": "jj_test",
"desc": "",
"type": "logging",
"sources": [
"a-123"
],
"extend": null,
"id": null,
"uuid": "issetrule_02b5abf016524b3fa2c0a15bd3279c1b",
"status": 0,
"creator": "acnt_8b4bd2b8782646f3ba8f6554193f5997",
"updator": "",
"createAt": 1772788123,
"deleteAt": -1,
"updateAt": -1
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "46cee577b1053d80063e67319dffcc6b"
}