Skip to content

Add stats endpoint#4

Open
kevinahuber wants to merge 1 commit intomasterfrom
feature/stats-endpoint
Open

Add stats endpoint#4
kevinahuber wants to merge 1 commit intomasterfrom
feature/stats-endpoint

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