简体   繁体   中英

Azure Stream Analytics temporal queryes

i'm new to Azure and i'm not sure if i'm getting right the query system. I have and application that sends data in every 1.5s to my Service Bus and i need to get my data to PowerBI in real-time. The simplest query

SELECT * FROM DataSource

return all data and i can't use it to see real-time events. So i searched and i found about Temporal Queryes, but every example i follow doesn't seems to help me (probably i'm not doing it right). Here's my query:

SELECT id, pais, temp, vel, son, lon, lat, hora, dia, colisao, multa, motor, System.timestamp as time, COUNT(*)
FROM fakentrance TIMESTAMP BY time
GROUP BY
id, pais, temp, vel, son, lon, lat, hora, dia, colisao, multa, motor,
TUMBLINGWINDOW(s, 2)

Beeing more specific, what i need to do is something like: If my toy car is accelerating i can have a gauge to show it's increase or decrease in acceleration, or the real temperature of my room, so if it's 30°c and it drops to 16°C it's show this exactly value. What am i doing wrong?

Make sure that you have defined both your input and output correctly and include them in your query.

 SELECT id, pais, temp, vel, son, lon, lat, hora, dia, colisao, multa, motor, System.timestamp as time, COUNT(*)
    INTO
    <PowerBIOutput>
    FROM <DataSource> TIMESTAMP BY time
    GROUP BY
    id, pais, temp, vel, son, lon, lat, hora, dia, colisao, multa, motor, TUMBLINGWINDOW(s, 2)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM