Hi,
I have for now created a siddhi query that receive events and after a little 
processing send them to dashboard where a bar chart display events. I am 
receiving events and sending their timestamps (ts)  as string and number of 
events (count) as integer to a stream, bar chart displays count on y-axis and 
ts on x-axis. So for timestamps for which events received, count is shown on 
the chart.
But I want to set count default value 0 and keep sending increamented 
timestamps and count value to dashboard even in absence of any events. As 
timestamps are increamented per minute, all I have to do (atleast as far as I 
think) is to start a loop which keep sending default events (ts=next_min, 
count=0) after waiting for one minute and loop should continue unless I further 
receive  any event. I was wondering if there is any notification available for 
received events which I could use to break the loop or there is some default 
function in wso2 siddhi which does this?
I hope I am able to make clear what I require.


Need to insert 0s between two timestamps with interval of a min, i.e. 
(2016-08-12 11:33, 0), (2016-08-12 11:34, 0),...,(2016-08-12 11:37, 0)
Thanks, Regards, Aneela Safdar
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to