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

Aggregate metrics #469

Closed
pditommaso opened this issue Apr 23, 2024 · 0 comments · Fixed by #472
Closed

Aggregate metrics #469

pditommaso opened this issue Apr 23, 2024 · 0 comments · Fixed by #472
Assignees

Comments

@pditommaso
Copy link
Collaborator

The goal of this issue is to extend the v1alpha2 metrics endpoint so that it returns aggregate metrics when no date or org parameter is specified.

In this case, it should return the value of all <metrics>/o/<organization> keys and the total for all for them for example having

/pulls/o/foo: 1
/pulls/o/bar: 5

it should return

{
  "metrics": "pulls",
  "count": 6,
  "orgs": {
    "foo": 1,
    "bar": 5
  }
}
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants