Skip to content

Commit

Permalink
Improve handling missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Feb 1, 2025
1 parent 8d24d2b commit 3187175
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 22 deletions.
3 changes: 2 additions & 1 deletion lib/flux/extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def records(day)
#{from_bucket}
|> #{range}
|> #{filter(selected_sensors: config.sensor_names)}
|> aggregateWindow(every: 1m, fn: mean)
|> aggregateWindow(every: 5s, fn: last)
|> fill(usePrevious: true)
|> aggregateWindow(every: 1m, fn: mean)
FLUX
result = query(query_string)

Expand Down
27 changes: 14 additions & 13 deletions spec/cassettes/extractor.yml

Large diffs are not rendered by default.

55 changes: 51 additions & 4 deletions spec/cassettes/loop-restart.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 51 additions & 4 deletions spec/cassettes/loop-start.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3187175

Please sign in to comment.