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

graphql: add alertStats field on Service #4293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mastercactapus
Copy link
Member

Description:
Adds an alertStats field on Service that provides aggregate statistics:

  • average time to ack in seconds
  • average time to close in seconds
  • number of alerts
  • number of escalated alerts

Out of Scope:

  • Does not include noisy alerts (not in the alert_metrics table)
  • Does not update the UI to use the new query (currently uses manual aggregation)

Describe any introduced API changes:

  • Service GraphQL type got a alertStats field

Additional Info:

  • Uses the date_bin function introduced in Postgres 14, with a polyfill migration for older versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant