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

Implement historical endpoint #2

Open
sfirke opened this issue Jul 26, 2024 · 0 comments
Open

Implement historical endpoint #2

sfirke opened this issue Jul 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sfirke
Copy link
Member

sfirke commented Jul 26, 2024

Note from the description of the startTime parameter when querying Recent Measurements:

Cut-off time for the earliest measurement desired. If not specified, the start time used will be chosen based on the requested output frequency
minute → 1 hour prior to time of request
hour → 24 hours prior to time of request
day → 48 hours prior to time of request

Measurements are returned from a cache. Earlier times are accepted in the parameter, but only data from the cache will be returned.

Say you want the last week of hourly measurements. The hourly cache only goes back 48 hours so there is no way to query that from the recent measurements endpoint.

It would be nice if this could be implemented such that the user can use the same clarityio call and simply specify "historical" as the endpoint, but I haven't yet looked to see if the interfaces are similar enough for that to be reasonable.

@sfirke sfirke added the enhancement New feature or request label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant