daq-tools / kotori

A flexible data historian based on InfluxDB, Grafana, MQTT, and more. Free, open, simple.
https://getkotori.org/
GNU Affero General Public License v3.0
107 stars 17 forks source link

[export] Improve export transformation capabilities #146

Closed amotl closed 10 months ago

amotl commented 1 year ago

About

Added new HTTP export API query parameters sort, direction, limit, and scalar.

Example

http "https://swarm.hiveeyes.org/api/hiveeyes/zku/paxcounter/bauschilderung/data.json?from=now-5m&sort=time&direction=desc&limit=1&scalar=pax"

References

Backlog

/cc @ClemensGruber

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.33% :tada:

Comparison is base (5c3c856) 78.26% compared to head (75b6302) 78.59%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #146 +/- ## ========================================== + Coverage 78.26% 78.59% +0.33% ========================================== Files 55 55 Lines 3009 3014 +5 ========================================== + Hits 2355 2369 +14 + Misses 654 645 -9 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `78.59% <100.00%> (+0.33%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/daq-tools/kotori/pull/146?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools) | Coverage Δ | | |---|---|---| | [kotori/io/protocol/target.py](https://app.codecov.io/gh/daq-tools/kotori/pull/146?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#diff-a290b3JpL2lvL3Byb3RvY29sL3RhcmdldC5weQ==) | `72.04% <100.00%> (+11.12%)` | :arrow_up: | | [kotori/io/protocol/util.py](https://app.codecov.io/gh/daq-tools/kotori/pull/146?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#diff-a290b3JpL2lvL3Byb3RvY29sL3V0aWwucHk=) | `61.87% <100.00%> (-0.24%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/daq-tools/kotori/pull/146/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.