Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Enter JDBC data source details
  2. Enter SQL to fetch data
  3. Pick UI element for gadget
  4. Enter gadget details
  5. Add gadget to dashboard
To use this tool, Click on the "Gadget Gen Tool" located in the left menuIn the management console, click Tools and then click Gadget Gen Tool to use this tool.

To explain these steps, let's create a sample gadget out of some summarized data off the KPI Definition sample.

...

Enter the necessary details, for your data source. If you are using any other data source other than h2 (mysql, oracle, mssql, etc.) the relevant driver needs to be placed in $BAM_HOME/repository/components/lib and the server should be restarted.

Image Removedstep 1 - enter datasourceImage Added

The details entered here are:

  • JDBC URL : jdbc:h2:repository/database/samples/WSO2CARBONBAM_STATS_DB;AUTO_SERVER=TRUE
  • Driver Class Name : org.h2.Driver
  • User Name : wso2carbon
  • Password : wso2carbon

...

  • Gadget Title : Each gadget will have a title that describes what the gadget's functionality. Enter the generated gadget's title here.
  • Gadget File Name : The file name of the gadget as it will be stored in the system. In this case it will be stored in the embedded registry.
  • Refresh rate : The gadget can have a refresh rate, where it will automatically refresh and pull the latest contents out of the data source. 

 

Info

A refresh rate, specially a high one (A smaller number of seconds) can slow down performance, when a large number of gadgets are present in the dashboard.

Now, click "Generate!".

...