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

Add stats endpoint #4

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

Add stats endpoint #4

wants to merge 1 commit into from

Conversation

kevinahuber
Copy link
Contributor

This adds documentation for our stats metrics endpoint.


Example Request:
```
https://my.phy.net/api/v2/metrics/stats?metric=scans&from=1521561000000&to=1524153000000&dimension=activity&value=all&interval=day

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are 'from' and 'to' supposed to be swapped here?

Copy link

@rochforp rochforp Apr 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The request I was using that is working is structured a little different
"https://my.phy.net/api/v2/metrics/stats?metric=scans&dimension=phyid&value=all&to=1523982165633&from=1523896360822&interval=day"

dimension followed by value with interval at the end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rochforp The order does not matter with query variables, as long as the keys are unique. They are parsed into an object and accessed from that.

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 this pull request may close these issues.

3 participants