WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
||
Skip to end of metadata
Go to start of metadata

In Data Analytics, there are common use cases for analyzing statistics that involve operations such as calculating the average, minimum, maximum etc., for different endpoints, and visualising them graphically using suitable charts. The Template Manager tool in WSO2 tool allows you to define a template in order to generate the artifacts needed for different scenarios with common requirements in a convenient manner. Domain-specific parameter values (e.g., attribute name, time duration) can be customized and configured in a dashboard. 

Once you create a template with required configurable parameters, WSO2 DAS generates new artifacts such as execution plans, event streams, gadgets etc. for each new scenario that you create for that template. This is done by modifying the pre-defined template with user-defined values and then deploying it.

For example, consider a scenario where you need the following three streams.

StreamPurpose
 org.wso2.event.temperature.streamTo calculate sum, average, maximum and minimum values for temperature over a period of time and display the results on a dashboard.
 org.wso2.event.pressure.streamTo calculate sum, average, maximum and minimum values for pressure over a period of time and display the results on a dashboard.
 org.wso2.event.humidity.streamTo calculate sum, average, maximum and minimum values for humidity over a period of time and display the results on a dashboard.

Instead of creating each artifact individually, you can create a template based on this scenario, and then use the Template Manager tool to generate artifacts representing each sensor type for a given time period. This allows configurations to be reused, and simplifies the creation of artifacts for business users with limited knowledge of DAS artifacts.

Currently, this feature supports following WSO2 DAS artifact types

  • Realtime Analytics - Execution Plans
  • Batch Analytics - Spark Scripts
  • Event streams
  • Event sinks
  • Gadgets
  • Dashboard

The following sections provide detailed instructions to create templates and to use them.

  • No labels