...
- When the key starts with meta : The data field is considered as a metadatacustom field. It is sent with metadata and saved in Cassandra with key prefix meta_.
- When the key starts with correlation : The data field is considered as a correlation data custom field. It is sent with correlation data and saved in Cassandra with key prefix correlation_.
- When the key starts with payload or any other string : The data field is considered as a payload data custom field. It is sent with payload data and saved in Cassandra with key prefix payload_.
...
In order to publish data to BAM through custom data agent you need to have below dependencies.
Either you can add below jars to your class path
- commons-pool-1.5.0.wso2v1.jar
- commons-pool-1.5.jar
- gson-2.1.jar
- httpclient-4.1.1-wso2v1.jar
- json-2.0.0.wso2v1.jar
- libthrift-0.7.wso2v1.jar
- org.eclipse.osgi-3.8.1.v20120830-144521.jar
- org.eclipse.osgi.services-3.3.100.v20120522-1822.jar
- org.wso2.carbon.databridge.agent.thrift_4.2.0.jar
- org.wso2.carbon.databridge.commons_4.2.0.jar
- org.wso2.carbon.databridge.commons.thrift_4.2.0.jar
- slf4j-1.5.10.wso2v1.jar
or you can add below the maven dependency entry to your pom file.
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency> <groupId>org.wso2.carbon</groupId> <artifactId>org.wso2.carbon.databridge.agent.thrift</artif actId> <version>4/.2/.0</version> </dependency> <dependency> <groupId>org.wso2.carbon</groupId> <artifactId>org.wso2.carbon.databridge.commons</artifactId> <version>4.2.0</version> </dependency> |
...
After publishing the call center data, you can query it with variable keys using Hive scripts.
...
This is the result of the query:
name | day | time to respond |
William | Mon | 10 |
Sophia | Mon | 36 |
Emma | Mon | 40 |