Skip to content

Commit f31d8cf

Browse files
authored
Add watcher.get_settings and watcher.update_settings (#3397)
1 parent b959a04 commit f31d8cf

File tree

12 files changed

+492
-20
lines changed

12 files changed

+492
-20
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,3 +546,24 @@ actions:
546546
examples:
547547
delegatePkiResponseExample1:
548548
$ref: "../../specification/security/delegate_pki/examples/200_response/SecurityDelegatePkiResponseExample1.yaml"
549+
## Examples for watcher
550+
- target: "$.paths['/_watcher/settings']['put']"
551+
description: "Add request example for update watcher settings"
552+
update:
553+
requestBody:
554+
content:
555+
application/json:
556+
examples:
557+
updateWatcherSettingsRequestExample1:
558+
$ref: "../../specification/watcher/update_settings/examples/request/WatcherUpdateSettingsRequestExample1.yaml"
559+
- target: "$.paths['/_watcher/settings']['get']"
560+
description: "Add response example for get watcher settings"
561+
update:
562+
responses:
563+
200:
564+
content:
565+
application/json:
566+
examples:
567+
updateWatcherSettingsRequestExample1:
568+
$ref: "../../specification/watcher/get_settings/examples/200_response/WatcherGetSettingsResponseExample1.yaml"
569+

output/openapi/elasticsearch-openapi.json

Lines changed: 110 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 183 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -431,18 +431,6 @@
431431
"interface definition watcher._types:TriggerEventContainer - Property schedule is a single-variant and must be required"
432432
]
433433
},
434-
"watcher.get_settings": {
435-
"request": [
436-
"Missing request & response"
437-
],
438-
"response": []
439-
},
440-
"watcher.update_settings": {
441-
"request": [
442-
"Missing request & response"
443-
],
444-
"response": []
445-
},
446434
"xpack.info": {
447435
"request": [
448436
"Request: query parameter 'human' does not exist in the json spec",

0 commit comments

Comments
 (0)