{
	"variables": [],
	"info": {
		"name": "simulator",
		"_postman_id": "2688cebe-9501-52aa-8100-4165f73bc82e",
		"description": "",
		"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
	},
	"item": [
		{
			"name": "random simulation - custom list",
			"request": {
				"url": "http://localhost:9090/simulation/feed",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"sim\",\n    \"timestampStartTime\": \"1488615136958\",\n    \"timestampEndTime\": \"1488615136998\",\n    \"noOfEvents\" : \"5\",\n    \"timeInterval\": \"1000\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"RANDOM_DATA_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"timestampInterval\": \"5\",\n      \"attributeConfiguration\": [\n        {\n          \"type\": \"CUSTOM_DATA_BASED\",\n          \"list\": [\n            \"WSO2,AAA\",\n            \"DDD\",\n            \"IBM\"\n          ]\n        },\n        {\n          \"type\": \"CUSTOM_DATA_BASED\",\n          \"list\": [\n            \"1.0\",\n            \"2.0\",\n            \"3.0\"\n          ]\n        },\n        {\n          \"type\": \"CUSTOM_DATA_BASED\",\n          \"list\": [\n            \"10\",\n            \"20\",\n            \"30\"\n          ]\n        }\n      ]\n    }\n  ]\n}"
				},
				"description": "Random data simulation - custom"
			},
			"response": []
		},
		{
			"name": "csv simulation - 1 source",
			"request": {
				"url": {
					"raw": "http://localhost:9090/simulation/feed/simulation1/?action=run",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "9090",
					"path": [
						"simulation",
						"feed",
						"simulation1",
						""
					],
					"query": [
						{
							"key": "action",
							"value": "run"
						}
					],
					"variable": []
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": { \n    \"simulationName\": \"simulation1\",\n    \"timestampStartTime\": null,\n    \"timeInterval\": \"8000\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"CSV_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"fileName\": \"foostream5.csv\",\n      \"timestampInterval\" : \"1000\",\n      \"isOrdered\": true,\n      \"delimiter\": \",\"\n    }\n  ]\n}"
				},
				"description": "CSV simulation - 1 file"
			},
			"response": []
		},
		{
			"name": "csv simulation - 2 sources",
			"request": {
				"url": "http://10.100.7.36:9090/simulation/feed",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"simCSV2\",\n    \"timestampStartTime\": \"1488615136957\",\n    \"timestampEndTime\": \"1488615136973\",\n    \"noOfEvents\" : \"7\",\n    \"timeInterval\": \"1000\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"CSV_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"fileName\": \"foostream2.csv\",\n      \"timestampAttribute\": \"0\",\n      \"isOrdered\": false,\n      \"delimiter\": \",\"\n    },\n   \t{\n      \"simulationType\": \"CSV_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"fileName\": \"foostream4.csv\",\n      \"timestampAttribute\": \"0\",\n      \"isOrdered\": false,\n      \"delimiter\": \",\"\n    }\n  ]\n}"
				},
				"description": "CSV simulation - 2 files"
			},
			"response": []
		},
		{
			"name": "db simulation - 1 source",
			"request": {
				"url": "http://localhost:9090/simulation/feed",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"simDb\",\n    \"timestampStartTime\": \"1488615136958\",\n    \"timestampEndTime\": null,\n    \"noOfEvents\" : null,\n    \"timeInterval\": \"1000\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"DATABASE_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"dataSourceLocation\": \"jdbc:mysql:\\/\\/localhost:3306\\/DatabaseFeedSimulation\",\n      \"driver\" : \"com.mysql.jdbc.Driver\",\n      \"username\": \"root\",\n      \"password\": \"root\",\n      \"tableName\": \"foostream3\",\n      \"timestampInterval\": \"1000\",\n      \"columnNamesList\": null\n    }\n  ]\n}"
				},
				"description": "db simulation - 1 db"
			},
			"response": []
		},
		{
			"name": "db simulation - 2 sources",
			"request": {
				"url": {
					"raw": "http://localhost:9090/simulation/feed/simDb/?action=run",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "9090",
					"path": [
						"simulation",
						"feed",
						"simDb",
						""
					],
					"query": [
						{
							"key": "action",
							"value": "run"
						}
					],
					"variable": []
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"simDb\",\n    \"startTimestamp\": \"1488615136958\",\n    \"endTimestamp\": \"1488615136961\",\n    \"timeInterval\": \"1000\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"DATABASE_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"dataSourceLocation\": \"jdbc:mysql:\\/\\/localhost:3306\\/DatabaseFeedSimulation\",\n      \"driver\" : \"com.mysql.jdbc.Driver\",\n      \"username\": \"root\",\n      \"password\": \"root\",\n      \"tableName\": \"foostream4\",\n      \"timestampAttribute\": \"timestamp\",\n      \"columnNamesList\": \"symbol,price,volume\"\n    },\n    {\n      \"simulationType\": \"DATABASE_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"dataSourceLocation\": \"jdbc:mysql:\\/\\/localhost:3306\\/Simulation\",\n      \"driver\" : \"com.mysql.jdbc.Driver\",\n      \"username\": \"root\",\n      \"password\": \"root\",\n      \"tableName\": \"foostream\",\n      \"timestampAttribute\": \"timestamp\",\n      \"columnNamesList\": \"name,price,volume\"\n    }\n  ]\n}"
				},
				"description": "db simulation - 2 db"
			},
			"response": []
		},
		{
			"name": "db simulation - 1 source without colum names",
			"request": {
				"url": {
					"raw": "http://localhost:9090/simulation/feed/simDbNoColumnsList/?action=run",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "9090",
					"path": [
						"simulation",
						"feed",
						"simDbNoColumnsList",
						""
					],
					"query": [
						{
							"key": "action",
							"value": "run"
						}
					],
					"variable": []
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"simDbNoColumnsList\",\n    \"startTimestamp\": \"1488615136958\",\n    \"endTimestamp\": \"1488615136961\",\n    \"timeInterval\": \"1000\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"DATABASE_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"dataSourceLocation\": \"jdbc:mysql:\\/\\/localhost:3306\\/DatabaseFeedSimulation\",\n      \"driver\" : \"com.mysql.jdbc.Driver\",\n      \"username\": \"root\",\n      \"password\": \"root\",\n      \"tableName\": \"foostream3\",\n      \"timestampAttribute\": \"timestamp\",\n      \"columnNamesList\": null\n    }\n  ]\n}"
				},
				"description": "db simulation - 1 db no columnNames list"
			},
			"response": []
		},
		{
			"name": "random simulation - primitive",
			"request": {
				"url": {
					"raw": "http://localhost:9090/simulation/feed/simulationPrimitive/?action=run",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "9090",
					"path": [
						"simulation",
						"feed",
						"simulationPrimitive",
						""
					],
					"query": [
						{
							"key": "action",
							"value": "run"
						}
					],
					"variable": []
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"simulationPrimitive\",\n    \"timestampStartTime\": \"1488615136958\",\n    \"timestampEndTime\": null,\n    \"noOfEvents\" : \"8\",\n    \"timeInterval\": \"1000\"\n  },\n  \"sources\": [\n   {\n  \"simulationType\": \"RANDOM_DATA_SIMULATION\",\n  \"streamName\": \"FooStream\",\n  \"executionPlanName\": \"TestExecutionPlan\",\n  \"timestampInterval\": \"5\",\n  \"attributeConfiguration\": [\n    {\n      \"type\": \"PRIMITIVE_BASED\",\n      \"length\": \"10\"\n    },\n    {\n      \"type\": \"PRIMITIVE_BASED\",\n      \"min\": \"35000\",\n      \"max\": \"30000\",\n      \"precision\": \"2\"\n    },\n    {\n      \"type\": \"PRIMITIVE_BASED\",\n      \"min\": \"150\",\n      \"max\": \"300\"\n    }\n  ]\n}\n  ]\n}"
				},
				"description": "Random data simulation - primitive"
			},
			"response": []
		},
		{
			"name": "random simulation - regex & primitive",
			"request": {
				"url": {
					"raw": "http://localhost:9090/simulation/feed/simRndm/?action=run",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "9090",
					"path": [
						"simulation",
						"feed",
						"simRndm",
						""
					],
					"query": [
						{
							"key": "action",
							"value": "run"
						}
					],
					"variable": []
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"simRndm\",\n    \"startTimestamp\": \"1488615136958\",\n    \"endTimestamp\": \"1488615136998\",\n    \"noOfEvents\" : null,\n    \"timeInterval\": \"1000\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"RANDOM_DATA_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"timestampInterval\": \"5\",\n      \"attributeConfiguration\": [\n        {\n          \"type\": \"REGEX_BASED\",\n          \"pattern\": \"[a-zA-Z]*\"\n        },\n        {\n          \"type\": \"REGEX_BASED\",\n          \"pattern\": \"[0-9]*\"\n        },\n        {\n          \"type\": \"PRIMITIVE_BASED\",\n          \"primitiveType\": \"LONG\",\n          \"min\": \"1500000\",\n          \"max\": \"30000000\"\n        }\n      ]\n    }\n  ]\n}"
				},
				"description": "Random data simulation - primitive, regex, custom\n"
			},
			"response": []
		},
		{
			"name": "random simulation - property & primitive",
			"request": {
				"url": {
					"raw": "http://localhost:9090/simulation/feed/simProperty/?action=run",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "9090",
					"path": [
						"simulation",
						"feed",
						"simProperty",
						""
					],
					"query": [
						{
							"key": "action",
							"value": "run"
						}
					],
					"variable": []
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"simProperty\",\n    \"startTimestamp\": \"1488615136958\",\n    \"endTimestamp\": \"1488615136978\",\n    \"timeInterval\": \"1000\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"RANDOM_DATA_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"timestampInterval\": \"5\",\n      \"attributeConfiguration\": [\n        {\n          \"type\": \"PROPERTY_BASED\",\n          \"property\": \"FULL_NAME\"\n        },\n        {\n          \"type\": \"PROPERTY_BASED\",\n          \"property\": \"ALTITUDE\"\n        },\n        {\n          \"type\": \"PRIMITIVE_BASED\",\n          \"primitiveType\": \"LONG\",\n          \"min\": \"150\",\n          \"max\": \"300\"\n        }\n      ]\n    }\n  ]\n}"
				},
				"description": "Random data simulation - property, primitive\n"
			},
			"response": []
		},
		{
			"name": "single",
			"request": {
				"url": "http://localhost:9090/simulation/single",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"streamName\": \"FooStream\",\n  \"executionPlanName\": \"TestExecutionPlan\",\n  \"timestamp\": null,\n  \"data\": [\n    null,\n    \"9\",\n    \"45\"\n  ]\n}"
				},
				"description": "single event"
			},
			"response": []
		},
		{
			"name": "db and csv simulation",
			"request": {
				"url": {
					"raw": "http://localhost:9090/simulation/feed/simulationCSV/?action=run",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "9090",
					"path": [
						"simulation",
						"feed",
						"simulationCSV",
						""
					],
					"query": [
						{
							"key": "action",
							"value": "run"
						}
					],
					"variable": []
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"simulationCSV\",\n    \"startTimestamp\": \"1488615136958\",\n    \"endTimestamp\": \"1488615136966\",\n    \"timeInterval\": \"1000\"\n  }, \n  \"sources\": [\n    {\n      \"simulationType\": \"DATABASE_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"dataSourceLocation\": \"jdbc:mysql:\\/\\/localhost:3306\\/DatabaseFeedSimulation\",\n      \"driver\" : \"com.mysql.jdbc.Driver\",\n      \"username\": \"root\",\n      \"password\": \"root\",\n      \"tableName\": \"foostream3\",\n      \"timestampAttribute\": \"timestamp\",\n      \"columnNamesList\": \"symbol,price,volume\"\n    },\n    {\n      \"simulationType\": \"CSV_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"fileName\": \"foostream2.csv\",\n      \"timestampAttribute\": \"0\",\n      \"isOrdered\": false,\n      \"delimiter\": \",\"\n    }\n  ]\n}"
				},
				"description": "CSV & db"
			},
			"response": []
		},
		{
			"name": "csv simulation - 1 source",
			"request": {
				"url": "http://localhost:9090/simulation/feed",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"sim\",\n    \"timestampStartTime\": \"1488615136960\",\n    \"timestampEndTime\": null,\n    \"timeInterval\": \"1000\",\n    \"noOfEvents\" : \"5\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"CSV_SIMULATION\",\n      \"streamName\": \"FooStream\",\n      \"siddhiAppName\": \"eee\",\n      \"fileName\" : \"foostream.csv\",\n      \"isOrdered\": false,\n      \"delimiter\": \",\"\n    }\n  ]\n}"
				},
				"description": "stop\n"
			},
			"response": []
		},
		{
			"name": "add csv files",
			"request": {
				"url": "http://localhost:9090/simulation/files",
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "/home/ruwini/csvFiles/foostream2.csv"
				},
				"description": "file upload"
			},
			"response": []
		},
		{
			"name": "db simulation - 1 source copy",
			"request": {
				"url": "http://localhost:9090/simulation/feed",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "text/plain",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"properties\": {\n    \"simulationName\": \"simDb\",\n    \"timestampStartTime\": \"1488615136958\",\n    \"timestampEndTime\": \"1488615136961\",\n    \"noOfEvents\" : null,\n    \"timeInterval\": \"1000\"\n  },\n  \"sources\": [\n    {\n      \"simulationType\": \"DATABASE_SIMULATION\",\n      \"dataSourceLocation\": \"jdbc:mysql:\\/\\/localhost:3306\\/DatabaseFeedSimulation\",\n      \"driver\" : \"com.mysql.jdbc.Driver\",\n      \"username\": \"root\",\n      \"password\": \"root\",\n      \"tableName\": \"foostream3\",\n      \"timestampAttribute\": \"timestamp\",\n      \"streamName\": \"FooStream\",\n      \"executionPlanName\": \"TestExecutionPlan\",\n      \"columnNamesList\": \"symbol,price,volume\"\n    }\n  ]\n}"
				},
				"description": "db simulation - 1 db"
			},
			"response": []
		},
		{
			"name": "add csv files",
			"request": {
				"url": "http://localhost:9090/simulation/files",
				"method": "POST",
				"header": [
					{
						"key": "",
						"value": "",
						"description": "",
						"disabled": true
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "file",
							"value": "",
							"description": "",
							"type": "file"
						}
					]
				},
				"description": "file upload"
			},
			"response": []
		}
	]
}