BEGIN
SELECT mean(“value”) AS value
INTO “new_RP”.“new_measurement”
FROM “old_RP”.“old_measurement”
group by time(1m), topic
FILL(previous)
END
I’d like to ask how to do two things:
What are all the options for math downsampling? Can I use mean, max, min, and what else? Can I specify if the value is different from previous value by X amount? So for temperature, I don’t want average, I want to capture if the values are changed from the previous value by a certain amount.
What if I don’t want all topics within that measurement, only specific topics?