Event Analytics - Sample Applications - Developer Documentation - Developer Documentation
Skip to content

Event Analytics – Sample Applications

This section provides three sample applications, which can each call an Event Analytics endpoint.

  1. Create a separate folder for each sample application.
  2. Name the folders after the enpoint each application calls ("/countevents", "/filterevents", "/removeduplicateevents").
  3. Create the following files with the provided content in the respective folders:

    /countevents /filterevents /removeduplicateevents Description
    index.html index.html index.html for the page layout
    main.css main.css main.css for page style
    main.js main.js main.js for the methods
  4. Create an empty Staticfile and a manifest.yml file in each folder so they look like this:

    Folder Structure

  5. Fill the manifest files with the content below, replacing {service} by the name of the respective service:

    manifest.yml
    applications:
    - name: {service}
      instances: 1
      host: {service}
      memory: 64m
    
  6. Deploy the sample applications to Cloud Foundry as described in Running a Cloud Foundry Application. Make sure to assign it the mdsp:core:analytics.user role.


Except where otherwise noted, content on this site is licensed under the Development License Agreement.


Last update: March 17, 2023