Event Analytics – Sample Applications¶
This section provides three sample applications, which can each call an Event Analytics endpoint.
- Create a separate folder for each sample application.
- Name the folders after the enpoint each application calls (
"/countevents"
,"/filterevents"
,"/removeduplicateevents"
). -
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 -
Create an empty Staticfile and a manifest.yml file in each folder so they look like this:
-
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
-
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