{
   "templateGroup": {
      "uuid": "stock-exchange",
      "name": "Stock Exchange",
      "description": "Domain for stock exchange analytics",
      "ruleTemplates": [
         {
            "uuid": "stock-exchange-input",
            "name": "Stock Exchange Input",
            "description": "configured http source to receive stock exchange updates",
            "type": "input",
            "instanceCount": "many",
            "script": "",
            "templates": [
               {
                  "type": "siddhiApp",
                  "content": "@App:name('appName1')\n@Source(type = 'http', receiver.url='${receiverUrl}',  basic.auth.enabled='false',\n@map(type='text'))\ndefine 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"
               }
            }
         },
         {
            "uuid": "stock-exchange-output",
            "name": "Stock Exchange Output",
            "description": "configured output to log the filtered stock exchange data",
            "type": "output",
            "instanceCount": "many",
            "script": "",
            "templates": [
               {
                  "type": "siddhiApp",
                  "content": "@App:name('appName2')\n\ndefine stream StockOutputStream(companyName string, companySymbol string, sellingPrice float);\n\nfrom StockOutputStream#log('${logMessage} :')\ninsert 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"
               }
            }
         }
      ]
   }
}