parseable icon indicating copy to clipboard operation
parseable copied to clipboard

feat: Update `StateTransition` for alerts

Open parmesant opened this issue 4 weeks ago • 1 comments

Add previous_alert_state and previous_alert_duration. If not present at runtime, will get created using historical values

Fixes #XXXX.

Description


This PR has:

  • [ ] been tested to ensure log ingestion and log query works.
  • [ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • [ ] added documentation for new or modified features or behaviors.

Summary by CodeRabbit

  • Refactor
    • Retain historical alert state transitions, recording the previous state and elapsed duration for each transition.
    • Expose alert list query parameters and their parser to enable external filtering, tagging and pagination controls.

✏️ Tip: You can customize this high-level summary in your review settings.

parmesant avatar Dec 15 '25 03:12 parmesant