Skip to content

Commit f3c5fbd

Browse files
authored
Add watcher.get_settings and watcher.update_settings (#3397) (#3499)
(cherry picked from commit f31d8cf)
1 parent 3166b78 commit f3c5fbd

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
@@ -777,24 +777,12 @@
777777
"interface definition watcher._types:TriggerEventContainer - Property schedule is a single-variant and must be required"
778778
]
779779
},
780-
"watcher.get_settings": {
781-
"request": [
782-
"Missing request & response"
783-
],
784-
"response": []
785-
},
786780
"watcher.start": {
787781
"request": [
788782
"Request: missing json spec query parameter 'master_timeout'"
789783
],
790784
"response": []
791785
},
792-
"watcher.update_settings": {
793-
"request": [
794-
"Missing request & response"
795-
],
796-
"response": []
797-
},
798786
"xpack.info": {
799787
"request": [
800788
"Request: query parameter 'human' does not exist in the json spec",

0 commit comments

Comments
 (0)