You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by Vaghawan Ojha <va...@gmail.com> on 2017/04/11 03:34:40 UTC

How Can I count events In The Event Server?

I suppose there should be a way to count the events in the event server,
which I might be unaware of.

I'm trying to count all the events, and number of users in those events,
also how many events a particular user have. I suppose there should be
something that I can do with eventserver query.

I found a way to count all the events in this doc
http://predictionio.incubator.apache.org/customize/troubleshooting/. Have
anyone tried to count the events of a particular user?

If anyone has already done, could you please share it?

Thanks

Re: How Can I count events In The Event Server?

Posted by Pat Ferrel <pa...@occamsmachete.com>.
As you may know from setting up other databases the storage in indexes for a DB define it’s performance so the EventServer is tuned for use with Templates. There are a few queries (thanks Marius) but they are not extensive. I suggest you keep them in your own DB along side the EventServer if you want to make many specialized queries. You can also access the DB through the Hbase shell.


On Apr 10, 2017, at 10:50 PM, Vaghawan Ojha <va...@gmail.com> wrote:

Hi Marius, 

Thanks, I was wondering if there was already some method to just to count the events, but that's Ok. I would be able to get the events of particular entityId and count them inside my app on my own. 

Thanks


On Tue, Apr 11, 2017 at 11:29 AM, Marius Rabenarivo <mariusrabenarivo@gmail.com <ma...@gmail.com>> wrote:
Hello,

You can use the Event API : http://predictionio.incubator.apache.org/datacollection/eventapi/ <http://predictionio.incubator.apache.org/datacollection/eventapi/>

2017-04-11 7:34 GMT+04:00 Vaghawan Ojha <vaghawan781@gmail.com <ma...@gmail.com>>:
I suppose there should be a way to count the events in the event server, which I might be unaware of. 

I'm trying to count all the events, and number of users in those events, also how many events a particular user have. I suppose there should be something that I can do with eventserver query. 

I found a way to count all the events in this doc http://predictionio.incubator.apache.org/customize/troubleshooting/ <http://predictionio.incubator.apache.org/customize/troubleshooting/>. Have anyone tried to count the events of a particular user? 

If anyone has already done, could you please share it? 

Thanks




Re: How Can I count events In The Event Server?

Posted by Vaghawan Ojha <va...@gmail.com>.
Hi Marius,

Thanks, I was wondering if there was already some method to just to count
the events, but that's Ok. I would be able to get the events of particular
entityId and count them inside my app on my own.

Thanks


On Tue, Apr 11, 2017 at 11:29 AM, Marius Rabenarivo <
mariusrabenarivo@gmail.com> wrote:

> Hello,
>
> You can use the Event API : http://predictionio.incubator.
> apache.org/datacollection/eventapi/
>
> 2017-04-11 7:34 GMT+04:00 Vaghawan Ojha <va...@gmail.com>:
>
>> I suppose there should be a way to count the events in the event server,
>> which I might be unaware of.
>>
>> I'm trying to count all the events, and number of users in those events,
>> also how many events a particular user have. I suppose there should be
>> something that I can do with eventserver query.
>>
>> I found a way to count all the events in this doc
>> http://predictionio.incubator.apache.org/customize/troubleshooting/.
>> Have anyone tried to count the events of a particular user?
>>
>> If anyone has already done, could you please share it?
>>
>> Thanks
>>
>
>

Re: How Can I count events In The Event Server?

Posted by Marius Rabenarivo <ma...@gmail.com>.
Hello,

You can use the Event API :
http://predictionio.incubator.apache.org/datacollection/eventapi/

2017-04-11 7:34 GMT+04:00 Vaghawan Ojha <va...@gmail.com>:

> I suppose there should be a way to count the events in the event server,
> which I might be unaware of.
>
> I'm trying to count all the events, and number of users in those events,
> also how many events a particular user have. I suppose there should be
> something that I can do with eventserver query.
>
> I found a way to count all the events in this doc http://predictionio.
> incubator.apache.org/customize/troubleshooting/. Have anyone tried to
> count the events of a particular user?
>
> If anyone has already done, could you please share it?
>
> Thanks
>