自動検出設定の変更¶
POST /api/v1/issue_auto_discovery/{cfg_uuid}/modify
概要¶
ルートパラメータ¶
| パラメータ名 | 型 | 必須 | 説明 |
|---|---|---|---|
| cfg_uuid | string | Y | Issue 自動検出設定の UUID |
Body リクエストパラメータ¶
| パラメータ名 | 型 | 必須 | 説明 |
|---|---|---|---|
| name | string | Y | タイトル名 例: name 空の値を許可: False 最大長: 256 |
| description | string | 説明 例: description 空の値を許可: False 空文字列を許可: True |
|
| dqlNamespace | string | Y | データ範囲 例: rum 空の値を許可: False 選択可能な値: ['keyevent'] |
| every | integer | Y | チェック頻度(秒単位の時間長) 例: 300 空の値を許可: False $minValue: 300 $maxValue: 3600 選択可能な値: [60, 300, 600, 900, 1800, 3600] |
| conditions | string | dql クエリフィルター条件の中括弧内の内容部分 例: source IN ['kube-controller'] 空の値を許可: False 空文字列を許可: True |
|
| dimensions | array | ディメンションフィールドリスト 例: ['chan_xxx1', 'chan_xxx2'] 空の値を許可: False $minLength: 1 |
|
| config | json | Y | Issue 定義設定 例: {} 空の値を許可: False |
| config.name | string | Y | タイトル名 例: name 空の値を許可: False 最大長: 256 |
| config.level | string | レベル 例: level 空の値を許可: False 空文字列を許可: True |
|
| config.channelUUIDs | array | チャンネル UUID リスト 例: ['chan_xxx1', 'chan_xxx2'] 空の値を許可: False |
|
| config.description | string | 説明 例: description 空の値を許可: False |
|
| config.extend | json | 追加の拡張情報。Issue 作成時の extend フィールドを参照できます。通常は OpenAPI 側で設定することは推奨しません。 例: {} 空の値を許可: True |
パラメータ補足説明¶
リクエスト例¶
curl 'https://openapi.guance.com/api/v1/issue_auto_discovery/iatdc_xxxxx/modify' \
-H 'Content-Type: application/json' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-raw '{"name":"test-core-worker","description":"desc1","every":300,"dqlNamespace":"keyevent","conditions":"`source` = \"lwctest\"","dimensions":["name"],"config":{"name":"name1","description":"desc","level":"system_level_0","extend":{"text":"desc","manager":["acnt_xxx"]},"channelUUIDs":["chan_xxxxx"]}}' \
--insecure
レスポンス¶
{
"code": 200,
"content": {
"conditions": "`source` = \"lwctest\"",
"config": {
"channelUUIDs": [
"chan_xxxxx"
],
"description": "desc",
"extend": {
"manager": [
"acnt_xxxx"
],
"text": "desc"
},
"level": "system_level_0",
"name": "name1"
},
"createAt": 1735893393,
"creator": "wsak_xxxx",
"declaration": {
"organization": "xxx"
},
"deleteAt": -1,
"description": "desc1",
"dimensions": [
"name"
],
"dqlNamespace": "keyevent",
"every": 300,
"id": 47,
"name": "test-core-worker",
"status": 0,
"updateAt": 1735893669.0875816,
"updator": "wsak_xxxx",
"uuid": "iatdc_xxxx",
"workspaceUUID": "wksp_xxxxx"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "1634728700182310814"
}