This is a migrated thread and some comments may be shown as answers.

Analytics (EqatecMonitor) in Business Logic (Cloud Code)

2 Answers 58 Views
Cloud Code
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anthony
Top achievements
Rank 1
Anthony asked on 13 Oct 2015, 11:59 AM

Hi

How do I use Analytics (EqatecMonitor) in my business logic / cloud code JS? Are they compatible?

Regards

David

2 Answers, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 15 Oct 2015, 08:49 AM
Hello Trev,

As to your questions.

My assumption is that you would like to store Аnalytics data for operations occurring in the Cloud Code layer of your app. I can suggest a few approaches here depending on the use case.

1. Using the Telerik Analytics Client API

You can access this API with HTTP calls from the Cloud Code and store whatever information you consider meaningful for your app's business logic. It is documented here. Keep in mind that its is not as elaborate as the Monitor API which is, however, limited for client usage.

Also, we have an item in our Feedback portal where you can share your thoughts and vote.

2. Using the Cloud Code logs

In the Business Logic layer you already have a lot of data logged for events that have custom logic in them.
You can also write to the logs using the standard console.log(str). After that you can access the logs as explained here. Note that these logs also count towards your data quota. Since they tend to get large very fast, you may also consider to log the desired information in a private, content type (which is denied to all roles in your app) and use the information for analysis from there.

I hope that this helps. Let me know if you have further questions or suggestions.

Regards,
Anton Dobrev
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
0
Anthony
Top achievements
Rank 1
answered on 15 Oct 2015, 09:20 AM
Thanks!!
Tags
Cloud Code
Asked by
Anthony
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or