Skip to content

Commit

Permalink
First version of data-plane swagger spec for Time Series Insights PAY…
Browse files Browse the repository at this point in the history
…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 <[email protected]>

* Update timeseriesinsights.json

* Update timeseriesinsights.json

* Added link to oav issue
  • Loading branch information
dmdenmsft authored and anuchandy committed Apr 12, 2019
1 parent 7f72912 commit 395437c
Show file tree
Hide file tree
Showing 46 changed files with 3,896 additions and 0 deletions.
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"
}
}
}
}
}
}
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": {}
}
}
}
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"
}
]
}
}
}
}
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": []
}
}
}
}
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
]
}
}
}
}
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
]
}
}
}
}
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"
]
}
}
}
]
}
}
}
}
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"
]
}
}
}
]
}
}
}
}
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
}
]
}
}
}
}
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="
}
}
}
}
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="
}
}
}
}
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": []
}
}
}
}
Loading

0 comments on commit 395437c

Please sign in to comment.