I'm trying to get the time difference between the first and the last item 
within a window of 10 minutes using kapacitor. E.g.

var vids = stream
        |from()
                .measurement('control')
                .groupBy('vid')


        |window()
                .period(10m)
                .every(1m)


var mins = vids
        |min('ping')
                .as('minping')


var first = vids
        |first('ping')


var last = vids
        |last('ping')


It seems that first and last indeed contain the value of 'ping' of the 
first resp. last time point in the window. 

My question is: is it possible to get the time difference between these two 
points. 

(too) simply said:  last.time - first.time

thanks

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/6ac8e824-11f6-43d5-bea6-3db8045a672b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to