Hi Rushmin, As suho has mentioned you can write a siddhi query with a window or even you can use a rate limiter and count number of events then write it to an output stream. Same kind of scenario is explained in this blog post [1] where in that blog it is calculated the average but in your case it needs to be count.
In the dashboard when you are selecting x and y axes, select TIMESTAMP for x axis and count for y axis. Chart is capable of identifying TIMESTAMPs seconds and plot them in X axis. [1] http://blog.tharik.org/2015/09/displaying-high-throughput-streams-in.html Regards, On Thu, Dec 10, 2015 at 11:25 PM, Sriskandarajah Suhothayan <[email protected]> wrote: > You can use the event time > @Tharik please point it out > > Suho > > On Thu, Dec 10, 2015 at 2:57 PM, Rushmin Fernando <[email protected]> > wrote: > >> Thanks Suho ! >> >> Is it time window or time batch window ? How can we get the time points >> to plot. >> >> e.g. 12.01 - 2 >> 12.02 - 5 >> 12.03 - 3 >> >> And the function should be *count()* right ? :-) >> >> On Thu, Dec 10, 2015 at 9:17 AM, Sriskandarajah Suhothayan <[email protected] >> > wrote: >> >>> Yes use a time window and calculate sum() and plot the results >>> >>> Suho >>> >>> On Thu, Dec 10, 2015 at 2:38 PM, Rushmin Fernando <[email protected]> >>> wrote: >>> >>>> >>>> Hi Devs, >>>> >>>> I need to address the following requirement. >>>> >>>> ------------------- >>>> >>>> A server sends events upon each request, to DAS. >>>> >>>> There should a dashboard to show the number of request in each second. >>>> >>>> ------------------- >>>> >>>> Since the time gap is small I am under the impression that batch >>>> analysis is not the best fit. >>>> >>>> How can we address a requirement like this ? Real time analysis would >>>> help ? >>>> >>>> Thanks >>>> Rushmin >>>> >>>> >>>> -- >>>> *Rushmin Fernando* >>>> *Technical Lead* >>>> >>>> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware >>>> >>>> email : [email protected] >>>> mobile : +94772310855 >>>> >>>> >>>> >>> >>> >>> -- >>> >>> *S. Suhothayan* >>> Technical Lead & Team Lead of WSO2 Complex Event Processor >>> *WSO2 Inc. *http://wso2.com >>> * <http://wso2.com/>* >>> lean . enterprise . middleware >>> >>> >>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: >>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: >>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: >>> http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>* >>> >> >> >> >> -- >> *Rushmin Fernando* >> *Technical Lead* >> >> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware >> >> email : [email protected] >> mobile : +94772310855 >> >> >> > > > -- > > *S. Suhothayan* > Technical Lead & Team Lead of WSO2 Complex Event Processor > *WSO2 Inc. *http://wso2.com > * <http://wso2.com/>* > lean . enterprise . middleware > > > *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: > http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: > http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: > http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>* > -- *Tharik Kanaka* WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: [email protected] | Web: www.wso2.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
