Skip to content

Commit

Permalink
Add watcher.get_settings and watcher.update_settings (#3397) (#3499)
Browse files Browse the repository at this point in the history
(cherry picked from commit f31d8cf)
  • Loading branch information
lcawl authored Jan 9, 2025
1 parent 3166b78 commit f3c5fbd
Show file tree
Hide file tree
Showing 12 changed files with 492 additions and 20 deletions.
21 changes: 21 additions & 0 deletions docs/overlays/elasticsearch-openapi-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,3 +546,24 @@ actions:
examples:
delegatePkiResponseExample1:
$ref: "../../specification/security/delegate_pki/examples/200_response/SecurityDelegatePkiResponseExample1.yaml"
## Examples for watcher
- target: "$.paths['/_watcher/settings']['put']"
description: "Add request example for update watcher settings"
update:
requestBody:
content:
application/json:
examples:
updateWatcherSettingsRequestExample1:
$ref: "../../specification/watcher/update_settings/examples/request/WatcherUpdateSettingsRequestExample1.yaml"
- target: "$.paths['/_watcher/settings']['get']"
description: "Add response example for get watcher settings"
update:
responses:
200:
content:
application/json:
examples:
updateWatcherSettingsRequestExample1:
$ref: "../../specification/watcher/get_settings/examples/200_response/WatcherGetSettingsResponseExample1.yaml"

110 changes: 110 additions & 0 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

191 changes: 183 additions & 8 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions output/schema/validation-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -777,24 +777,12 @@
"interface definition watcher._types:TriggerEventContainer - Property schedule is a single-variant and must be required"
]
},
"watcher.get_settings": {
"request": [
"Missing request & response"
],
"response": []
},
"watcher.start": {
"request": [
"Request: missing json spec query parameter 'master_timeout'"
],
"response": []
},
"watcher.update_settings": {
"request": [
"Missing request & response"
],
"response": []
},
"xpack.info": {
"request": [
"Request: query parameter 'human' does not exist in the json spec",
Expand Down
Loading

0 comments on commit f3c5fbd

Please sign in to comment.