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

[Cases] Add MTTR metric #130459

Merged
merged 11 commits into from
May 3, 2022
Merged

[Cases] Add MTTR metric #130459

merged 11 commits into from
May 3, 2022

Conversation

cnasikas
Copy link
Member

@cnasikas cnasikas commented Apr 18, 2022

Summary

This PR adds the MTTR (mean time to response) metric for all cases. It follows the same pattern as with the single case metrics.

Depends on #130448

To verify

  1. Create a case and leave it open for a while.
  2. Close the case.
  3. Do the following request: GET /api/cases/metrics/?features=["mttr"]

The endpoint accepts the following query parameters:

  • owner: string | string[]
  • from: an ISO date
  • to: an ISO date

Try different values to verify that the endpoint respects the query parameters.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@cnasikas cnasikas added release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Cases Cases feature v8.3.0 labels Apr 18, 2022
@cnasikas cnasikas self-assigned this Apr 18, 2022
@cnasikas cnasikas marked this pull request as ready for review April 29, 2022 15:14
@cnasikas cnasikas requested a review from a team as a code owner April 29, 2022 15:14
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@cnasikas cnasikas requested a review from academo April 29, 2022 15:19
@cnasikas cnasikas assigned cnasikas and unassigned cnasikas May 2, 2022
@cnasikas
Copy link
Member Author

cnasikas commented May 2, 2022

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cases 91.1KB 91.3KB +234.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @cnasikas

@cnasikas cnasikas merged commit 72cd0ec into elastic:main May 3, 2022
@cnasikas cnasikas deleted the cases_mttr branch May 3, 2022 08:24
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label May 3, 2022
academo pushed a commit to academo/kibana that referenced this pull request May 4, 2022
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
dmlemeshko pushed a commit to dmlemeshko/kibana that referenced this pull request May 5, 2022
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
kertal pushed a commit to kertal/kibana that referenced this pull request May 24, 2022
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants