Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add watcher.get_settings and watcher.update_settings #3397

Merged
merged 3 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -431,18 +431,6 @@
"interface definition watcher._types:TriggerEventContainer - Property schedule is a single-variant and must be required"
]
},
"watcher.get_settings": {
"request": [
"Missing request & response"
],
"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
Loading