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

Watcher: Add API for time based throttling with expiry #34038

Closed
spinscale opened this issue Sep 25, 2018 · 2 comments
Closed

Watcher: Add API for time based throttling with expiry #34038

spinscale opened this issue Sep 25, 2018 · 2 comments

Comments

@spinscale
Copy link
Contributor

Describe the feature:

Currently watcher provides two mechanisms of throttling, see here. A watch or an action inside of a watch can be configured to be throttled for a certain amount of time, so that you do not send out emails every few minutes. Or a watch/action can be acknowledged via an API, so that it needs to become false first to ever fire again.

However, there is another use-case, where you would want to mix the two in order to silence a watch/action for a certain amount of time before the watch/action will be firing again.

A possible solution to this could be to extend the ACK Watch API to provide a body, that contains an expiry date for the watch or for certain actions.

Right you one can call

POST _xpack/watcher/watch/my_watch/_ack/action1,action2
POST _xpack/watcher/watch/my_watch/_ack

Adding a body like this

POST _xpack/watcher/watch/my_watch/_ack
{
  "expiry_date" : "2018-09-25T12:12:12Z"
}

POST _xpack/watcher/watch/my_watch/_ack
{
  "expiry_after" : "25m"
}

would add a time based throttling instead of an ack based one.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@rjernst rjernst added the Team:Data Management Meta label for data/management team label May 4, 2020
@dakrone
Copy link
Member

dakrone commented May 8, 2024

This has been open for quite a while, and hasn't had a lot of interest. For now I'm going to close this as something we aren't planning on implementing. We can re-open it later if needed.

@dakrone dakrone closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants