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
110 stars 17 forks source link

[InfluxDB] Improve export adapter interfaces, and naming things #151

Closed amotl closed 1 year ago

amotl commented 1 year ago

Pulled out of GH-148, this patch sets the stage for more easily bringing in different database adapters when exporting data.

Other than this, there are also a few maintenance adjustments.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 77.06% and project coverage change: +10.83 :tada:

Comparison is base (b2817b6) 67.43% compared to head (52e8d5e) 78.26%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #151 +/- ## =========================================== + Coverage 67.43% 78.26% +10.83% =========================================== Files 65 55 -10 Lines 3565 3009 -556 =========================================== - Hits 2404 2355 -49 + Misses 1161 654 -507 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `78.26% <77.06%> (+10.83%)` | :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. | [Impacted Files](https://app.codecov.io/gh/daq-tools/kotori/pull/151?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/util.py](https://app.codecov.io/gh/daq-tools/kotori/pull/151?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#diff-a290b3JpL2lvL3Byb3RvY29sL3V0aWwucHk=) | `62.11% <45.94%> (-4.83%)` | :arrow_down: | | [kotori/io/export/database.py](https://app.codecov.io/gh/daq-tools/kotori/pull/151?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#diff-a290b3JpL2lvL2V4cG9ydC9kYXRhYmFzZS5weQ==) | `86.48% <86.48%> (ø)` | | | [kotori/daq/storage/influx.py](https://app.codecov.io/gh/daq-tools/kotori/pull/151?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#diff-a290b3JpL2RhcS9zdG9yYWdlL2luZmx1eC5weQ==) | `78.37% <100.00%> (+19.28%)` | :arrow_up: | | [kotori/io/protocol/forwarder.py](https://app.codecov.io/gh/daq-tools/kotori/pull/151?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#diff-a290b3JpL2lvL3Byb3RvY29sL2ZvcndhcmRlci5weQ==) | `96.38% <100.00%> (ø)` | | | [kotori/io/protocol/http.py](https://app.codecov.io/gh/daq-tools/kotori/pull/151?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#diff-a290b3JpL2lvL3Byb3RvY29sL2h0dHAucHk=) | `83.45% <100.00%> (+0.69%)` | :arrow_up: | | [kotori/io/protocol/influx.py](https://app.codecov.io/gh/daq-tools/kotori/pull/151?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#diff-a290b3JpL2lvL3Byb3RvY29sL2luZmx1eC5weQ==) | `93.75% <100.00%> (+32.63%)` | :arrow_up: | | [kotori/io/protocol/target.py](https://app.codecov.io/gh/daq-tools/kotori/pull/151?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#diff-a290b3JpL2lvL3Byb3RvY29sL3RhcmdldC5weQ==) | `60.91% <100.00%> (ø)` | | ... and [10 files with indirect coverage changes](https://app.codecov.io/gh/daq-tools/kotori/pull/151/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: Do you have feedback about the report comment? Let us know in this issue.