Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This section explains how to generate artifacts representing different scenarios based on previously created templates using the Template Manager dashboard.

Prerequisites

Before you try out this scenario, you should create a template by following the instructions in Configuring a Template for Template Manager.

Using the template

Follow the procedure below to use the previously created SensorDataAnalysis template in different scenarios.

  1. Log in to the management console using the following URL.
     https://<CEP_HOST>:<CEP_PORT/carbon/
  2. Click Main, and then click Template Manager under the Manage menu. The following dashboard home page appears with the available domains as shown below.
  3. Select the relevant domain to configure the defined template (in this example it is SensorDataAnalysis). This opens the Deployed Scenarios page.
  4. Click Create New Scenario to add a new scenario to the selected domain. This opens the Edit Scenario page.
    1. Enter values in the Edit Scenario page as follows.

      FieldValueNotes
      Scenario TypeSensorAnalyticsThis is the template created by following the instructions in Configuring a Template for Template Manager.
      Scenario NameSensorAnalytics 
      DescriptionCalculate maximum and average temperature values. 

      Enter values for the configurable parameters as shown below. 

      Configurable ParametersValue
      Time(Mins)1
      Sensor Type Nametemperature
  5. Click Add Scenario. If stream mapping is disabled, a pop-up message appears to inform you that the configuration is successfully saved. Close this message. The scenario you configured is displayed in the Deployed Scenarios page as follows.

    You can edit or delete this scenario by clicking the relevant link under Actions.
  6. If there are stream mappings defined in the template (i.e. stream mappings enabled), on click of Add Scenario, you will be directed to stream mapping interface where you can map your input stream/streams to the predefined stream.
  7. As per selected value for the Mapped From: Stream Name, Stream Attribute Mapping section will be loaded and you can map the selected event stream attributes to the predefined stream.
  8. Click Save Mapping. You view a pop-up message on successful addition of the configuration.
  9. Close the pop-up message. You view the new scenario in the list of deployed scenarios of the selected domain. You can edit or delete it using the corresponding options provided as shown below.
  10. Upon successful configuration, you will find the templated artifacts have been deployed in CEP and to verify you can check the event flow created via the management console.
  11. In order to access the dashboard with templated gadgets, in the Main tab, click Analytics Dashboard.
  12. Enter your username and password, and then click Login.
  13. Select view mode in analytics-temperature-dashboard from the Dashboards menu as shown below.
  14. In order to simulate data for the created scenario, you can use the event simulator functionality to send multiple events using file utilizing default event simulator file(event.csv) which comes with CEP. 
  15. Upon successful simulation, data will be published to the deployed dashboard as shown below.
  • No labels