On Fri, Dec 11, 2015 at 4:08 PM, Rushmin Fernando <rush...@wso2.com> wrote:

> Thanks Tharik ! Your blog post helped a lot.
>
> However I could get the rate limit solution working since when i used
> count it returned the cumulative figure rather than the count for a time
> slot. May be I was doing something wrong. But I could get it done using a
> timeBatch window.
>
> One more clarification ...
>
> The *TIMESTAMP*  filed is only available if you use a UI publisher, but
> that graph doesn't show you the past data. (it only shows data from when
> you opened the graph)
>
> I tried persisting the stream and rendering a graph against the data
> table, but it didn't have a *TIMESTAMP *filed when it comes to graphs.
>
> So if we want to see graph a which shows the past data + which has a short
> time interval, should we use batch analysis ? ( So it will be a combination
> of batch analysis and real time analysis )
>
Yes currently thats the solution.
If you are building a custom gadget then you can get the past results from
batch analytics and then use realtime to show the current changes. But this
is not provided out of the box.

Suho

>
> Thanks
> Rushmin
>
> On Fri, Dec 11, 2015 at 2:59 AM, Tharik Kanaka <tha...@wso2.com> wrote:
>
>> 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 <
>> s...@wso2.com> wrote:
>>
>>> You can use the event time
>>> @Tharik please point it out
>>>
>>> Suho
>>>
>>> On Thu, Dec 10, 2015 at 2:57 PM, Rushmin Fernando <rush...@wso2.com>
>>> 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 <
>>>> s...@wso2.com> 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 <rush...@wso2.com>
>>>>> 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 : rush...@wso2.com
>>>>>> 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 : rush...@wso2.com
>>>> 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: tha...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> 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 | 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>*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to