Skip to contents

InfluxDB: write aggregated time series to Ultimate target bucket

Usage

write_aggr_to_influxdb(
  start,
  end,
  agg_interval = "1h",
  agg_function = "mean",
  bucket_source = "ultimate",
  bucket_target = sprintf("%s_%s_%s", bucket_source, agg_function, agg_interval),
  bucket_org = "kwb"
)

Arguments

start

date start

end

date end

agg_interval

aggregation interval (default: "1h")

agg_function

aggregation function (default: "mean")

bucket_source

bucket source (default: "ultimate")

bucket_target

bucket target (default: <bucket_source_<agg_function>_<agg_interval>))

bucket_org

bucket organisation (default: "kwb")

Value

writes aggregated time series to InfluxDB target bucket in loop