-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[RAM] META MVP Snoozing API #125804
Comments
Pinging @elastic/response-ops (Team:ResponseOps) |
Not sure this is compatible with the |
Noticing there's a difference between |
the |
This was just a suggestion on the API level but not for the SO. I was thinking that if we see |
Is there a reason to use |
I will disagree, I think it is better that the user is setting snooze_end_time attribute to -1 than just omitting it and getting a side effect of the API. I feel that can just be a mistake from our user it allow us a better validation on the snooze_end_time. |
Is it possible for the user to set |
Yeah, that's fair, and If the rest of the team feels comfortable with I see where @chrisronline is coming from here... if the user wants to "snooze forever", why not just mute the rule? 🤔 |
After talking to @XavierM, my understanding is that we intend to deprecate the the mute functionality (or maybe at least the |
resolves elastic#126512 This PR fills in some of the missing pieces with the new rule snoozing functionality described in meta issue elastic#125804 The main bit is the calculation of whether a rule is "snoozed". Prior to this, we only had the `mute_all` boolean property, but now we also have a `snooze_end_time` Date | null property. Here's how they work: | | snooze_end_time: null | snooze_end_time: date | | ------------------- | ----------------------- | -------------------------- | | **mute_all: true** | rule is snoozed forever | invalid | | **mute_all: false** | rule is not snoozed | rule is snoozed till date | This is handled in the function `isRuleSnoozed()` in `x-pack/plugins/alerting/server/task_runner/task_runner.ts`
That's my assumption to avoid weird side effect between our |
Added an issue to add docs for Snooze UX (thanks @Zacqary !) as we forgot 😬 |
This Meta issue will describe what needs to be done on the API side to allow a MVP snoozing to be able to build the snoozing UI #124888.
The text was updated successfully, but these errors were encountered: