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 parameters to readings query #374

Open
oscgonfer opened this issue Nov 12, 2024 · 0 comments · May be fixed by #376
Open

Add parameters to readings query #374

oscgonfer opened this issue Nov 12, 2024 · 0 comments · May be fixed by #376
Assignees

Comments

@oscgonfer
Copy link
Contributor

For enhancing the data processing workflows, it would be desirable to have a better control on the queries we to on readings.
Limitations:

  • Created at is not necessarily the date of the first reading (could be after for devices not logging data, or before, for SD-card devices, or flash devices)
  • There is no way to query only a certain amount of data points (regardless of the frequency of data-logging) to limit both the load on kairos and the later load on the data storer

image

Proposal:

  • add first_reading_at to the device model: date of the first reading available
  • add count to the list of possible parameters on the /readings query

For the count bit, possible requests would be:

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