You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to see a trill example showing how to one would calculate the duration of a condition and use that for deciding which values should be returned.
Lets say we need to check a stream containing temperature values and if they are above a specified threshold (i.e 70 degrees) for more than 20 minutes, then output a "TEMPERATURE LIMIT EXCEEDED" error value. Once the condition is no longer satisfied, we output a "TEMPERATURE NORMAL" value.
Another great example would be to show a basic 10 minute aggregation calculation that takes values arriving at a few seconds apart(times may vary) and aggregate (SUM or AVERAGE) a single 10 minute value that is outputed every 10 minutes and aligned with the clock. I.e 12:00, 12:10, 12:20 etc..
The text was updated successfully, but these errors were encountered:
I'm looking into this from the thread on the main Trill repo, but it's a great idea to add it here. As soon as I have something for you, I'll make sure it gets added as a sample.
It would be nice to see a trill example showing how to one would calculate the duration of a condition and use that for deciding which values should be returned.
Lets say we need to check a stream containing temperature values and if they are above a specified threshold (i.e 70 degrees) for more than 20 minutes, then output a "TEMPERATURE LIMIT EXCEEDED" error value. Once the condition is no longer satisfied, we output a "TEMPERATURE NORMAL" value.
Another great example would be to show a basic 10 minute aggregation calculation that takes values arriving at a few seconds apart(times may vary) and aggregate (SUM or AVERAGE) a single 10 minute value that is outputed every 10 minutes and aligned with the clock. I.e 12:00, 12:10, 12:20 etc..
The text was updated successfully, but these errors were encountered: