Queryهای کاربردی
دمای یک دستگاه
میانگین ساعتی
بازهٔ روزانهٔ UTC
avg، sum، min و
max فقط برای مقدارهای عددی معتبرند.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
فیلتر، aggregation، bucket و timezone در FlovaQL.
SELECT time, value
FROM telemetry
WHERE device.id = 'DEVICE_ID'
AND datastream.key = 'temperature'
AND time > now() - 7d
ORDER BY time DESC
LIMIT 100
TIMEZONE 'Asia/Tehran'
SELECT
bucket(time, 1h) AS hour,
avg(value) AS average_temperature
FROM telemetry
WHERE datastream.key = 'temperature'
AND time > now() - 7d
GROUP BY hour
ORDER BY hour
TIMEZONE 'UTC'
SELECT
bucket(time, 1d) AS day,
count(value) AS samples
FROM telemetry
WHERE datastream.key = 'temperature'
AND time > now() - 30d
GROUP BY day
avg، sum، min و
max فقط برای مقدارهای عددی معتبرند.Was this page helpful?
