Versions Compared

Key

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

...

As shown in the structure of the toolbox, the stream definitions should be placed under streamDefn folder. The stream definitions are the definitions of your data stream published to BAM. You can have any number of stream definitions within one toolbox, but they should be defined in different files and the user name, password, etc properties of the stream definitions should be mentioned in the streams.properties file in the streamDefn folder.

For example, if your data is published with the stream definition shown below, it should be copied to a file and placed under the streamDefn folder. (The file name is not important but the content of the files is).

Code Block
{
                   'name':'org.wso2.bam.mystream',
                   'version':'1.0.0',
                   'nickName': 'My_Stream',
                   'description': 'This is the stream definition used to send data to bam',
                   'metaData':[
                           {'name':'clientType','type':'STRING'}
                   ],
                   'payloadData':[
                           {'name':'my_field_1','type':'STRING'},
                           {'name':'my_field_2','type':'INT'},
                           {'name':'my_field_3','type':'INT'},
                           {'name':'my_field_4','type':'STRING'}
                   ]
}

 

Assume you have saves this stream definition as MyTestStreamDefinition.js, then the streams.properties file should be as follows,

Code Block
streams.definitions=defn1
streams.definitions.defn1.filename= MyTestStreamDefinition.js
streams.definitions.defn1.username=admin
streams.definitions.defn1.password=admin
streams.definitions.defn1.description=This is my test stream definition

 

And the user name and password which is mentioned in the streams.properties file is the BAM receiver's user name and password.

Dashboard Artifacts
Anchor
dashboard
dashboard

...