-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version of data-plane swagger spec for Time Series Insights PAY…
…G (Preview) SKU. (#5610) * Fix or suppress spec violations Fix R2016 by making PATCH body properties optional. Suppress the remaining 4 violations that are confirmed as false positives. * Try removing 2nd top-level heading, which _may_ have been causing a linter warning. * Fix extra indention which prevented linter from running. * Added dataStringComparisonBehavior parameter to reference data put/update spec. * Fixed grammar. * adding partitionkeyProperty to environmentInfo * changing property name * changing modelAsString * Initial checkin of spec. Unchanged from GA release other than version. * Remove .orig files * Fix validation error by removing IoTHub ES from List ES example response * Add extra example that was missing from preview spec. * Add long-term environment to resource hierarchy, and update examples. * Switch to model-as-string for enums. Restore EnvironmentResource's inheritance from TrackedResource. * Upsate sku description * Add new TSI preview api-version to readme.md. * Add suppressions for false-positive linter failures. * Test suppression failures * Adding preview package tag to several other places in readme.md * Add preview package to the readme.go.md file * Remove invalid required property from EnvironmentCreateOrUpdateParameters * Initial version of data plane swagger spec for PAYG (Preview) SKU. * Added missing Readme.md * Fixed name of readme * Fixed path to swagger json * Attempt to fix readme * Apply suggestions from code review Co-Authored-By: dmdenmsft <dmden@microsoft.com> * Update timeseriesinsights.json * Update timeseriesinsights.json * Added link to oav issue
- Loading branch information
Showing
46 changed files
with
3,896 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...ane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"clientRequestId": "A72703F6-C0B1-49EF-854A-59F1994F54E7", | ||
"clientSessionId": "AlertCalculation_W7" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"x-ms-request-id": "0d59d156-2807-4952-87bb-0e074417dbfb" | ||
}, | ||
"body": { | ||
"availability": { | ||
"intervalSize": "PT1H", | ||
"distribution": { | ||
"2019-03-27T04:00:00Z": 432447, | ||
"2019-03-27T05:00:00Z": 432340, | ||
"2019-03-27T06:00:00Z": 432451, | ||
"2019-03-27T07:00:00Z": 432436, | ||
"2019-03-26T13:00:00Z": 386247, | ||
"2019-03-27T00:00:00Z": 436968, | ||
"2019-03-27T01:00:00Z": 432509, | ||
"2019-03-27T02:00:00Z": 432487 | ||
}, | ||
"range": { | ||
"from": "2019-03-14T06:38:27.153Z", | ||
"to": "2019-03-27T03:57:11.697Z" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...icrosoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGetEmpty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": {} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...lane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"parameters": { | ||
"searchSpan": { | ||
"from": "2018-08-01T00:00:00.000Z", | ||
"to": "2018-08-31T00:00:00.000Z" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": [ | ||
{ | ||
"name": "Building", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "Room", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "DeviceId", | ||
"type": "Double" | ||
}, | ||
{ | ||
"name": "Temperature", | ||
"type": "Double" | ||
}, | ||
{ | ||
"name": "Pressure", | ||
"type": "Double" | ||
}, | ||
{ | ||
"name": "Status", | ||
"type": "String" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGetEmpty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"parameters": { | ||
"searchSpan": { | ||
"from": "2016-08-01T00:00:00.000Z", | ||
"to": "2016-08-31T00:00:00.000Z" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": [] | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...t.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByIds.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"parameters": { | ||
"delete": { | ||
"hierarchyIds": [ | ||
"a28fd14c-6b98-4ab5-9301-3840f142d30e" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"delete": [ | ||
null | ||
] | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByNames.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"parameters": { | ||
"delete": { | ||
"names": [ | ||
"WindFarm" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"delete": [ | ||
null | ||
] | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...soft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByIds.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"parameters": { | ||
"get": { | ||
"hierarchyIds": [ | ||
"6e292e54-9a26-4be1-9034-607d71492707", | ||
"a28fd14c-6b98-4ab5-9301-3840f142d30e" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"get": [ | ||
{ | ||
"hierarchy": { | ||
"id": "6e292e54-9a26-4be1-9034-607d71492707", | ||
"name": "Location", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"state", | ||
"city" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"hierarchy": { | ||
"id": "a28fd14c-6b98-4ab5-9301-3840f142d30e", | ||
"name": "ManufactureDate", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"year", | ||
"month" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...ft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByNames.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"parameters": { | ||
"get": { | ||
"names": [ | ||
"Location", | ||
"ManufactureDate" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"get": [ | ||
{ | ||
"hierarchy": { | ||
"id": "6e292e54-9a26-4be1-9034-607d71492707", | ||
"name": "Location", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"state", | ||
"city" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"hierarchy": { | ||
"id": "a28fd14c-6b98-4ab5-9301-3840f142d30e", | ||
"name": "ManufactureDate", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"year", | ||
"month" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
...Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchPut.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"parameters": { | ||
"put": [ | ||
{ | ||
"id": "6e292e54-9a26-4be1-9034-607d71492707", | ||
"name": "Location", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"state", | ||
"city" | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "a28fd14c-6b98-4ab5-9301-3840f142d30e", | ||
"name": "ManufactureDate", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"year", | ||
"month" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"put": [ | ||
{ | ||
"hierarchy": { | ||
"id": "6e292e54-9a26-4be1-9034-607d71492707", | ||
"name": "Location", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"state", | ||
"city" | ||
] | ||
} | ||
}, | ||
"error": null | ||
}, | ||
{ | ||
"hierarchy": { | ||
"id": "a28fd14c-6b98-4ab5-9301-3840f142d30e", | ||
"name": "ManufactureDate", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"year", | ||
"month" | ||
] | ||
} | ||
}, | ||
"error": null | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"hierarchies": [ | ||
{ | ||
"id": "6e292e54-9a26-4be1-9034-607d71492707", | ||
"name": "Location", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"state", | ||
"city" | ||
] | ||
} | ||
} | ||
], | ||
"continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"hierarchies": [ | ||
{ | ||
"id": "6e292e54-9a26-4be1-9034-607d71492707", | ||
"name": "Location", | ||
"source": { | ||
"instanceFieldNames": [ | ||
"state", | ||
"city" | ||
] | ||
} | ||
} | ||
], | ||
"continuationToken": "aXsic2tpcCI6MTAwMCwidGFrASI6MTAwMH0=" | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-11-01-preview", | ||
"environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", | ||
"continuationToken": "aXsic2tpcCI6MTAwMCwidGFrASI6MTAwMH0=" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"hierarchies": [] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.