Analytics (EqatecMonitor) in Business Logic (Cloud Code)

3 posts, 0 answers
  1. Trevor
    Trevor avatar
    15 posts
    Member since:
    Apr 2014

    Posted 13 Oct 2015 Link to this post


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



  2. Anton Dobrev
    Anton Dobrev avatar
    531 posts

    Posted 15 Oct 2015 Link to this post

    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.

    Anton Dobrev
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
  3. Trevor
    Trevor avatar
    15 posts
    Member since:
    Apr 2014

    Posted 15 Oct 2015 in reply to Anton Dobrev Link to this post

Back to Top