feat(slo): burn rate rule editor#147211
Conversation
|
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
dde5e00 to
4a07e34
Compare
This one is tricky since the Storybook uses mocks for the hook, therefore whatever you type always returns the same data. We would need to test with real data when we create the rule but this will be done in another PR.
Good catch, the value needed to be set as a string actually 😬 |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Unknown metric groupsAPI count
ESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @kdelemme |

📝 Summary
Related to #145262
This PR creates the burn rate rule editor form, with the different components and validation required.
The LongWindowDuration component validates that the duration is at least 30minutes and no more than 24 hours or 1440 minutes.
When an SLO is selected and the longWindowDuration is changed, the component computes the max burn rate allowed as defined by
slo_window_in_minutes / long_window_in_minutes.This PR does not integrate the Editor with the Rule framework yet. To prevent this PR to grow too much, I'll do the integration in a followup PR.
🥼 Testing
You can run
yarn storybook observabilityto check the component.