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 endpoint 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:

    - 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.


Connect and Collaborate with Industrial Professionals and Join the Community!

Click to load comments