{
  "templateGroup" : {
    "name" : "Stock Exchange",
    "uuid":"stock-exchange",
    "description" : "Domain for stock exchange analytics",
    "ruleTemplates" : [
      {
        "name" : "Stock Exchange Input",
        "uuid" : "stock-exchange-input",
        "type" : "input",
        "instanceCount" : "many",
        "description" : "configured http source to receive stock exchange updates",
        "script" : "",
        "templates" : [
          { "type" : "siddhiApp",
            "content" :
            "@App:name('appName1')
            @Source(type = 'http', receiver.url='${receiverUrl}',  basic.auth.enabled='false',
            @map(type='text'))
            define stream StockInputStream(symbol string, price float, volume long, name string);",
            "exposedStreamDefinition" :"define stream StockInputStream(symbol string, price float, volume long, name string);"
          }
        ],
        "properties" : {
          "receiverUrl" : {"fieldName":"Receiver URL","description" : "Enter the URL of the http receiver for text messages. One URL can only be used once", "defaultValue" : "https://localhost:8005/stockInputStream"}
        }
      },
      {
        "name" : "Stock Exchange Output" ,
        "uuid" :  "stock-exchange-output",
        "type" : "output",
        "instanceCount" : "many",
        "description" : "configured output to log the filtered stock exchange data",
        "script" : "",
        "templates" : [
          { "type" : "siddhiApp",
            "content" :
             "@App:name('appName2')

             define stream StockOutputStream(companyName string, companySymbol string, sellingPrice float);

             from StockOutputStream#log('${logMessage} :')
             insert into outputStream;",
             "exposedStreamDefinition" :"define stream StockOutputStream(companyName string, companySymbol string, sellingPrice float);"
          }
        ],
        "properties" : {
          "logMessage" : {"fieldName":"Logging Message","description" : "Enter the message, that should be displayed while logging", "defaultValue" : "Filtered Stock data"}
        }
      }
    ]
  }
}