Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Function

addStreamDefinition(StreamDefinition, success, error)

Description

Returns the added event stream definition.

OutputA JSON String array containing the added event stream definition in the ‘message’ element within the argument of the success callback.

Example

var streamDef = {
           name : "TEST",
               version : "1.0.0",
               nickName : "test",
               description : "sample description"
               payloadData : {
                   name : "STRING",
                   married : "BOOLEAN",
                   age : "INTEGER"
               },
               metaData : {
                   NIC: "LONG"
               },
               correlationData : {
               },
               tags : []
};
client.addStreamDefinition(streamDef, function(data) {
      console.log (data[“message”]);
}, function(error) {
      console.log(“error occured: ” + error[“message”]);  
});

Sample output

 

 

 

 

  • No labels