Versions Compared

Key

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

Table of Contents
maxLevel3

Overview

Function

addStreamDefinition(StreamDefinition, success, error)

Description

Returns the added event stream definition.

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

Example

Code Block
languagejs
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”"message"]);
}, function(error) {
      console.log(“error"error occured: " + error[“message”]);  
});

Sample output

Code Block
languagetext
 

 

 

...

 TEST:1.0.0