...
- Start WSO2 BAM server with default settings.
- Go to 'WSO2_BAM_HOME/samples/kpi-definition/' directory
Type 'ant' with in the directory from the console(This publishes the events to BAM)
Note that you can give custom values for parameters for Data receiver port numberURL, user name and password. Default values of them are as follows.
Parameter Default Value Port 7611URL tcp://localhost:7611 User Name admin Password admin Now lets see how new values can be given as parameters
Parameter New Value Port 7612URL tcp://localhost:7612 User Name user Password pass123 Command with new values : ant ant -Dport=7612 Durl=tcp://localhost:7612 -Dusername=user -Dpassword=pass123
Published event format (Stream definition)
Code Block |
---|
{ "name" : "org.wso2.bam.phone.retail.store.kpi", "version" : "1.0.0", "nickName" : "Phone_Retail_Shop", "description" : "Phone Sales", "metaData" : [ { "name" : "clientType", "type" : "STRING" } ], "payloadData" : [ { "name" : "brand", "type" : "STRING" }, { "name" : "quantity", "type" : "INT" }, { "name" : "total", "type" : "INT" }, { "name" : "user", "type" : "STRING" }] } |
A Sample data
Code Block |
---|
Event{ streamId = 'org.wso2.bam.phone.retail.store.kpi-1.0.0-97c75175-776d-4732-aa21-1b901c15778f', timeStamp = 1343723606667, metaData = [external], correlationData = null, payloadData = [Nokia, 2, 140000, Harry] } |
...
4. Go to management console and login
...
Sales summary by customers
Warning | ||
---|---|---|
| ||
The Hive script associated with the default KPI Monitoring sample has Cassandra port set as 9160. If you change the port offset, you should manually change the Cassandra port as well by following these steps:
|