Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@
"minLength": 1,
"maxLength": 90,
"x-ms-parameter-location": "method"
},
"LocationParameter": {
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"parameters": {
"api-version": "2017-04-01-preview",
"subscriptionId": "56b5e0a9-b645-407d-99b0-c64f86013e3d",
"location": "West US",
"compileQuery": {
"query": "SELECT\r\n *\r\nINTO\r\n [output1]\r\nFROM\r\n [input1]",
"inputs": [
{
"name": "input1",
"type": "Stream"
}
],
"functions": [
{
"name": "function1",
"type": "Scalar",
"bindingType": "Microsoft.StreamAnalytics/JavascriptUdf",
"inputs": [
{
"dataType": "any",
"isConfigurationParameter": null
}
],
"output": {
"dataType": "bigint"
}
}
],
"jobType": "Cloud",
"compatibilityLevel": "1.2"
}
},
"responses": {
"200": {
"body": {
"errors": [
{
"message": "Query failed to compile.",
"isGlobal": true
}
],
"inputs": [
"inputtest"
],
"outputs": [
"outputtest"
],
"functions": [
"transformationtest"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"api-version": "2017-04-01-preview",
"subscriptionId": "56b5e0a9-b645-407d-99b0-c64f86013e3d",
"location": "West US",
"sampleInput": {
"input": {
"properties": {
"type": "Stream",
"datasource": {
"type": "Microsoft.Storage/Blob",
"properties": {
"storageAccounts": [
{
"accountName": "someAccountName",
"accountKey": "someAccountKey=="
}
],
"container": "state",
"pathPattern": "{date}/{time}",
"dateFormat": "yyyy/MM/dd",
"timeFormat": "HH",
"sourcePartitionCount": 16
}
},
"serialization": {
"type": "Csv",
"properties": {
"fieldDelimiter": ",",
"encoding": "UTF8"
}
}
}
},
"compatibilityLevel": "1.2",
"eventsUri": "http://myoutput.com",
"dataLocale": "en-US"
}
},
"responses": {
"202": {
"body": {
"status": "ReadAllEventsInRange",
"diagnostics": [
""
],
"eventsDownloadUrl": "http://myoutput.com",
"lastArrivalTime": "2020-12-05T14:35:00Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"api-version": "2017-04-01-preview",
"subscriptionId": "56b5e0a9-b645-407d-99b0-c64f86013e3d",
"location": "West US",
"testInput": {
"input": {
"properties": {
"type": "Stream",
"datasource": {
"type": "Microsoft.Storage/Blob",
"properties": {
"storageAccounts": [
{
"accountName": "someAccountName",
"accountKey": "someAccountKey=="
}
],
"container": "state",
"pathPattern": "{date}/{time}",
"dateFormat": "yyyy/MM/dd",
"timeFormat": "HH",
"sourcePartitionCount": 16
}
},
"serialization": {
"type": "Csv",
"properties": {
"fieldDelimiter": ",",
"encoding": "UTF8"
}
}
}
}
}
},
"responses": {
"202": {
"body": {
"status": "TestSuceeded"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2017-04-01-preview",
"subscriptionId": "56b5e0a9-b645-407d-99b0-c64f86013e3d",
"location": "West US",
"testOutput": {
"output": {
"properties": {
"datasource": {
"type": "Microsoft.Storage/Blob",
"properties": {
"storageAccounts": [
{
"accountName": "someAccountName",
"accountKey": "accountKey=="
}
],
"container": "state",
"pathPattern": "{date}/{time}",
"dateFormat": "yyyy/MM/dd",
"timeFormat": "HH"
}
},
"serialization": {
"type": "Csv",
"properties": {
"fieldDelimiter": ",",
"encoding": "UTF8"
}
}
}
}
}
},
"responses": {
"202": {
"body": {
"status": "TestSuceeded"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"parameters": {
"api-version": "2017-04-01-preview",
"subscriptionId": "56b5e0a9-b645-407d-99b0-c64f86013e3d",
"location": "West US",
"testQuery": {
"diagnostics": {
"writeUri": "http://myoutput.com",
"path": "/pathto/subdirectory"
},
"streamingJob": {
"properties": {
"sku": {
"name": "Standard"
},
"eventsOutOfOrderPolicy": "Drop",
"outputErrorPolicy": "Drop",
"eventsOutOfOrderMaxDelayInSeconds": 0,
"eventsLateArrivalMaxDelayInSeconds": 5,
"dataLocale": "en-US",
"compatibilityLevel": "1.0",
"inputs": [
{
"properties": {
"type": "Stream",
"datasource": {
"type": "Raw",
"properties": {
"payloadUri": "http://myinput.com"
}
},
"serialization": {
"type": "Json",
"properties": {
"encoding": "UTF8"
}
}
},
"name": "inputtest"
}
],
"transformation": {
"properties": {
"streamingUnits": 1,
"query": "Select Id, Name from inputtest"
},
"name": "transformationtest"
},
"outputs": [
{
"properties": {
"datasource": {
"type": "Raw",
"properties": {
"payloadUri": "http://myoutput.com"
}
},
"serialization": {
"type": "Json"
}
},
"name": "outputtest"
}
],
"functions": []
},
"location": "West US",
"tags": {
"key1": "value1",
"randomKey": "randomValue",
"key3": "value3"
}
}
}
},
"responses": {
"200": {
"body": {
"status": "Success",
"outputUri": "http://myoutput.com"
}
},
"202": {}
}
}
Loading