influxdb 筆記: Continuous Queries - CQs

G8bao7發表於2016-11-29



# 自動執行查詢
CREATE CONTINUOUS QUERY cq_30m ON food_data BEGIN SELECT mean(website) AS mean_website,mean(phone) AS mean_phone INTO food_data."default".downsampled_orders FROM orders GROUP BY time(30m) END

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26250550/viewspace-2129325/,如需轉載,請註明出處,否則將追究法律責任。

相關文章