Skip to content

[Feature] API: Add the ability to request only a specific time range of results #2318

@sthivaios

Description

@sthivaios

Pre-work

  • I have searched open and closed feature request to make sure this or similar feature request does not already exist.
  • I have reviewed the milestones to ensure that this feature request, or a similar one, has not already been proposed.
  • I agree to follow this project's Code of Conduct.

Which part of the application does your feature belong to?

Charts

Description

Hello there.

I deployed speedtest-tracker on Docker yesterday using PostgreSQL. It works great, and the charts in its own web UI function as intended.

However, I like using Grafana to keep track of my metrics all in one place. I used the "Infinity" Grafana plugin to query the API and format the JSON data into graphs and tables on a dashboard. This worked great, until I realized that the latest speedtest was not showing in the Grafana dashboard.

After querying the API with Postman, it appears that the speedtest is not in the JSON response which would explain why the Grafana dashboard wasn't displaying it.

After "poking" a bit at the response I found out that it uses pagination (yes, I hadn't read the docs very carefully lol). However, for stuff like Grafana dashboards, this significantly complicates fetching the data.

Perhaps, the results API endpoint could accept from and to parameters, in order to only return what the app wants, which, if it is not a lot of data, would not require pagination. For simplicity, the parameters could just be UNIX timestamps rather than strings which may need decoding.

Thanks in advance for considering this feature request.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions