From 08a54da0678b400ac1a96a21603d9f5235726f32 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Tue, 9 Jan 2018 17:03:46 -0800 Subject: [PATCH 01/33] Fix or suppress spec violations Fix R2016 by making PATCH body properties optional. Suppress the remaining 4 violations that are confirmed as false positives. --- .../stable/2017-11-15/timeseriesinsights.json | 5 +-- .../resource-manager/readme.md | 31 +++++++++++++++---- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json index 489396804eb5..0b651bbf70fd 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json @@ -1864,10 +1864,7 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/AccessPolicyMutableProperties" } - }, - "required": [ - "properties" - ] + } }, "AccessPolicyListResponse": { "properties": { diff --git a/specification/timeseriesinsights/resource-manager/readme.md b/specification/timeseriesinsights/resource-manager/readme.md index 26d68699ec6e..bc3198790db2 100644 --- a/specification/timeseriesinsights/resource-manager/readme.md +++ b/specification/timeseriesinsights/resource-manager/readme.md @@ -1,13 +1,13 @@ # TimeSeriesInsights - + > see https://aka.ms/autorest This is the AutoRest configuration file for TimeSeriesInsights. +--- +## Getting Started ---- -## Getting Started To build the SDK for TimeSeriesInsights, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -19,9 +19,8 @@ To see additional help and options, run: ## Configuration +### Basic Information - -### Basic Information These are the global settings for the TimeSeriesInsights API. ``` yaml @@ -29,7 +28,6 @@ openapi-type: arm tag: package-2017-11-15 ``` - ### Tag: package-2017-02-preview These settings apply only when `--tag=package-2017-02-preview` is specified on the command line. @@ -67,3 +65,24 @@ Please also specify `--go-sdk-folder= Date: Tue, 9 Jan 2018 17:47:22 -0800 Subject: [PATCH 02/33] Try removing 2nd top-level heading, which _may_ have been causing a linter warning. --- specification/timeseriesinsights/resource-manager/readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/readme.md b/specification/timeseriesinsights/resource-manager/readme.md index bc3198790db2..a41a71659f01 100644 --- a/specification/timeseriesinsights/resource-manager/readme.md +++ b/specification/timeseriesinsights/resource-manager/readme.md @@ -66,8 +66,6 @@ Please also specify `--go-sdk-folder= Date: Wed, 10 Jan 2018 16:14:03 -0800 Subject: [PATCH 03/33] Fix extra indention which prevented linter from running. --- specification/timeseriesinsights/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/timeseriesinsights/resource-manager/readme.md b/specification/timeseriesinsights/resource-manager/readme.md index a41a71659f01..ff17506c4e0b 100644 --- a/specification/timeseriesinsights/resource-manager/readme.md +++ b/specification/timeseriesinsights/resource-manager/readme.md @@ -78,7 +78,7 @@ directive: reason: These violations are false positives. The EventSources_Get operation returns an EventSourceResource, and both EventHubEventSourceResource and IoTHubEventSourceResource inherit from EventSourceResource. - suppress: R3026 # Tracked resource 'XXX' must have patch operation that at least supports the update of tags. It's strongly recommended that the PATCH operation supports update of all mutable properties as well. - where: + where: - $.definitions.EventHubEventSourceResource - $.definitions.IoTHubEventSourceResource from: timeseriesinsights.json From a26882495cd88250ed7d6de5b77cdb7ede3741c0 Mon Sep 17 00:00:00 2001 From: Karthik Subramanian Date: Thu, 15 Mar 2018 02:15:21 -0700 Subject: [PATCH 04/33] Added dataStringComparisonBehavior parameter to reference data put/update spec. --- .../stable/2017-11-15/timeseriesinsights.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json index 41fbe659861e..0d6d75af64c7 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json @@ -1871,6 +1871,15 @@ "$ref": "#/definitions/ReferenceDataSetKeyProperty" }, "description": "The list of key properties for the reference data set." + }, + "dataStringComparisonBehavior": { + "type": "string", + "description": "The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. The other option is 'OrdinalIgnoreCase', when set, case insensitive comparison will be used.", + "enum": [ "Ordinal", "OrdinalIgnoreCase" ], + "x-ms-enum": { + "name": "DataStringComparisonBehavior", + "modelAsString": false + } } }, "required": [ From d51593360694ff25609c017ff9edbf9033e0546e Mon Sep 17 00:00:00 2001 From: Karthik Subramanian Date: Thu, 15 Mar 2018 11:28:08 -0700 Subject: [PATCH 05/33] Fixed grammar. --- .../stable/2017-11-15/timeseriesinsights.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json index 0d6d75af64c7..15be9d6079a6 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json @@ -1874,7 +1874,7 @@ }, "dataStringComparisonBehavior": { "type": "string", - "description": "The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. The other option is 'OrdinalIgnoreCase', when set, case insensitive comparison will be used.", + "description": "The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used.", "enum": [ "Ordinal", "OrdinalIgnoreCase" ], "x-ms-enum": { "name": "DataStringComparisonBehavior", From 78f6408131bc30a534ebf60ae17c360c72fa3cae Mon Sep 17 00:00:00 2001 From: Ravi Kumar Suresh Babu Date: Tue, 3 Apr 2018 11:57:01 -0700 Subject: [PATCH 06/33] adding partitionkeyProperty to environmentInfo --- .../examples/EnvironmentsCreate.json | 8 ++++- .../2017-11-15/examples/EnvironmentsGet.json | 8 ++++- .../examples/EnvironmentsGetExpandStatus.json | 6 ++++ .../stable/2017-11-15/timeseriesinsights.json | 34 +++++++++++++++++++ 4 files changed, 54 insertions(+), 2 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsCreate.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsCreate.json index 6e1b28109715..6edf7695d85f 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsCreate.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsCreate.json @@ -10,7 +10,13 @@ "capacity": 1 }, "properties": { - "dataRetentionTime": "P31D" + "dataRetentionTime": "P31D", + "partitionKeyProperties": [ + { + "name": "DeviceId1", + "type": "String" + } + ] } }, "api-version": "2017-11-15" diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGet.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGet.json index 6569a3fe4c6d..4ae35b0a1ec6 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGet.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGet.json @@ -19,7 +19,13 @@ "creationTime": "2017-04-18T19:20:33.2288820Z", "storageLimitExceededBehavior": "PurgeOldData", "dataAccessId": "", - "dataAccessFqdn": "" + "dataAccessFqdn": "", + "partitionKeyProperties": [ + { + "name": "DeviceId1", + "type": "String" + } + ] }, "sku": { "name": "S1", diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGetExpandStatus.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGetExpandStatus.json index 64be2059a4f7..2cc17119c0c2 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGetExpandStatus.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGetExpandStatus.json @@ -19,6 +19,12 @@ "provisioningState": "Succeeded", "creationTime": "2017-04-18T19:20:33.2288820Z", "storageLimitExceededBehavior": "PurgeOldData", + "partitionKeyProperties": [ + { + "name": "DeviceId1", + "type": "String" + } + ], "dataAccessId": "", "dataAccessFqdn": "", "status": { diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json index 15be9d6079a6..f8ff6f79011c 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json @@ -1310,6 +1310,13 @@ "name": "StorageLimitExceededBehavior", "modelAsString": false } + }, + "partitionKeyProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentInfoProperty" + }, + "description": "The list of partition keys according to which the data in the environment will be ordered." } }, "required": [ @@ -1365,9 +1372,36 @@ "name": "StorageLimitExceededBehavior", "modelAsString": false } + }, + "partitionKeyProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentInfoProperty" + }, + "description": "The list of event properties which will be used to partition data in the environment." } } }, + "EnvironmentInfoProperty": { + "properties": { + "name": { + "type": "string", + "description": "The name of the property." + }, + "type": { + "type": "string", + "description": "The type of the property.", + "enum": [ + "String" + ], + "x-ms-enum": { + "name": "PropertyType", + "modelAsString": false + } + } + }, + "description": "The structure of the property that a environment info can have. An environment can have multiple such properties." + }, "EnvironmentStatus": { "readOnly": true, "type": "object", From 212381469982ecfc15cf47e7d54a17e6c402bc83 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Suresh Babu Date: Sat, 7 Apr 2018 17:34:22 -0700 Subject: [PATCH 07/33] changing property name --- .../stable/2017-11-15/timeseriesinsights.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json index f8ff6f79011c..7e8800ac7933 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json @@ -1314,7 +1314,7 @@ "partitionKeyProperties": { "type": "array", "items": { - "$ref": "#/definitions/EnvironmentInfoProperty" + "$ref": "#/definitions/PartitionKeyProperty" }, "description": "The list of partition keys according to which the data in the environment will be ordered." } @@ -1376,13 +1376,13 @@ "partitionKeyProperties": { "type": "array", "items": { - "$ref": "#/definitions/EnvironmentInfoProperty" + "$ref": "#/definitions/PartitionKeyProperty" }, "description": "The list of event properties which will be used to partition data in the environment." } } }, - "EnvironmentInfoProperty": { + "PartitionKeyProperty": { "properties": { "name": { "type": "string", @@ -1400,7 +1400,7 @@ } } }, - "description": "The structure of the property that a environment info can have. An environment can have multiple such properties." + "description": "The structure of the property that a partition key can have. An environment can have multiple such properties." }, "EnvironmentStatus": { "readOnly": true, From 4639ecd2e33535ac14724ab978c2eba8ca96cfc4 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Suresh Babu Date: Wed, 18 Apr 2018 15:35:22 -0700 Subject: [PATCH 08/33] changing modelAsString --- .../stable/2017-11-15/timeseriesinsights.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json index 7e8800ac7933..3171601e55a5 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json @@ -1396,7 +1396,7 @@ ], "x-ms-enum": { "name": "PropertyType", - "modelAsString": false + "modelAsString": true } } }, From d81181fd017699508064f635082905fdeb17dbb8 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Mon, 20 Aug 2018 14:53:13 -0700 Subject: [PATCH 09/33] Initial checkin of spec. Unchanged from GA release other than version. --- .../examples/AccessPoliciesCreate.json | 42 + .../examples/AccessPoliciesDelete.json | 13 + .../examples/AccessPoliciesGet.json | 23 + .../AccessPoliciesListByEnvironment.json | 26 + .../examples/AccessPoliciesPatchRoles.json | 28 + .../examples/EnvironmentsCreate.json | 63 + .../examples/EnvironmentsDelete.json | 12 + .../examples/EnvironmentsGet.json | 34 + .../EnvironmentsListByResourceGroup.json | 31 + .../EnvironmentsListBySubscription.json | 30 + .../EnvironmentsPatchSkuCapacity.json | 34 + .../examples/EnvironmentsStatusGet.json | 20 + .../examples/EventSourcesCreateEventHub.json | 62 + .../examples/EventSourcesCreateIoTHub.json | 59 + .../examples/EventSourcesDelete.json | 13 + .../examples/EventSourcesGet.json | 30 + .../examples/EventSourcesGetEventHub.json | 30 + .../examples/EventSourcesGetIoTHub.json | 29 + .../EventSourcesListByEnvironment.json | 49 + .../examples/EventSourcesPatchTags.json | 34 + ...ventSourcesPatchTimestampPropertyName.json | 36 + .../examples/Operation_List.json | 130 + .../examples/Operation_List.json.orig | 292 +++ .../examples/ReferenceDataSetsCreate.json | 72 + .../examples/ReferenceDataSetsDelete.json | 13 + .../examples/ReferenceDataSetsGet.json | 34 + .../ReferenceDataSetsListByEnvironment.json | 37 + .../examples/ReferenceDataSetsPatchTags.json | 37 + .../timeseriesinsights.json | 2163 +++++++++++++++++ 29 files changed, 3476 insertions(+) create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesCreate.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesDelete.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesGet.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesListByEnvironment.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesPatchRoles.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsCreate.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsDelete.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGet.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListByResourceGroup.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListBySubscription.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsPatchSkuCapacity.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsStatusGet.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesCreateEventHub.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesCreateIoTHub.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesDelete.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGet.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGetEventHub.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGetIoTHub.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesListByEnvironment.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesPatchTags.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesPatchTimestampPropertyName.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json.orig create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsCreate.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsDelete.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsGet.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsListByEnvironment.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsPatchTags.json create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesCreate.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesCreate.json new file mode 100644 index 000000000000..df11a732d205 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesCreate.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "accessPolicyName": "ap1", + "parameters": { + "properties": { + "principalObjectId": "aGuid", + "roles": [ "Reader" ], + "description": "some description" + } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1", + "name": "ap1", + "type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies", + "properties": { + "principalObjectId": "aGuid", + "roles": [ "Reader" ], + "description": "some description" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1", + "name": "ap1", + "type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies", + "properties": { + "principalObjectId": "aGuid", + "roles": [ "Reader" ], + "description": "some description" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesDelete.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesDelete.json new file mode 100644 index 000000000000..e2423912af97 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "accessPolicyName": "ap1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesGet.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesGet.json new file mode 100644 index 000000000000..82fefa1074be --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "accessPolicyName": "ap1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1", + "name": "ap1", + "type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies", + "properties": { + "principalObjectId": "aGuid", + "roles": [ "Reader" ], + "description": "some description" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesListByEnvironment.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesListByEnvironment.json new file mode 100644 index 000000000000..cd8af78c4a01 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesListByEnvironment.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1", + "name": "ap1", + "type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies", + "properties": { + "principalObjectId": "aGuid", + "roles": [ "Reader" ], + "description": "some description" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesPatchRoles.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesPatchRoles.json new file mode 100644 index 000000000000..074d5c19fb39 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/AccessPoliciesPatchRoles.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "accessPolicyName": "ap1", + "accessPolicyUpdateParameters": { + "properties": { + "roles": [ "Reader", "Contributor" ] + } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1", + "name": "ap1", + "type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies", + "properties": { + "principalObjectId": "aGuid", + "roles": [ "Reader" ], + "description": "some description" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsCreate.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsCreate.json new file mode 100644 index 000000000000..b65ceae7128c --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsCreate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "parameters": { + "location": "West US", + "sku": { + "name": "S1", + "capacity": 1 + }, + "properties": { + "dataRetentionTime": "P31D", + "partitionKeyProperties": [ + { + "name": "DeviceId1", + "type": "String" + } + ] + } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", + "location": "West US", + "name": "env1", + "type": "Microsoft.TimeSeriesInsights/Environments", + "tags": {}, + "properties": { + "dataRetentionTime": "P31D", + "provisioningState": "Creating", + "creationTime": "2017-04-18T19:20:33.2288820Z" + }, + "sku": { + "name": "S1", + "capacity": 1 + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", + "location": "West US", + "name": "env1", + "type": "Microsoft.TimeSeriesInsights/Environments", + "tags": {}, + "properties": { + "dataRetentionTime": "P31D", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + }, + "sku": { + "name": "S1", + "capacity": 1 + } + } + }, + "404": {} + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsDelete.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsDelete.json new file mode 100644 index 000000000000..334a2039d6d4 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGet.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGet.json new file mode 100644 index 000000000000..317f76c27faa --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subid", + "environmentName": "env1", + "resourceGroupName": "rg1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", + "location": "West US", + "name": "env1", + "type": "Microsoft.TimeSeriesInsights/Environments", + "tags": {}, + "properties": { + "dataRetentionTime": "P31D", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z", + "partitionKeyProperties": [ + { + "name": "DeviceId1", + "type": "String" + } + ] + }, + "sku": { + "name": "S1", + "capacity": 1 + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListByResourceGroup.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListByResourceGroup.json new file mode 100644 index 000000000000..c05a54aa6048 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListByResourceGroup.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", + "location": "West US", + "name": "env1", + "type": "Microsoft.TimeSeriesInsights/Environments", + "tags": {}, + "properties": { + "dataRetentionTime": "P31D", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + }, + "sku": { + "name": "S1", + "capacity": 1 + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListBySubscription.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListBySubscription.json new file mode 100644 index 000000000000..714b351efa00 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListBySubscription.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", + "location": "West US", + "name": "env1", + "type": "Microsoft.TimeSeriesInsights/Environments", + "tags": {}, + "properties": { + "dataRetentionTime": "P31D", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + }, + "sku": { + "name": "S1", + "capacity": 1 + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsPatchSkuCapacity.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsPatchSkuCapacity.json new file mode 100644 index 000000000000..bcb165a3c4f2 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsPatchSkuCapacity.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "environmentUpdateParameters": { + "sku": { + "name": "S1", + "capacity": 10 + } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", + "location": "West US", + "name": "env1", + "type": "Microsoft.TimeSeriesInsights/Environments", + "tags": {}, + "properties": { + "dataRetentionTime": "P31D", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + }, + "sku": { + "name": "S1", + "capacity": 10 + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsStatusGet.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsStatusGet.json new file mode 100644 index 000000000000..9d446631de7a --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsStatusGet.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subid", + "environmentName": "env1", + "resourceGroupName": "rg1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "provisioningState": "Succeeded", + "ingress": { + "state": "Running" + } + } + } + } +} + + \ No newline at end of file diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesCreateEventHub.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesCreateEventHub.json new file mode 100644 index 000000000000..fd2fc91cb000 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesCreateEventHub.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "eventSourceName": "es1", + "parameters": { + "location": "West US", + "kind": "Microsoft.EventHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "serviceBusNamespace": "sbn", + "consumerGroupName": "cgn", + "eventHubName": "ehn", + "keyName": "managementKey", + "sharedAccessKey": "someSecretvalue", + "timestampPropertyName": "someTimestampProperty" + } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.EventHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "serviceBusNamespace": "sbn", + "consumerGroupName": "cgn", + "eventHubName": "ehn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.EventHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "serviceBusNamespace": "sbn", + "consumerGroupName": "cgn", + "eventHubName": "ehn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesCreateIoTHub.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesCreateIoTHub.json new file mode 100644 index 000000000000..5047894b4496 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesCreateIoTHub.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "eventSourceName": "es1", + "parameters": { + "location": "West US", + "kind": "Microsoft.IoTHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "consumerGroupName": "cgn", + "iotHubName": "iothn", + "keyName": "managementKey", + "sharedAccessKey": "someSecretvalue", + "timestampPropertyName": "someTimestampProperty" + } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.IoTHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "consumerGroupName": "cgn", + "iotHubName": "iothn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.IoTHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "consumerGroupName": "cgn", + "iotHubName": "iothn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesDelete.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesDelete.json new file mode 100644 index 000000000000..af19f743d71e --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "eventSourceName": "es1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGet.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGet.json new file mode 100644 index 000000000000..557d6e2f7641 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGet.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "eventSourceName": "es1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.EventHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "serviceBusNamespace": "sbn", + "consumerGroupName": "cgn", + "eventHubName": "ehn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGetEventHub.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGetEventHub.json new file mode 100644 index 000000000000..557d6e2f7641 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGetEventHub.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "eventSourceName": "es1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.EventHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "serviceBusNamespace": "sbn", + "consumerGroupName": "cgn", + "eventHubName": "ehn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGetIoTHub.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGetIoTHub.json new file mode 100644 index 000000000000..ee493d1325f2 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesGetIoTHub.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "eventSourceName": "es1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.IoTHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "consumerGroupName": "cgn", + "iotHubName": "iothn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesListByEnvironment.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesListByEnvironment.json new file mode 100644 index 000000000000..5b5be8e8387d --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesListByEnvironment.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.EventHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "serviceBusNamespace": "sbn", + "consumerGroupName": "cgn", + "eventHubName": "ehn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es2", + "location": "West US", + "name": "es2", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.IoTHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "consumerGroupName": "cgn", + "iotHubName": "iotn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesPatchTags.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesPatchTags.json new file mode 100644 index 000000000000..d31fb852eea2 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesPatchTags.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "eventSourceName": "es1", + "eventSourceUpdateParameters": { + "tags": { "someKey": "someValue" } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": { "someKey": "someValue" }, + "kind": "Microsoft.EventHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "serviceBusNamespace": "sbn", + "consumerGroupName": "cgn", + "eventHubName": "ehn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z", + "timestampPropertyName": "someOtherTimestampProperty" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesPatchTimestampPropertyName.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesPatchTimestampPropertyName.json new file mode 100644 index 000000000000..41eff87f051b --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesPatchTimestampPropertyName.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "eventSourceName": "es1", + "eventSourceUpdateParameters": { + "properties": { + "timestampPropertyName": "someOtherTimestampProperty" + } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1", + "location": "West US", + "name": "es1", + "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", + "tags": {}, + "kind": "Microsoft.EventHub", + "properties": { + "eventSourceResourceId": "somePathInArm", + "serviceBusNamespace": "sbn", + "consumerGroupName": "cgn", + "eventHubName": "ehn", + "keyName": "managementKey", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z", + "timestampPropertyName": "someOtherTimestampProperty" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json new file mode 100644 index 000000000000..f9c9a47fde7a --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json @@ -0,0 +1,130 @@ +{ + "parameters": { + "api-version": "2016-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.TimeSeriesInsights/register/action", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Time Series Insights Resource Provider", + "operation": "Registers the Time Series Insights Resource Provider", + "description": "Registers the subscription for the Time Series Insights resource provider and enables the creation of Time Series Insights environments." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/read", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Environment", + "operation": "Read Environment", + "description": "Get the properties of an environment." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/write", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Environment", + "operation": "Create or Update Environment", + "description": "Creates a new environment, or updates an existing environment." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/delete", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Environment", + "operation": "Delete Environment", + "description": "Deletes the environment." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/eventsources/read", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Event Source", + "operation": "Read Event Source", + "description": "Get the properties of an event source." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/eventsources/write", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Event Source", + "operation": "Create or Update Event Source", + "description": "Creates a new event source for an environment, or updates an existing event source." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/eventsources/delete", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Event Source", + "operation": "Delete Event Source", + "description": "Deletes the event source." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/referencedatasets/read", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Reference Data Set", + "operation": "Read Reference Data Set", + "description": "Get the properties of a reference data set." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/referencedatasets/write", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Reference Data Set", + "operation": "Create or Update Reference Data Set", + "description": "Creates a new reference data set for an environment, or updates an existing reference data set." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/referencedatasets/delete", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Reference Data Set", + "operation": "Delete Reference Data Set", + "description": "Deletes the reference data set." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/accesspolicies/read", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Access Policy", + "operation": "Read Access Policy", + "description": "Get the properties of an access policy." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/accesspolicies/write", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Access Policy", + "operation": "Create or Update Access Policy", + "description": "Creates a new access policy for an environment, or updates an existing access policy." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/accesspolicies/delete", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Access Policy", + "operation": "Delete Access Policy", + "description": "Deletes the access policy." + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json.orig b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json.orig new file mode 100644 index 000000000000..a001bbd9e825 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json.orig @@ -0,0 +1,292 @@ +{ + "parameters": { + "api-version": "2016-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { +<<<<<<< HEAD + "name": "Microsoft.TimeSeriesInsights/register/action", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Time Series Insights Resource Provider", + "operation": "Registers the Time Series Insights Resource Provider", + "description": "Registers the subscription for the Time Series Insights resource provider and enables the creation of Time Series Insights environments." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/read", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Environment", + "operation": "Read Environment", + "description": "Get the properties of an environment." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/write", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Environment", + "operation": "Create or Update Environment", + "description": "Creates a new environment, or updates an existing environment." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/delete", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Environment", + "operation": "Delete Environment", + "description": "Deletes the environment." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/eventsources/read", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Event Source", + "operation": "Read Event Source", + "description": "Get the properties of an event source." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/eventsources/write", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Event Source", + "operation": "Create or Update Event Source", + "description": "Creates a new event source for an environment, or updates an existing event source." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/eventsources/delete", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Event Source", + "operation": "Delete Event Source", + "description": "Deletes the event source." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/referencedatasets/read", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Reference Data Set", + "operation": "Read Reference Data Set", + "description": "Get the properties of a reference data set." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/referencedatasets/write", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Reference Data Set", + "operation": "Create or Update Reference Data Set", + "description": "Creates a new reference data set for an environment, or updates an existing reference data set." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/referencedatasets/delete", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Reference Data Set", + "operation": "Delete Reference Data Set", + "description": "Deletes the reference data set." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/accesspolicies/read", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Access Policy", + "operation": "Read Access Policy", + "description": "Get the properties of an access policy." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/accesspolicies/write", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Access Policy", + "operation": "Create or Update Access Policy", + "description": "Creates a new access policy for an environment, or updates an existing access policy." + } + }, + { + "name": "Microsoft.TimeSeriesInsights/environments/accesspolicies/delete", + "display": { + "provider": "Microsoft Time Series Insights", + "resource": "Access Policy", + "operation": "Delete Access Policy", + "description": "Deletes the access policy." +======= + "name": "Microsoft.StreamAnalytics/streamingjobs/Start/action", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job", + "operation": "Start Stream Analytics Job", + "description": "Start Stream Analytics Job" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/Stop/action", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job", + "operation": "Stop Stream Analytics Job", + "description": "Stop Stream Analytics Job" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/Read", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job", + "operation": "Read Stream Analytics Job", + "description": "Read Stream Analytics Job" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/Write", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job", + "operation": "Write Stream Analytics Job", + "description": "Write Stream Analytics Job" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/Delete", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job", + "operation": "Delete Stream Analytics Job", + "description": "Delete Stream Analytics Job" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/inputs/Read", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job Input", + "operation": "Read Stream Analytics Job Input", + "description": "Read Stream Analytics Job Input" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/inputs/Write", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job Input", + "operation": "Write Stream Analytics Job Input", + "description": "Write Stream Analytics Job Input" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/inputs/Delete", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job Input", + "operation": "Delete Stream Analytics Job Input", + "description": "Delete Stream Analytics Job Input" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/outputs/Read", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job Output", + "operation": "Read Stream Analytics Job Output", + "description": "Read Stream Analytics Job Output" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/outputs/Write", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job Output", + "operation": "Write Stream Analytics Job Output", + "description": "Write Stream Analytics Job Output" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/outputs/Delete", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job Output", + "operation": "Delete Stream Analytics Job Output", + "description": "Delete Stream Analytics Job Output" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/transformations/Read", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job Transformation", + "operation": "Read Stream Analytics Job Transformation", + "description": "Read Stream Analytics Job Transformation" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/transformations/Write", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job Transformation", + "operation": "Write Stream Analytics Job Transformation", + "description": "Write Stream Analytics Job Transformation" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/transformations/Delete", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "Stream Analytics Job Transformation", + "operation": "Delete Stream Analytics Job Transformation", + "description": "Delete Stream Analytics Job Transformation" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "The metric definition of streamingjobs", + "operation": "Read streamingjobs metric definitions", + "description": "Gets the available metrics for streamingjobs" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "The log definition of streamingjobs", + "operation": "Read streamingjobs log definitions", + "description": "Gets the available logs for streamingjobs" + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "streamingjobs", + "operation": "Read diagnostic setting.", + "description": "Read diagnostic setting." + } + }, + { + "name": "Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Azure Stream Analytics", + "resource": "streamingjobs", + "operation": "Write diagnostic setting.", + "description": "Write diagnostic setting." +>>>>>>> origin/master + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsCreate.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsCreate.json new file mode 100644 index 000000000000..26cb825ea353 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsCreate.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "referenceDataSetName": "rds1", + "parameters": { + "location": "West US", + "properties": { + "keyProperties": [ + { + "name": "DeviceId1", + "type": "String" + }, + { + "name": "DeviceFloor", + "type": "Double" + } + ] + } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/referenceDataSets/rds1", + "location": "West US", + "name": "rds1", + "type": "Microsoft.TimeSeriesInsights/Environments/ReferenceDataSets", + "tags": {}, + "properties": { + "keyProperties": [ + { + "name": "DeviceId1", + "type": "String" + }, + { + "name": "DeviceFloor", + "type": "Double" + } + ], + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/referenceDataSets/rds1", + "location": "West US", + "name": "rds1", + "type": "Microsoft.TimeSeriesInsights/Environments/ReferenceDataSets", + "tags": {}, + "properties": { + "keyProperties": [ + { + "name": "DeviceId1", + "type": "String" + }, + { + "name": "DeviceFloor", + "type": "Double" + } + ], + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsDelete.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsDelete.json new file mode 100644 index 000000000000..7ec7b0457e3c --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "referenceDataSetName": "rds1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsGet.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsGet.json new file mode 100644 index 000000000000..86cfb7fb24ea --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "referenceDataSetName": "rds1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/referenceDataSets/rds1", + "location": "West US", + "name": "rds1", + "type": "Microsoft.TimeSeriesInsights/Environments/ReferenceDataSets", + "tags": {}, + "properties": { + "keyProperties": [ + { + "name": "DeviceId1", + "type": "String" + }, + { + "name": "DeviceFloor", + "type": "Double" + } + ], + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsListByEnvironment.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsListByEnvironment.json new file mode 100644 index 000000000000..713863e531e9 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsListByEnvironment.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/referenceDataSets/rds1", + "location": "West US", + "name": "rds1", + "type": "Microsoft.TimeSeriesInsights/Environments/ReferenceDataSets", + "tags": {}, + "properties": { + "keyProperties": [ + { + "name": "DeviceId1", + "type": "String" + }, + { + "name": "DeviceFloor", + "type": "Double" + } + ], + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsPatchTags.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsPatchTags.json new file mode 100644 index 000000000000..586ec38ca0ce --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/ReferenceDataSetsPatchTags.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "environmentName": "env1", + "referenceDataSetName": "rds1", + "referenceDataSetUpdateParameters": { + "tags": { "someKey": "someValue" } + }, + "api-version": "2018-08-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/referenceDataSets/rds1", + "location": "West US", + "name": "rds1", + "type": "Microsoft.TimeSeriesInsights/Environments/ReferenceDataSets", + "tags": { "someKey": "someValue" }, + "properties": { + "keyProperties": [ + { + "name": "DeviceId1", + "type": "String" + }, + { + "name": "DeviceFloor", + "type": "Double" + } + ], + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z" + } + } + } + } +} diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json new file mode 100644 index 000000000000..962e6a40f268 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json @@ -0,0 +1,2163 @@ +{ + "swagger": "2.0", + "info": { + "title": "TimeSeriesInsightsClient", + "description": "Time Series Insights client", + "version": "2018-08-15-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.TimeSeriesInsights/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available Time Series Insights related operations.", + "x-ms-examples": { + "List available operations for the Time Series Insights resource provider": { "$ref": "./examples/Operation_List.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully listed the available operations.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}": { + "put": { + "tags": [ + "Environments" + ], + "operationId": "Environments_CreateOrUpdate", + "x-ms-examples": { + "EnvironmentsCreate": { "$ref": "./examples/EnvironmentsCreate.json" } + }, + "x-ms-long-running-operation": true, + "description": "Create or update an environment in the specified subscription and resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "environmentName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "description": "Name of the environment" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EnvironmentCreateOrUpdateParameters" + }, + "description": "Parameters for creating an environment resource." + } + ], + "responses": { + "200": { + "description": "The existing environment definition was successfully updated.", + "schema": { + "$ref": "#/definitions/EnvironmentResource" + } + }, + "201": { + "description": "The environment create request was accepted. Environment provisioning is an asynchroneous operation. You can periodically get your environment definition and monitor progress via the provisioningState property.", + "schema": { + "$ref": "#/definitions/EnvironmentResource" + } + }, + "404": { + "description": "The subscription or resource group could not be found." + }, + "default": { + "description": "HTTP 400 (Bad Request): The given environment request body is invalid; See the error code and message in the response for details.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "Environments" + ], + "operationId": "Environments_Get", + "x-ms-examples": { + "EnvironmentsGet": { "$ref": "./examples/EnvironmentsGet.json" } + }, + "description": "Gets the environment with the specified name in the specified subscription and resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The environment definition was successfully retrieved and is in the response. If you are polling for the completion of a provisioning or scale operation, you can check its status via the provisioningState property.", + "schema": { + "$ref": "#/definitions/EnvironmentResource" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, or environment could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "Environments" + ], + "operationId": "Environments_Update", + "x-ms-examples": { + "EnvironmentsUpdate": { "$ref": "./examples/EnvironmentsPatchSkuCapacity.json" } + }, + "x-ms-long-running-operation": true, + "description": "Updates the environment with the specified name in the specified subscription and resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "name": "environmentUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EnvironmentUpdateParameters" + }, + "description": "Request object that contains the updated information for the environment." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The environment definition was successfully updated and is in the response. If the environment was updated synchroneously, the response will include a provisioningState value of \"Succeeded\". If the environment was updated asynchroneously, the response will include a provisioningState value of \"Updating\". You can periodically get your environment definition and monitor progress of the update via the provisioningState property.", + "schema": { + "$ref": "#/definitions/EnvironmentResource" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, or environment could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Environments" + ], + "operationId": "Environments_Delete", + "x-ms-examples": { + "EnvironmentsDelete": { "$ref": "./examples/EnvironmentsDelete.json" } + }, + "description": "Deletes the environment with the specified name in the specified subscription and resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The environment was successfully deleted." + }, + "204": { + "description": "The environment was successfully deleted." + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, or environment could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments": { + "get": { + "tags": [ + "Environments" + ], + "operationId": "Environments_ListByResourceGroup", + "x-ms-examples": { + "EnvironmentsByResourceGroup": { "$ref": "./examples/EnvironmentsListByResourceGroup.json" } + }, + "description": "Lists all the available environments associated with the subscription and within the specified resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Environments returned successfully.", + "schema": { + "$ref": "#/definitions/EnvironmentListResponse" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, or resource group could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.TimeSeriesInsights/environments": { + "get": { + "tags": [ + "Environments" + ], + "operationId": "Environments_ListBySubscription", + "x-ms-examples": { + "EnvironmentsBySubscription": { "$ref": "./examples/EnvironmentsListBySubscription.json" } + }, + "description": "Lists all the available environments within a subscription, irrespective of the resource groups.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Environments returned successfully.", + "schema": { + "$ref": "#/definitions/EnvironmentListResponse" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}": { + "put": { + "tags": [ + "EventSources" + ], + "operationId": "EventSources_CreateOrUpdate", + "x-ms-examples": { + "CreateEventHubEventSource": { "$ref": "./examples/EventSourcesCreateEventHub.json" } + }, + "description": "Create or update an event source under the specified environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "name": "eventSourceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "description": "Name of the event source." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EventSourceCreateOrUpdateParameters" + }, + "description": "Parameters for creating an event source resource." + } + ], + "responses": { + "200": { + "description": "The existing event source definition was successfully updated.", + "schema": { + "$ref": "#/definitions/EventSourceResource" + } + }, + "201": { + "description": "The event source was successfully created.", + "schema": { + "$ref": "#/definitions/EventSourceResource" + } + }, + "default": { + "description": "HTTP 400 (Bad Request): The given event source request body is invalid; See the error code and message in the response for details.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "EventSources" + ], + "operationId": "EventSources_Get", + "x-ms-examples": { + "GetEventHubEventSource": { "$ref": "./examples/EventSourcesGetEventHub.json" } + }, + "description": "Gets the event source with the specified name in the specified environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/EventSourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The event source definition was successfully retrieved and is in the response.", + "schema": { + "$ref": "#/definitions/EventSourceResource" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, environment, or event source could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "EventSources" + ], + "operationId": "EventSources_Update", + "x-ms-examples": { + "UpdateEventSource": { "$ref": "./examples/EventSourcesPatchTags.json" } + }, + "description": "Updates the event source with the specified name in the specified subscription, resource group, and environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/EventSourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "eventSourceUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EventSourceUpdateParameters" + }, + "description": "Request object that contains the updated information for the event source." + } + ], + "responses": { + "200": { + "description": "The event source definition was successfully updated and is in the response.", + "schema": { + "$ref": "#/definitions/EventSourceResource" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, environment, or event source could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "EventSources" + ], + "operationId": "EventSources_Delete", + "x-ms-examples": { + "DeleteEventSource": { "$ref": "./examples/EventSourcesDelete.json" } + }, + "description": "Deletes the event source with the specified name in the specified subscription, resource group, and environment", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/EventSourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The event source was successfully deleted." + }, + "204": { + "description": "The event source was successfully deleted." + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, environment, or event source could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources": { + "get": { + "tags": [ + "EventSources" + ], + "operationId": "EventSources_ListByEnvironment", + "x-ms-examples": { + "ListEventSourcesByEnvironment": { "$ref": "./examples/EventSourcesListByEnvironment.json" } + }, + "description": "Lists all the available event sources associated with the subscription and within the specified resource group and environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Environments returned successfully.", + "schema": { + "$ref": "#/definitions/EventSourceListResponse" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, or environment could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}": { + "put": { + "tags": [ + "ReferenceDataSets" + ], + "operationId": "ReferenceDataSets_CreateOrUpdate", + "x-ms-examples": { + "ReferenceDataSetsCreate": { "$ref": "./examples/ReferenceDataSetsCreate.json" } + }, + "description": "Create or update a reference data set in the specified environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "name": "referenceDataSetName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[A-Za-z0-9]", + "minLength": 3, + "maxLength": 63, + "description": "Name of the reference data set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReferenceDataSetCreateOrUpdateParameters" + }, + "description": "Parameters for creating a reference data set." + } + ], + "responses": { + "200": { + "description": "The existing reference data set definition was successfully updated.", + "schema": { + "$ref": "#/definitions/ReferenceDataSetResource" + } + }, + "201": { + "description": "The reference data set was successfully created.", + "schema": { + "$ref": "#/definitions/ReferenceDataSetResource" + } + }, + "default": { + "description": "HTTP 400 (Bad Request): The given reference data set request body is invalid; See the error code and message in the response for details.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "ReferenceDataSets" + ], + "operationId": "ReferenceDataSets_Get", + "x-ms-examples": { + "ReferenceDataSetsGet": { "$ref": "./examples/ReferenceDataSetsGet.json" } + }, + "description": "Gets the reference data set with the specified name in the specified environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/ReferenceDataSetNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The reference data set definition was successfully retrieved and is in the response.", + "schema": { + "$ref": "#/definitions/ReferenceDataSetResource" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, environment, or reference data set could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "ReferenceDataSets" + ], + "operationId": "ReferenceDataSets_Update", + "x-ms-examples": { + "ReferenceDataSetsUpdate": { "$ref": "./examples/ReferenceDataSetsPatchTags.json" } + }, + "description": "Updates the reference data set with the specified name in the specified subscription, resource group, and environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/ReferenceDataSetNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "referenceDataSetUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReferenceDataSetUpdateParameters" + }, + "description": "Request object that contains the updated information for the reference data set." + } + ], + "responses": { + "200": { + "description": "The reference data set definition was successfully updated and is in the response.", + "schema": { + "$ref": "#/definitions/ReferenceDataSetResource" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, environment, or reference data set could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "ReferenceDataSets" + ], + "operationId": "ReferenceDataSets_Delete", + "x-ms-examples": { + "ReferenceDataSetsDelete": { "$ref": "./examples/ReferenceDataSetsDelete.json" } + }, + "description": "Deletes the reference data set with the specified name in the specified subscription, resource group, and environment", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/ReferenceDataSetNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The reference data set was successfully deleted." + }, + "204": { + "description": "The reference data set was successfully deleted." + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, environment, or reference data set could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets": { + "get": { + "tags": [ + "ReferenceDataSets" + ], + "operationId": "ReferenceDataSets_ListByEnvironment", + "x-ms-examples": { + "ReferenceDataSetsListByEnvironment": { "$ref": "./examples/ReferenceDataSetsListByEnvironment.json" } + }, + "description": "Lists all the available reference data sets associated with the subscription and within the specified resource group and environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Reference data sets returned successfully.", + "schema": { + "$ref": "#/definitions/ReferenceDataSetListResponse" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, or environment could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}": { + "put": { + "tags": [ + "AccessPolicies" + ], + "operationId": "AccessPolicies_CreateOrUpdate", + "x-ms-examples": { + "AccessPoliciesCreate": { "$ref": "./examples/AccessPoliciesCreate.json" } + }, + "description": "Create or update an access policy in the specified environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "name": "accessPolicyName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90, + "description": "Name of the access policy." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccessPolicyCreateOrUpdateParameters" + }, + "description": "Parameters for creating an access policy." + } + ], + "responses": { + "200": { + "description": "The existing access policy definition was successfully updated.", + "schema": { + "$ref": "#/definitions/AccessPolicyResource" + } + }, + "201": { + "description": "The access policy was successfully created.", + "schema": { + "$ref": "#/definitions/AccessPolicyResource" + } + }, + "default": { + "description": "HTTP 400 (Bad Request): The given access policy request body is invalid; See the error code and message in the response for details.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "AccessPolicies" + ], + "operationId": "AccessPolicies_Get", + "x-ms-examples": { + "AccessPoliciesGet": { "$ref": "./examples/AccessPoliciesGet.json" } + }, + "description": "Gets the access policy with the specified name in the specified environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/AccessPolicyNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The access policy definition was successfully retrieved and is in the response.", + "schema": { + "$ref": "#/definitions/AccessPolicyResource" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, environment, or access policy could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "AccessPolicies" + ], + "operationId": "AccessPolicies_Update", + "x-ms-examples": { + "AccessPoliciesUpdate": { "$ref": "./examples/AccessPoliciesPatchRoles.json" } + }, + "description": "Updates the access policy with the specified name in the specified subscription, resource group, and environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/AccessPolicyNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "accessPolicyUpdateParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccessPolicyUpdateParameters" + }, + "description": "Request object that contains the updated information for the access policy." + } + ], + "responses": { + "200": { + "description": "The access policy definition was successfully updated and is in the response.", + "schema": { + "$ref": "#/definitions/AccessPolicyResource" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, environment, or access policy could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "AccessPolicies" + ], + "operationId": "AccessPolicies_Delete", + "x-ms-examples": { + "AccessPoliciesDelete": { "$ref": "./examples/AccessPoliciesDelete.json" } + }, + "description": "Deletes the access policy with the specified name in the specified subscription, resource group, and environment", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/AccessPolicyNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The access policy was successfully deleted." + }, + "204": { + "description": "The access policy was successfully deleted." + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, environment, or access policy could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies": { + "get": { + "tags": [ + "AccessPolicies" + ], + "operationId": "AccessPolicies_ListByEnvironment", + "x-ms-examples": { + "AccessPoliciesByEnvironment": { "$ref": "./examples/AccessPoliciesListByEnvironment.json" } + }, + "description": "Lists all the available access policies associated with the environment.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "access policies returned successfully.", + "schema": { + "$ref": "#/definitions/AccessPolicyListResponse" + } + }, + "default": { + "description": "HTTP 404 (Not Found): The subscription, resource group, or environment could not be found.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "OperationListResult": { + "description": "Result of the request to list Time Series Insights operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of Time Series Insights operations supported by the Microsoft.TimeSeriesInsights resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "Operation": { + "description": "A Time Series Insights REST API operation", + "type": "object", + "properties": { + "name": { + "description": "The name of the operation being performed on this particular object.", + "type": "string", + "readOnly": true + }, + "display": { + "description": "Contains the localized display information for this particular operation / action.", + "readOnly": true, + "properties": { + "provider": { + "description": "The localized friendly form of the resource provider name.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "The localized friendly form of the resource type related to this action/operation.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "The localized friendly name for the operation.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "The localized friendly description for the operation.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + } + }, + "description": "Time Series Insights resource", + "x-ms-azure-resource": true + }, + "TrackedResource": { + "properties": { + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability":["read", "create"] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "required": [ + "location" + ], + "description": "Time Series Insights resource that is tracked by Azure Resource Manager." + }, + "ResourceProperties": { + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Provisioning state of the resource." + }, + "creationTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The time the resource was created." + } + }, + "description": "Properties that are common to all tracked resources." + }, + "ProvisioningState": { + "readOnly": true, + "type": "string", + "description": "Provisioning state of the resource.", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Succeeded", + "Failed", + "Deleting" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": false + } + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of this SKU.", + "enum": [ + "S1", + "S2" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": false + } + }, + "capacity": { + "format": "int32", + "type": "integer", + "description": "The capacity of the sku. This value can be changed to support scale out of environments after they have been created.", + "minimum": 1, + "maximum": 10 + } + }, + "required": [ + "name", + "capacity" + ], + "description": "The sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." + }, + "CreateOrUpdateTrackedResourceProperties": { + "properties": { + "location": { + "type": "string", + "description": "The location of the resource.", + "x-ms-mutability":["read", "create"] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional properties for the resource." + } + }, + "required": [ + "location" + ], + "description": "Properties required to create any resource tracked by Azure Resource Manager." + }, + "EnvironmentCreateOrUpdateParameters": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EnvironmentCreationProperties" + } + }, + "required": [ + "sku", + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/CreateOrUpdateTrackedResourceProperties" + } + ], + "description": "Parameters supplied to the CreateOrUpdate Environment operation." + }, + "EnvironmentUpdateParameters": { + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The sku of the environment." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional properties for the environment." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EnvironmentMutableProperties", + "description": "Properties of the environment." + } + }, + "description": "Parameters supplied to the Update Environment operation." + }, + "EnvironmentListResponse": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentResource" + }, + "description": "Result of the List Environments operation." + } + }, + "description": "The response of the List Environments operation." + }, + "EnvironmentResource": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EnvironmentResourceProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "An environment is a set of time-series data avaliable for query, and is the top level Azure Time Series Insights resource." + }, + "EnvironmentCreationProperties": { + "properties": { + "dataRetentionTime": { + "type": "string", + "format": "duration", + "description": "ISO8601 timespan specifying the minimum number of days the environment's events will be available for query." + }, + "storageLimitExceededBehavior": { + "type": "string", + "description": "The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If \"PauseIngress\" is specified, new events will not be read from the event source. If \"PurgeOldData\" is specified, new events will continue to be read and old events will be deleted from the environment. The default behavior is PurgeOldData.", + "enum": [ "PurgeOldData", "PauseIngress" ], + "x-ms-enum": { + "name": "StorageLimitExceededBehavior", + "modelAsString": false + } + }, + "partitionKeyProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/PartitionKeyProperty" + }, + "description": "The list of event properties which will be used to partition data in the environment." + } + }, + "required": [ + "dataRetentionTime" + ], + "description": "Properties used to create an environment." + }, + "EnvironmentResourceProperties": { + "properties": { + "dataAccessId": { + "readOnly": true, + "type": "string", + "format": "uuid", + "description": "An id used to access the environment data, e.g. to query the environment's events or upload reference data for the environment." + }, + "dataAccessFqdn": { + "readOnly": true, + "type": "string", + "description": "The fully qualified domain name used to access the environment data, e.g. to query the environment's events or upload reference data for the environment." + }, + "status": { + "$ref": "#/definitions/EnvironmentStatus", + "description": "An object that represents the status of the environment, and its internal state in the Time Series Insights service." + } + }, + "allOf": [ + { + "$ref": "#/definitions/EnvironmentCreationProperties" + }, + { + "$ref": "#/definitions/ResourceProperties" + } + ], + "required": [ + "dataRetentionTime" + ], + "description": "Properties of the environment." + }, + "EnvironmentMutableProperties": { + "description": "An object that represents a set of mutable environment resource properties.", + "type": "object", + "properties": { + "dataRetentionTime": { + "type": "string", + "format": "duration", + "description": "ISO8601 timespan specifying the minimum number of days the environment's events will be available for query." + }, + "storageLimitExceededBehavior": { + "type": "string", + "description": "The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If \"PauseIngress\" is specified, new events will not be read from the event source. If \"PurgeOldData\" is specified, new events will continue to be read and old events will be deleted from the environment. The default behavior is PurgeOldData.", + "enum": [ "PurgeOldData", "PauseIngress" ], + "x-ms-enum": { + "name": "StorageLimitExceededBehavior", + "modelAsString": false + } + }, + "partitionKeyProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/PartitionKeyProperty" + }, + "description": "The list of event properties which will be used to partition data in the environment." + } + } + }, + "PartitionKeyProperty": { + "properties": { + "name": { + "type": "string", + "description": "The name of the property." + }, + "type": { + "type": "string", + "description": "The type of the property.", + "enum": [ + "String" + ], + "x-ms-enum": { + "name": "PropertyType", + "modelAsString": true + } + } + }, + "description": "The structure of the property that a partition key can have. An environment can have multiple such properties." + }, + "EnvironmentStatus": { + "readOnly": true, + "type": "object", + "description": "An object that represents the status of the environment, and its internal state in the Time Series Insights service.", + "properties": { + "ingress": { + "$ref": "#/definitions/IngressEnvironmentStatus", + "description": "An object that represents the status of ingress on an environment." + } + } + }, + "IngressEnvironmentStatus": { + "readOnly": true, + "type": "object", + "description": "An object that represents the status of ingress on an environment.", + "properties": { + "state": { + "type": "string", + "description": "This string represents the state of ingress operations on an environment. It can be \"Disabled\", \"Ready\", \"Running\", \"Paused\" or \"Unknown\"", + "enum": [ + "Disabled", + "Ready", + "Running", + "Paused", + "Unknown" + ], + "x-ms-enum": { + "name": "IngressState", + "modelAsString": false + } + }, + "stateDetails": { + "$ref": "#/definitions/EnvironmentStateDetails", + "description": "An object that contains the details about an environment's state." + } + } + }, + "EnvironmentStateDetails": { + "readOnly": true, + "type": "object", + "description": "An object that contains the details about an environment's state.", + "properties":{ + "code": { + "type": "string", + "description": "Contains the code that represents the reason of an environment being in a particular state. Can be used to programatically handle specific cases." + }, + "message": { + "type": "string", + "description": "A message that describes the state in detail." + } + } + }, + "EventSourceCreateOrUpdateParameters": { + "discriminator": "kind", + "properties": { + "kind": { + "type": "string", + "description": "The kind of the event source.", + "enum": [ + "Microsoft.EventHub", + "Microsoft.IoTHub" + ], + "x-ms-enum": { + "name": "Kind", + "modelAsString": false + } + } + }, + "required": [ + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/CreateOrUpdateTrackedResourceProperties" + } + ], + "description": "Parameters supplied to the Create or Update Event Source operation." + }, + "EventHubEventSourceCreateOrUpdateParameters": { + "x-ms-discriminator-value": "Microsoft.EventHub", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubEventSourceCreationProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/EventSourceCreateOrUpdateParameters" + } + ], + "description": "Parameters supplied to the Create or Update Event Source operation for an EventHub event source." + }, + "IoTHubEventSourceCreateOrUpdateParameters": { + "x-ms-discriminator-value": "Microsoft.IoTHub", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IoTHubEventSourceCreationProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/EventSourceCreateOrUpdateParameters" + } + ], + "description": "Parameters supplied to the Create or Update Event Source operation for an IoTHub event source." + }, + "EventSourceUpdateParameters": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional properties for the event source." + } + }, + "description": "Parameters supplied to the Update Event Source operation." + }, + "EventHubEventSourceUpdateParameters": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubEventSourceMutableProperties", + "description": "Properties of the EventHub event source." + } + }, + "allOf": [ + { + "$ref": "#/definitions/EventSourceUpdateParameters" + } + ], + "description": "Parameters supplied to the Update Event Source operation to update an EventHub event source." + }, + "IoTHubEventSourceUpdateParameters": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IoTHubEventSourceMutableProperties", + "description": "Properties of the IoTHub event source." + } + }, + "allOf": [ + { + "$ref": "#/definitions/EventSourceUpdateParameters" + } + ], + "description": "Parameters supplied to the Update Event Source operation to update an IoTHub event source." + }, + "EventSourceListResponse": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EventSourceResource" + }, + "description": "Result of the List EventSources operation." + } + }, + "description": "The response of the List EventSources operation." + }, + "EventSourceResource": { + "type": "object", + "discriminator": "kind", + "properties": { + "kind": { + "type": "string", + "description": "The kind of the event source.", + "enum": [ "Microsoft.EventHub", "Microsoft.IoTHub" ] + } + }, + "required": [ + "kind" + ], + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "An environment receives data from one or more event sources. Each event source has associated connection info that allows the Time Series Insights ingress pipeline to connect to and pull data from the event source" + }, + "EventHubEventSourceResource": { + "x-ms-discriminator-value": "Microsoft.EventHub", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubEventSourceResourceProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/EventSourceResource" + } + ], + "description": "An event source that receives its data from an Azure EventHub." + }, + "IoTHubEventSourceResource": { + "x-ms-discriminator-value": "Microsoft.IotHub", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/IoTHubEventSourceResourceProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/EventSourceResource" + } + ], + "description": "An event source that receives its data from an Azure IoTHub." + }, + "EventSourceCommonProperties": { + "properties": { + "timestampPropertyName": { + "type": "string", + "description": "The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceProperties" + } + ], + "description": "Properties of the event source." + }, + "AzureEventSourceProperties": { + "properties": { + "eventSourceResourceId": { + "type": "string", + "description": "The resource id of the event source in Azure Resource Manager." + } + }, + "allOf": [ + { + "$ref": "#/definitions/EventSourceCommonProperties" + } + ], + "required": [ + "eventSourceResourceId" + ], + "description": "Properties of an event source that reads events from an event broker in Azure." + }, + "EventHubEventSourceCommonProperties": { + "properties": { + "serviceBusNamespace": { + "type": "string", + "description": "The name of the service bus that contains the event hub." + }, + "eventHubName": { + "type": "string", + "description": "The name of the event hub." + }, + "consumerGroupName": { + "type": "string", + "description": "The name of the event hub's consumer group that holds the partitions from which events will be read." + }, + "keyName": { + "type": "string", + "description": "The name of the SAS key that grants the Time Series Insights service access to the event hub. The shared access policies for this key must grant 'Listen' permissions to the event hub." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AzureEventSourceProperties" + } + ], + "required": [ + "serviceBusNamespace", + "eventHubName", + "consumerGroupName", + "keyName" + ], + "description": "Properties of the EventHub event source." + }, + "EventHubEventSourceCreationProperties": { + "properties": { + "sharedAccessKey": { + "type": "string", + "description": "The value of the shared access key that grants the Time Series Insights service read access to the event hub. This property is not shown in event source responses." + } + }, + "allOf": [ + { + "$ref": "#/definitions/EventHubEventSourceCommonProperties" + } + ], + "required": [ + "sharedAccessKey" + ], + "description": "Properties of the EventHub event source that are required on create or update requests." + }, + "EventHubEventSourceResourceProperties": { + "allOf": [ + { + "$ref": "#/definitions/EventHubEventSourceCommonProperties" + } + ], + "description": "Properties of the EventHub event source resource." + }, + "IoTHubEventSourceCommonProperties": { + "properties": { + "iotHubName": { + "type": "string", + "description": "The name of the iot hub." + }, + "consumerGroupName": { + "type": "string", + "description": "The name of the iot hub's consumer group that holds the partitions from which events will be read." + }, + "keyName": { + "type": "string", + "description": "The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AzureEventSourceProperties" + } + ], + "required": [ + "iotHubName", + "consumerGroupName", + "keyName" + ], + "description": "Properties of the IoTHub event source." + }, + "IoTHubEventSourceCreationProperties": { + "properties": { + "sharedAccessKey": { + "type": "string", + "description": "The value of the Shared Access Policy key that grants the Time Series Insights service read access to the iot hub. This property is not shown in event source responses." + } + }, + "allOf": [ + { + "$ref": "#/definitions/IoTHubEventSourceCommonProperties" + } + ], + "required": [ + "sharedAccessKey" + ], + "description": "Properties of the IoTHub event source that are required on create or update requests." + }, + "IoTHubEventSourceResourceProperties": { + "allOf": [ + { + "$ref": "#/definitions/IoTHubEventSourceCommonProperties" + } + ], + "description": "Properties of the IoTHub event source resource." + }, + "LocalTimestamp": { + "description": "An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.", + "type": "object", + "properties": { + "format": { + "description": "An enum that represents the format of the local timestamp property that needs to be set.", + "type": "string", + "enum": [ + "Embedded", + "Iana", + "TimeSpan" + ], + "x-ms-enum": { + "name": "LocalTimestampFormat", + "modelAsString": false + } + }, + "timeZoneOffset": { + "description": "An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.", + "type": "object", + "properties": { + "propertyName": { + "type": "string", + "description": "The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)" + } + } + } + } + }, + "EventSourceMutableProperties": { + "description": "An object that represents a set of mutable event source resource properties.", + "type": "object", + "properties": { + "timestampPropertyName": { + "type": "string", + "description": "The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used." + }, + "localTimestamp": { + "$ref": "#/definitions/LocalTimestamp", + "description": "An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events." + } + } + }, + "EventHubEventSourceMutableProperties": { + "description": "An object that represents a set of mutable EventHub event source resource properties.", + "type": "object", + "properties": { + "sharedAccessKey": { + "type": "string", + "description": "The value of the shared access key that grants the Time Series Insights service read access to the event hub. This property is not shown in event source responses." + } + }, + "allOf": [ + { + "$ref": "#/definitions/EventSourceMutableProperties" + } + ] + }, + "IoTHubEventSourceMutableProperties": { + "description": "An object that represents a set of mutable IoTHub event source resource properties.", + "type": "object", + "properties": { + "sharedAccessKey": { + "type": "string", + "description": "The value of the shared access key that grants the Time Series Insights service read access to the iot hub. This property is not shown in event source responses." + } + }, + "allOf": [ + { + "$ref": "#/definitions/EventSourceMutableProperties" + } + ] + }, + "ReferenceDataSetCreateOrUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReferenceDataSetCreationProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/CreateOrUpdateTrackedResourceProperties" + } + ] + }, + "ReferenceDataSetUpdateParameters": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional properties for the reference data set." + } + }, + "description": "Parameters supplied to the Update Reference Data Set operation." + }, + "ReferenceDataSetListResponse": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReferenceDataSetResource" + }, + "description": "Result of the List Reference Data Sets operation." + } + }, + "description": "The response of the List Reference Data Sets operation." + }, + "ReferenceDataSetResource": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReferenceDataSetResourceProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "A reference data set provides metadata about the events in an environment. Metadata in the reference data set will be joined with events as they are read from event sources. The metadata that makes up the reference data set is uploaded or modified through the Time Series Insights data plane APIs." + }, + "ReferenceDataSetCreationProperties": { + "properties": { + "keyProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/ReferenceDataSetKeyProperty" + }, + "description": "The list of key properties for the reference data set." + }, + "dataStringComparisonBehavior": { + "type": "string", + "description": "The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used.", + "enum": [ "Ordinal", "OrdinalIgnoreCase" ], + "x-ms-enum": { + "name": "DataStringComparisonBehavior", + "modelAsString": false + } + } + }, + "required": [ + "keyProperties" + ], + "description": "Properties used to create a reference data set." + }, + "ReferenceDataSetResourceProperties": { + "allOf": [ + { + "$ref": "#/definitions/ReferenceDataSetCreationProperties" + }, + { + "$ref": "#/definitions/ResourceProperties" + } + ], + "required": [ + "keyProperties" + ], + "description": "Properties of the reference data set." + }, + "ReferenceDataSetKeyProperty": { + "properties": { + "name": { + "type": "string", + "description": "The name of the key property." + }, + "type": { + "type": "string", + "description": "The type of the key property.", + "enum": [ + "String", + "Double", + "Bool", + "DateTime" + ], + "x-ms-enum": { + "name": "ReferenceDataKeyPropertyType", + "modelAsString": false + } + } + }, + "description": "A key property for the reference data set. A reference data set can have multiple key properties." + }, + "AccessPolicyCreateOrUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessPolicyResourceProperties" + } + }, + "required": [ + "properties" + ] + }, + "AccessPolicyUpdateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessPolicyMutableProperties" + } + } + }, + "AccessPolicyListResponse": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessPolicyResource" + }, + "description": "Result of the List access policies operation." + } + }, + "description": "The response of the List access policies operation." + }, + "AccessPolicyResource": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessPolicyResourceProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "An access policy is used to grant users and applications access to the environment. Roles are assigned to service principals in Azure Active Directory. These roles define the actions the principal can perform through the Time Series Insights data plane APIs." + }, + "AccessPolicyResourceProperties": { + "properties": { + "principalObjectId": { + "type": "string", + "description": "The objectId of the principal in Azure Active Directory." + }, + "description": { + "type": "string", + "description": "An description of the access policy." + }, + "roles": { + "type": "array", + "items": { + "type": "string", + "description": "A role defining the data plane operations that a principal can perform on a Time Series Insights client.", + "enum": [ + "Reader", + "Contributor" + ], + "x-ms-enum": { + "name": "AccessPolicyRole", + "modelAsString": false + } + }, + "description": "The list of roles the principal is assigned on the environment." + } + } + }, + "AccessPolicyMutableProperties": { + "description": "An object that represents a set of mutable access policy resource properties.", + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "An description of the access policy." + }, + "roles": { + "type": "array", + "items": { + "type": "string", + "description": "A role defining the data plane operations that a principal can perform on a Time Series Insights client.", + "enum": [ + "Reader", + "Contributor" + ], + "x-ms-enum": { + "name": "AccessPolicyRole", + "modelAsString": false + } + }, + "description": "The list of roles the principal is assigned on the environment." + } + } + }, + "CloudError": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Describes a particular API error with an error code and a message." + } + }, + "description": "Contains information about an API error.", + "x-ms-external": true + }, + "CloudErrorBody": { + "type": "object", + "description": "Describes a particular API error with an error code and a message.", + "properties": { + "code": { + "type": "string", + "description": "An error code that describes the error condition more precisely than an HTTP status code. Can be used to programatically handle specific error cases." + }, + "message": { + "type": "string", + "description": "A message that describes the error in detail and provides debugging information." + }, + "target": { + "type": "string", + "description": "The target of the particular error (for example, the name of the property in error)." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Describes a particular API error with an error code and a message." + }, + "description": "Contains nested errors that are related to this error." + } + }, + "x-ms-external": true + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Azure Subscription ID.", + "required": true, + "type": "string" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request." + }, + "ExpandParameter": { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Setting $expand=status will include the status of the internal services of the environment in the Time Series Insights service." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Name of an Azure Resource group." + }, + "EnvironmentNameParameter": { + "name": "environmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Time Series Insights environment associated with the specified resource group.", + "x-ms-parameter-location": "method" + }, + "EventSourceNameParameter": { + "name": "eventSourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Time Series Insights event source associated with the specified environment.", + "x-ms-parameter-location": "method" + }, + "ReferenceDataSetNameParameter": { + "name": "referenceDataSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Time Series Insights reference data set associated with the specified environment.", + "x-ms-parameter-location": "method" + }, + "AccessPolicyNameParameter": { + "name": "accessPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Time Series Insights access policy associated with the specified environment.", + "x-ms-parameter-location": "method" + } + } +} From 345a65a6d54bce243ea4fb1e43101deec249f2e7 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Tue, 21 Aug 2018 09:24:12 -0700 Subject: [PATCH 10/33] Remove .orig files --- .../examples/Operation_List.json.orig | 292 ------------------ .../resource-manager/readme.md.orig | 188 ----------- 2 files changed, 480 deletions(-) delete mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json.orig delete mode 100644 specification/timeseriesinsights/resource-manager/readme.md.orig diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json.orig b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json.orig deleted file mode 100644 index a001bbd9e825..000000000000 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/Operation_List.json.orig +++ /dev/null @@ -1,292 +0,0 @@ -{ - "parameters": { - "api-version": "2016-03-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { -<<<<<<< HEAD - "name": "Microsoft.TimeSeriesInsights/register/action", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Time Series Insights Resource Provider", - "operation": "Registers the Time Series Insights Resource Provider", - "description": "Registers the subscription for the Time Series Insights resource provider and enables the creation of Time Series Insights environments." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/read", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Environment", - "operation": "Read Environment", - "description": "Get the properties of an environment." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/write", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Environment", - "operation": "Create or Update Environment", - "description": "Creates a new environment, or updates an existing environment." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/delete", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Environment", - "operation": "Delete Environment", - "description": "Deletes the environment." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/eventsources/read", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Event Source", - "operation": "Read Event Source", - "description": "Get the properties of an event source." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/eventsources/write", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Event Source", - "operation": "Create or Update Event Source", - "description": "Creates a new event source for an environment, or updates an existing event source." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/eventsources/delete", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Event Source", - "operation": "Delete Event Source", - "description": "Deletes the event source." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/referencedatasets/read", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Reference Data Set", - "operation": "Read Reference Data Set", - "description": "Get the properties of a reference data set." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/referencedatasets/write", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Reference Data Set", - "operation": "Create or Update Reference Data Set", - "description": "Creates a new reference data set for an environment, or updates an existing reference data set." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/referencedatasets/delete", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Reference Data Set", - "operation": "Delete Reference Data Set", - "description": "Deletes the reference data set." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/accesspolicies/read", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Access Policy", - "operation": "Read Access Policy", - "description": "Get the properties of an access policy." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/accesspolicies/write", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Access Policy", - "operation": "Create or Update Access Policy", - "description": "Creates a new access policy for an environment, or updates an existing access policy." - } - }, - { - "name": "Microsoft.TimeSeriesInsights/environments/accesspolicies/delete", - "display": { - "provider": "Microsoft Time Series Insights", - "resource": "Access Policy", - "operation": "Delete Access Policy", - "description": "Deletes the access policy." -======= - "name": "Microsoft.StreamAnalytics/streamingjobs/Start/action", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job", - "operation": "Start Stream Analytics Job", - "description": "Start Stream Analytics Job" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/Stop/action", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job", - "operation": "Stop Stream Analytics Job", - "description": "Stop Stream Analytics Job" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/Read", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job", - "operation": "Read Stream Analytics Job", - "description": "Read Stream Analytics Job" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/Write", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job", - "operation": "Write Stream Analytics Job", - "description": "Write Stream Analytics Job" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/Delete", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job", - "operation": "Delete Stream Analytics Job", - "description": "Delete Stream Analytics Job" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/inputs/Read", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job Input", - "operation": "Read Stream Analytics Job Input", - "description": "Read Stream Analytics Job Input" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/inputs/Write", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job Input", - "operation": "Write Stream Analytics Job Input", - "description": "Write Stream Analytics Job Input" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/inputs/Delete", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job Input", - "operation": "Delete Stream Analytics Job Input", - "description": "Delete Stream Analytics Job Input" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/outputs/Read", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job Output", - "operation": "Read Stream Analytics Job Output", - "description": "Read Stream Analytics Job Output" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/outputs/Write", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job Output", - "operation": "Write Stream Analytics Job Output", - "description": "Write Stream Analytics Job Output" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/outputs/Delete", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job Output", - "operation": "Delete Stream Analytics Job Output", - "description": "Delete Stream Analytics Job Output" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/transformations/Read", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job Transformation", - "operation": "Read Stream Analytics Job Transformation", - "description": "Read Stream Analytics Job Transformation" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/transformations/Write", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job Transformation", - "operation": "Write Stream Analytics Job Transformation", - "description": "Write Stream Analytics Job Transformation" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/transformations/Delete", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "Stream Analytics Job Transformation", - "operation": "Delete Stream Analytics Job Transformation", - "description": "Delete Stream Analytics Job Transformation" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "The metric definition of streamingjobs", - "operation": "Read streamingjobs metric definitions", - "description": "Gets the available metrics for streamingjobs" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "The log definition of streamingjobs", - "operation": "Read streamingjobs log definitions", - "description": "Gets the available logs for streamingjobs" - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "streamingjobs", - "operation": "Read diagnostic setting.", - "description": "Read diagnostic setting." - } - }, - { - "name": "Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Azure Stream Analytics", - "resource": "streamingjobs", - "operation": "Write diagnostic setting.", - "description": "Write diagnostic setting." ->>>>>>> origin/master - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/timeseriesinsights/resource-manager/readme.md.orig b/specification/timeseriesinsights/resource-manager/readme.md.orig deleted file mode 100644 index 98c39be6d1b6..000000000000 --- a/specification/timeseriesinsights/resource-manager/readme.md.orig +++ /dev/null @@ -1,188 +0,0 @@ -# TimeSeriesInsights - -> see https://aka.ms/autorest - -This is the AutoRest configuration file for TimeSeriesInsights. - ---- - -## Getting Started - -To build the SDK for TimeSeriesInsights, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: - -> `autorest` - -To see additional help and options, run: - -> `autorest --help` ---- - -## Configuration - -### Basic Information - -These are the global settings for the TimeSeriesInsights API. - -``` yaml -openapi-type: arm -tag: package-2017-11-15 -``` - -### Tag: package-2017-02-preview - -These settings apply only when `--tag=package-2017-02-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2017-02-preview' -input-file: -- Microsoft.TimeSeriesInsights/preview/2017-02-28-preview/timeseriesinsights.json -``` - -### Tag: package-2017-11-15 - -These settings apply only when `--tag=package-2017-11-15` is specified on the command line. - -``` yaml $(tag) == 'package-2017-11-15' -input-file: -- Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json -``` - -## Suppression - -``` yaml -directive: - - suppress: R3025 # Tracked resource 'XXX' must have a get operation - where: - - $.definitions.EventHubEventSourceResource - - $.definitions.IoTHubEventSourceResource - from: timeseriesinsights.json - reason: These violations are false positives. The EventSources_Get operation returns an EventSourceResource, and both EventHubEventSourceResource and IoTHubEventSourceResource inherit from EventSourceResource. - - - suppress: R3026 # Tracked resource 'XXX' must have patch operation that at least supports the update of tags. It's strongly recommended that the PATCH operation supports update of all mutable properties as well. - where: - - $.definitions.EventHubEventSourceResource - - $.definitions.IoTHubEventSourceResource - from: timeseriesinsights.json - reason: These violations are false positives. The EventSources_Update operation takes an EventSourceUpdateParameters as the body, and EventHubEventSourceUpdateParameters and IoTHubEventSourceUpdateParameters both inherit from EventSourceUpdateParameters. These definitions can be used to update mutable properties of the event source, including the Tags collection. -``` - ---- -# Code Generation - - -## Swagger to SDK - -This section describes what SDK should be generated by the automatic system. -This is not used by Autorest itself. - -``` yaml $(swagger-to-sdk) -swagger-to-sdk: - - repo: azure-sdk-for-go -``` - -## Go - -These settings apply only when `--go` is specified on the command line. - -``` yaml $(go) -go: - license-header: MICROSOFT_APACHE_NO_VERSION - clear-output-folder: true - namespace: timeseriesinsights -``` - -### Go multi-api - -``` yaml $(go) && $(multiapi) -batch: - - tag: package-2017-11-15 - - tag: package-2017-02-preview -``` - -### Tag: package-2017-11-15 and go - -These settings apply only when `--tag=package-2017-11-15 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag)=='package-2017-11-15' && $(go) -output-folder: $(go-sdk-folder)/services/timeseriesinsights/mgmt/2017-11-15/timeseriesinsights -``` - -<<<<<<< HEAD -## Suppression - -``` yaml -directive: - - suppress: R3025 # Tracked resource 'XXX' must have a get operation - where: - - $.definitions.EventHubEventSourceResource - - $.definitions.IoTHubEventSourceResource - from: timeseriesinsights.json - reason: These violations are false positives. The EventSources_Get operation returns an EventSourceResource, and both EventHubEventSourceResource and IoTHubEventSourceResource inherit from EventSourceResource. - - - suppress: R3026 # Tracked resource 'XXX' must have patch operation that at least supports the update of tags. It's strongly recommended that the PATCH operation supports update of all mutable properties as well. - where: - - $.definitions.EventHubEventSourceResource - - $.definitions.IoTHubEventSourceResource - from: timeseriesinsights.json - reason: These violations are false positives. The EventSources_Update operation takes an EventSourceUpdateParameters as the body, and EventHubEventSourceUpdateParameters and IoTHubEventSourceUpdateParameters both inherit from EventSourceUpdateParameters. These definitions can be used to update mutable properties of the event source, including the Tags collection. -``` -======= -### Tag: package-2017-02-preview and go - -These settings apply only when `--tag=package-2017-02-preview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag)=='package-2017-02-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/timeseriesinsights/mgmt/2017-02-28-preview/timeseriesinsights -``` - -## Java - -These settings apply only when `--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.timeseriesinsights -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-timeseriesinsights -``` - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2017-11-15 - - tag: package-2017-02-preview -``` - -### Tag: package-2017-11-15 and java - -These settings apply only when `--tag=package-2017-11-15 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2017-11-15' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.timeseriesinsights.v2017_11_15 - output-folder: $(azure-libraries-for-java-folder)/timeseriesinsights/resource-manager/v2017_11_15 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2017-02-preview and java - -These settings apply only when `--tag=package-2017-02-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2017-02-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.timeseriesinsights.v2017_02_28_preview - output-folder: $(azure-libraries-for-java-folder)/timeseriesinsights/resource-manager/v2017_02_28_preview -regenerate-manager: true -generate-interface: true -``` - - ->>>>>>> upstream/master From 422b05c3769d86747f71cb096392cd7afa74ad07 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Tue, 21 Aug 2018 09:33:36 -0700 Subject: [PATCH 11/33] Fix validation error by removing IoTHub ES from List ES example response --- .../examples/EventSourcesListByEnvironment.json | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesListByEnvironment.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesListByEnvironment.json index 5b5be8e8387d..6c856aaf637a 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesListByEnvironment.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EventSourcesListByEnvironment.json @@ -25,22 +25,6 @@ "provisioningState": "Succeeded", "creationTime": "2017-04-18T19:20:33.2288820Z" } - }, - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es2", - "location": "West US", - "name": "es2", - "type": "Microsoft.TimeSeriesInsights/Environments/EventSources", - "tags": {}, - "kind": "Microsoft.IoTHub", - "properties": { - "eventSourceResourceId": "somePathInArm", - "consumerGroupName": "cgn", - "iotHubName": "iotn", - "keyName": "managementKey", - "provisioningState": "Succeeded", - "creationTime": "2017-04-18T19:20:33.2288820Z" - } } ] } From 55d47febe9adf6cbb0f2360ed967a266e83ee103 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Tue, 21 Aug 2018 09:37:11 -0700 Subject: [PATCH 12/33] Add extra example that was missing from preview spec. --- .../examples/EnvironmentsGetExpandStatus.json | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGetExpandStatus.json diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGetExpandStatus.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGetExpandStatus.json new file mode 100644 index 000000000000..e55389b2c9b0 --- /dev/null +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGetExpandStatus.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "subid", + "environmentName": "env1", + "resourceGroupName": "rg1", + "api-version": "2018-08-15-preview5", + "$expand": "status" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", + "location": "West US", + "name": "env1", + "type": "Microsoft.TimeSeriesInsights/Environments", + "tags": {}, + "properties": { + "dataRetentionTime": "P31D", + "provisioningState": "Succeeded", + "creationTime": "2017-04-18T19:20:33.2288820Z", + "storageLimitExceededBehavior": "PurgeOldData", + "partitionKeyProperties": [ + { + "name": "DeviceId1", + "type": "String" + } + ], + "dataAccessId": "", + "dataAccessFqdn": "", + "status": { + "ingress": { + "state": "Running" + } + } + }, + "sku": { + "name": "S1", + "capacity": 1 + } + } + } + } +} \ No newline at end of file From 97ff060b4d3af4aa77be432f8d7c43108fb741e8 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Tue, 21 Aug 2018 10:15:45 -0700 Subject: [PATCH 13/33] Add long-term environment to resource hierarchy, and update examples. --- .../examples/EnvironmentsCreate.json | 3 + .../examples/EnvironmentsGet.json | 1 + .../examples/EnvironmentsGetExpandStatus.json | 1 + .../EnvironmentsListByResourceGroup.json | 1 + .../EnvironmentsListBySubscription.json | 1 + .../EnvironmentsPatchSkuCapacity.json | 1 + .../timeseriesinsights.json | 323 +++++++++++++++--- 7 files changed, 291 insertions(+), 40 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsCreate.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsCreate.json index b65ceae7128c..6cc42c178c74 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsCreate.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsCreate.json @@ -5,6 +5,7 @@ "environmentName": "env1", "parameters": { "location": "West US", + "kind": "Standard", "sku": { "name": "S1", "capacity": 1 @@ -28,6 +29,7 @@ "location": "West US", "name": "env1", "type": "Microsoft.TimeSeriesInsights/Environments", + "kind": "Standard", "tags": {}, "properties": { "dataRetentionTime": "P31D", @@ -46,6 +48,7 @@ "location": "West US", "name": "env1", "type": "Microsoft.TimeSeriesInsights/Environments", + "kind": "Standard", "tags": {}, "properties": { "dataRetentionTime": "P31D", diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGet.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGet.json index 317f76c27faa..aa5d33f8f7d8 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGet.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGet.json @@ -12,6 +12,7 @@ "location": "West US", "name": "env1", "type": "Microsoft.TimeSeriesInsights/Environments", + "kind": "Standard", "tags": {}, "properties": { "dataRetentionTime": "P31D", diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGetExpandStatus.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGetExpandStatus.json index e55389b2c9b0..7fd36b2a6af8 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGetExpandStatus.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGetExpandStatus.json @@ -13,6 +13,7 @@ "location": "West US", "name": "env1", "type": "Microsoft.TimeSeriesInsights/Environments", + "kind": "Standard", "tags": {}, "properties": { "dataRetentionTime": "P31D", diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListByResourceGroup.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListByResourceGroup.json index c05a54aa6048..a01b5d89a9fb 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListByResourceGroup.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListByResourceGroup.json @@ -13,6 +13,7 @@ "location": "West US", "name": "env1", "type": "Microsoft.TimeSeriesInsights/Environments", + "kind": "Standard", "tags": {}, "properties": { "dataRetentionTime": "P31D", diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListBySubscription.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListBySubscription.json index 714b351efa00..e85e4f3753fd 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListBySubscription.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsListBySubscription.json @@ -12,6 +12,7 @@ "location": "West US", "name": "env1", "type": "Microsoft.TimeSeriesInsights/Environments", + "kind": "Standard", "tags": {}, "properties": { "dataRetentionTime": "P31D", diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsPatchSkuCapacity.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsPatchSkuCapacity.json index bcb165a3c4f2..8e1dd380b48a 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsPatchSkuCapacity.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsPatchSkuCapacity.json @@ -18,6 +18,7 @@ "location": "West US", "name": "env1", "type": "Microsoft.TimeSeriesInsights/Environments", + "kind": "Standard", "tags": {}, "properties": { "dataRetentionTime": "P31D", diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json index 962e6a40f268..0d96ea463c63 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json @@ -1120,7 +1120,7 @@ "location": { "type": "string", "description": "Resource location", - "x-ms-mutability":["read", "create"] + "x-ms-mutability": [ "read", "create" ] }, "tags": { "type": "object", @@ -1180,7 +1180,8 @@ "description": "The name of this SKU.", "enum": [ "S1", - "S2" + "S2", + "L1" ], "x-ms-enum": { "name": "SkuName", @@ -1201,12 +1202,56 @@ ], "description": "The sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." }, + "LongTermStorageConfigurationInput": { + "type": "object", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the storage account that will hold the environment's long term data." + }, + "managementKey": { + "type": "string", + "description": "The value of the management key that grants the Time Series Insights service write access to the storage account. This property is not shown in environment responses." + } + }, + "required": [ + "accountName", + "managementKey" + ], + "description": "The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data." + }, + "LongTermStorageConfigurationOutput": { + "type": "object", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the storage account that will hold the environment's long term data." + } + }, + "required": [ + "accountName" + ], + "description": "The storage configuration provides the non-secret connection details about the customer storage account that is used to store the environment's data." + }, + "LongTermStorageConfigurationMutableProperties": { + "type": "object", + "properties": { + "managementKey": { + "type": "string", + "description": "The value of the management key that grants the Time Series Insights service write access to the storage account. This property is not shown in environment responses." + } + }, + "required": [ + "managementKey" + ], + "description": "The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data." + }, "CreateOrUpdateTrackedResourceProperties": { "properties": { "location": { "type": "string", "description": "The location of the resource.", - "x-ms-mutability":["read", "create"] + "x-ms-mutability": [ "read", "create" ] }, "tags": { "type": "object", @@ -1222,17 +1267,27 @@ "description": "Properties required to create any resource tracked by Azure Resource Manager." }, "EnvironmentCreateOrUpdateParameters": { + "discriminator": "kind", "properties": { + "kind": { + "type": "string", + "description": "The kind of the environment.", + "enum": [ + "Standard", + "LongTerm" + ], + "x-ms-enum": { + "name": "Kind", + "modelAsString": false + } + }, "sku": { "$ref": "#/definitions/Sku", - "description": "The sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EnvironmentCreationProperties" + "description": "The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." } }, "required": [ + "kind", "sku", "properties" ], @@ -1243,27 +1298,90 @@ ], "description": "Parameters supplied to the CreateOrUpdate Environment operation." }, + "StandardEnvironmentCreateOrUpdateParameters": { + "x-ms-discriminator-value": "Standard", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/StandardEnvironmentCreationProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/EnvironmentCreateOrUpdateParameters" + } + ], + "description": "Parameters supplied to the Create or Update Environment operation for a standard environment." + }, + "LongTermEnvironmentCreateOrUpdateParameters": { + "x-ms-discriminator-value": "LongTerm", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LongTermEnvironmentCreationProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/EnvironmentCreateOrUpdateParameters" + } + ], + "description": "Parameters supplied to the Create or Update Environment operation for a long-term environment." + }, "EnvironmentUpdateParameters": { "type": "object", "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "The sku of the environment." - }, "tags": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Key-value pairs of additional properties for the environment." + } + }, + "description": "Parameters supplied to the Update Environment operation." + }, + "StandardEnvironmentUpdateParameters": { + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The sku of the environment." }, "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/EnvironmentMutableProperties", - "description": "Properties of the environment." + "$ref": "#/definitions/StandardEnvironmentMutableProperties", + "description": "Properties of the standard environment." } }, - "description": "Parameters supplied to the Update Environment operation." + "allOf": [ + { + "$ref": "#/definitions/EnvironmentUpdateParameters" + } + ], + "description": "Parameters supplied to the Update Environment operation to update a standard environment." + }, + "LongTermEnvironmentUpdateParameters": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LongTermEnvironmentMutableProperties", + "description": "Properties of the long-term environment." + } + }, + "allOf": [ + { + "$ref": "#/definitions/EnvironmentUpdateParameters" + } + ], + "description": "Parameters supplied to the Update Environment operation to update a long-term environment." }, "EnvironmentListResponse": { "properties": { @@ -1278,24 +1396,73 @@ "description": "The response of the List Environments operation." }, "EnvironmentResource": { + "type": "object", + "discriminator": "kind", "properties": { "sku": { "$ref": "#/definitions/Sku", - "description": "The sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." + "description": "The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EnvironmentResourceProperties" + "kind": { + "type": "string", + "description": "The kind of the environment.", + "enum": [ + "Standard", + "LongTerm" + ] } }, + "required": [ + "kind", + "sku" + ], "allOf": [ + { + "$ref": "#/definitions/Resource" + }, { "$ref": "#/definitions/TrackedResource" } ], "description": "An environment is a set of time-series data avaliable for query, and is the top level Azure Time Series Insights resource." }, - "EnvironmentCreationProperties": { + "StandardEnvironmentResource": { + "x-ms-discriminator-value": "Standard", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/StandardEnvironmentResourceProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/EnvironmentResource" + } + ], + "description": "An environment is a set of time-series data avaliable for query, and is the top level Azure Time Series Insights resource. Standard environments have data retention limits." + }, + "LongTermEnvironmentResource": { + "x-ms-discriminator-value": "LongTerm", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LongTermEnvironmentResourceProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/EnvironmentResource" + } + ], + "description": "An environment is a set of time-series data avaliable for query, and is the top level Azure Time Series Insights resource. LongTerm environments do not have set data retention limits." + }, + "StandardEnvironmentCreationProperties": { "properties": { "dataRetentionTime": { "type": "string", @@ -1314,7 +1481,7 @@ "partitionKeyProperties": { "type": "array", "items": { - "$ref": "#/definitions/PartitionKeyProperty" + "$ref": "#/definitions/TimeSeriesIdProperty" }, "description": "The list of event properties which will be used to partition data in the environment." } @@ -1322,7 +1489,27 @@ "required": [ "dataRetentionTime" ], - "description": "Properties used to create an environment." + "description": "Properties used to create a standard environment." + }, + "LongTermEnvironmentCreationProperties": { + "properties": { + "timeSeriesIdProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesIdProperty" + }, + "description": "The list of event properties which will be used to define the environment's time series id." + }, + "storageConfiguration": { + "$ref": "#/definitions/LongTermStorageConfigurationInput", + "description": "The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data." + } + }, + "required": [ + "timeSeriesIdProperties", + "storageConfiguration" + ], + "description": "Properties used to create a long-term environment." }, "EnvironmentResourceProperties": { "properties": { @@ -1339,12 +1526,23 @@ }, "status": { "$ref": "#/definitions/EnvironmentStatus", - "description": "An object that represents the status of the environment, and its internal state in the Time Series Insights service." + "description": "An object that represents the status of the environment, and its internal state in the Time Series Insights service." } }, "allOf": [ { - "$ref": "#/definitions/EnvironmentCreationProperties" + "$ref": "#/definitions/ResourceProperties" + } + ], + "description": "Properties of the environment." + }, + "StandardEnvironmentResourceProperties": { + "allOf": [ + { + "$ref": "#/definitions/StandardEnvironmentCreationProperties" + }, + { + "$ref": "#/definitions/EnvironmentResourceProperties" }, { "$ref": "#/definitions/ResourceProperties" @@ -1353,10 +1551,38 @@ "required": [ "dataRetentionTime" ], - "description": "Properties of the environment." + "description": "Properties of the standard environment." + }, + "LongTermEnvironmentResourceProperties": { + "properties": { + "timeSeriesIdProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesIdProperty" + }, + "description": "The list of event properties which will be used to define the environment's time series id." + }, + "storageConfiguration": { + "$ref": "#/definitions/LongTermStorageConfigurationOutput", + "description": "The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data." + } + }, + "required": [ + "timeSeriesIdProperties", + "storageConfiguration" + ], + "allOf": [ + { + "$ref": "#/definitions/EnvironmentResourceProperties" + }, + { + "$ref": "#/definitions/ResourceProperties" + } + ], + "description": "Properties of the long-term environment." }, - "EnvironmentMutableProperties": { - "description": "An object that represents a set of mutable environment resource properties.", + "StandardEnvironmentMutableProperties": { + "description": "An object that represents a set of mutable standard environment resource properties.", "type": "object", "properties": { "dataRetentionTime": { @@ -1376,13 +1602,30 @@ "partitionKeyProperties": { "type": "array", "items": { - "$ref": "#/definitions/PartitionKeyProperty" + "$ref": "#/definitions/TimeSeriesIdProperty" }, "description": "The list of event properties which will be used to partition data in the environment." } } }, - "PartitionKeyProperty": { + "LongTermEnvironmentMutableProperties": { + "description": "An object that represents a set of mutable long-term environment resource properties.", + "type": "object", + "properties": { + "storageConfiguration": { + "$ref": "#/definitions/LongTermStorageConfigurationMutableProperties", + "description": "The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data." + }, + "timeSeriesIdProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesIdProperty" + }, + "description": "The list of event properties which will be used to partition data in the environment." + } + } + }, + "TimeSeriesIdProperty": { "properties": { "name": { "type": "string", @@ -1400,7 +1643,7 @@ } } }, - "description": "The structure of the property that a partition key can have. An environment can have multiple such properties." + "description": "The structure of the property that a time series id can have. An environment can have multiple such properties." }, "EnvironmentStatus": { "readOnly": true, @@ -1421,12 +1664,12 @@ "state": { "type": "string", "description": "This string represents the state of ingress operations on an environment. It can be \"Disabled\", \"Ready\", \"Running\", \"Paused\" or \"Unknown\"", - "enum": [ - "Disabled", - "Ready", - "Running", - "Paused", - "Unknown" + "enum": [ + "Disabled", + "Ready", + "Running", + "Paused", + "Unknown" ], "x-ms-enum": { "name": "IngressState", @@ -1443,7 +1686,7 @@ "readOnly": true, "type": "object", "description": "An object that contains the details about an environment's state.", - "properties":{ + "properties": { "code": { "type": "string", "description": "Contains the code that represents the reason of an environment being in a particular state. Can be used to programatically handle specific cases." @@ -1774,7 +2017,7 @@ "type": "object", "properties": { "format": { - "description": "An enum that represents the format of the local timestamp property that needs to be set.", + "description": "An enum that represents the format of the local timestamp property that needs to be set.", "type": "string", "enum": [ "Embedded", @@ -1792,7 +2035,7 @@ "properties": { "propertyName": { "type": "string", - "description": "The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)" + "description": "The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)" } } } @@ -1808,7 +2051,7 @@ }, "localTimestamp": { "$ref": "#/definitions/LocalTimestamp", - "description": "An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events." + "description": "An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events." } } }, From e99ad0b546ea24476b00585ad860de64adb95f49 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Fri, 24 Aug 2018 15:14:03 -0700 Subject: [PATCH 14/33] Switch to model-as-string for enums. Restore EnvironmentResource's inheritance from TrackedResource. --- .../timeseriesinsights.json | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json index 0d96ea463c63..b7d229b15212 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json @@ -1169,7 +1169,7 @@ ], "x-ms-enum": { "name": "ProvisioningState", - "modelAsString": false + "modelAsString": true } }, "Sku": { @@ -1185,13 +1185,13 @@ ], "x-ms-enum": { "name": "SkuName", - "modelAsString": false + "modelAsString": true } }, "capacity": { "format": "int32", "type": "integer", - "description": "The capacity of the sku. This value can be changed to support scale out of environments after they have been created.", + "description": "The capacity of the sku. For standard environments, this value can be changed to support scale out of environments after they have been created.", "minimum": 1, "maximum": 10 } @@ -1200,7 +1200,7 @@ "name", "capacity" ], - "description": "The sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." + "description": "The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." }, "LongTermStorageConfigurationInput": { "type": "object", @@ -1278,7 +1278,7 @@ ], "x-ms-enum": { "name": "Kind", - "modelAsString": false + "modelAsString": true } }, "sku": { @@ -1417,9 +1417,6 @@ "sku" ], "allOf": [ - { - "$ref": "#/definitions/Resource" - }, { "$ref": "#/definitions/TrackedResource" } @@ -1475,7 +1472,7 @@ "enum": [ "PurgeOldData", "PauseIngress" ], "x-ms-enum": { "name": "StorageLimitExceededBehavior", - "modelAsString": false + "modelAsString": true } }, "partitionKeyProperties": { @@ -1596,7 +1593,7 @@ "enum": [ "PurgeOldData", "PauseIngress" ], "x-ms-enum": { "name": "StorageLimitExceededBehavior", - "modelAsString": false + "modelAsString": true } }, "partitionKeyProperties": { @@ -1673,7 +1670,7 @@ ], "x-ms-enum": { "name": "IngressState", - "modelAsString": false + "modelAsString": true } }, "stateDetails": { @@ -1709,7 +1706,7 @@ ], "x-ms-enum": { "name": "Kind", - "modelAsString": false + "modelAsString": true } } }, @@ -2026,7 +2023,7 @@ ], "x-ms-enum": { "name": "LocalTimestampFormat", - "modelAsString": false + "modelAsString": true } }, "timeZoneOffset": { @@ -2155,7 +2152,7 @@ "enum": [ "Ordinal", "OrdinalIgnoreCase" ], "x-ms-enum": { "name": "DataStringComparisonBehavior", - "modelAsString": false + "modelAsString": true } } }, @@ -2195,7 +2192,7 @@ ], "x-ms-enum": { "name": "ReferenceDataKeyPropertyType", - "modelAsString": false + "modelAsString": true } } }, @@ -2267,7 +2264,7 @@ ], "x-ms-enum": { "name": "AccessPolicyRole", - "modelAsString": false + "modelAsString": true } }, "description": "The list of roles the principal is assigned on the environment." @@ -2293,7 +2290,7 @@ ], "x-ms-enum": { "name": "AccessPolicyRole", - "modelAsString": false + "modelAsString": true } }, "description": "The list of roles the principal is assigned on the environment." From 32ffd48d34f8efa60603eb4d9d04fb3fd479a198 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Thu, 6 Sep 2018 17:12:56 -0700 Subject: [PATCH 15/33] Upsate sku description --- .../preview/2018-08-15-preview/timeseriesinsights.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json index b7d229b15212..9051394ea67f 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json @@ -1200,7 +1200,7 @@ "name", "capacity" ], - "description": "The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." + "description": "The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate." }, "LongTermStorageConfigurationInput": { "type": "object", @@ -1283,7 +1283,7 @@ }, "sku": { "$ref": "#/definitions/Sku", - "description": "The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." + "description": "The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate." } }, "required": [ @@ -1401,7 +1401,7 @@ "properties": { "sku": { "$ref": "#/definitions/Sku", - "description": "The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the SLA (in queries-per-minute and total capacity), and the billing rate." + "description": "The sku determines the type of environment, either standard (S1 or S2) or long-term (L1). For standard environments the sku determines the capacity of the environment, the ingress rate, and the billing rate." }, "kind": { "type": "string", From 22ec4227734fddd425ef728a68125dad8981f612 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Wed, 28 Nov 2018 08:24:52 -0800 Subject: [PATCH 16/33] Add new TSI preview api-version to readme.md. --- .../timeseriesinsights/resource-manager/readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/timeseriesinsights/resource-manager/readme.md b/specification/timeseriesinsights/resource-manager/readme.md index 95dee2ea7dd3..7c7d1a7554ca 100644 --- a/specification/timeseriesinsights/resource-manager/readme.md +++ b/specification/timeseriesinsights/resource-manager/readme.md @@ -46,6 +46,15 @@ input-file: - Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json ``` +### Tag: package-2018-08-preview + +These settings apply only when `--tag=package-2018-08-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-08-preview' +input-file: +- Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json +``` + ## Suppression ``` yaml From caad40d027aa20ebaf1566ec6cdcfe165cde43f0 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Wed, 28 Nov 2018 08:46:34 -0800 Subject: [PATCH 17/33] Add suppressions for false-positive linter failures. --- .../timeseriesinsights/resource-manager/readme.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/readme.md b/specification/timeseriesinsights/resource-manager/readme.md index 7c7d1a7554ca..d77ddaf220e9 100644 --- a/specification/timeseriesinsights/resource-manager/readme.md +++ b/specification/timeseriesinsights/resource-manager/readme.md @@ -63,15 +63,19 @@ directive: where: - $.definitions.EventHubEventSourceResource - $.definitions.IoTHubEventSourceResource + - $.definitions.StandardEnvironmentResource + - $.definitions.LongTermEnvironmentResource from: timeseriesinsights.json - reason: These violations are false positives. The EventSources_Get operation returns an EventSourceResource, and both EventHubEventSourceResource and IoTHubEventSourceResource inherit from EventSourceResource. + reason: These violations are false positives. The EventSources_Get operation returns an EventSourceResource, and both EventHubEventSourceResource and IoTHubEventSourceResource inherit from EventSourceResource. Similarly, the Environments_Get operation returns an EnvironmentResource, from which both StandardEnvironmentResource and LongTermEnvironmentResource inherit. - suppress: R3026 # Tracked resource 'XXX' must have patch operation that at least supports the update of tags. It's strongly recommended that the PATCH operation supports update of all mutable properties as well. where: - $.definitions.EventHubEventSourceResource - $.definitions.IoTHubEventSourceResource + - $.definitions.StandardEnvironmentResource + - $.definitions.LongTermEnvironmentResource from: timeseriesinsights.json - reason: These violations are false positives. The EventSources_Update operation takes an EventSourceUpdateParameters as the body, and EventHubEventSourceUpdateParameters and IoTHubEventSourceUpdateParameters both inherit from EventSourceUpdateParameters. These definitions can be used to update mutable properties of the event source, including the Tags collection. + reason: These violations are false positives. The EventSources_Update operation takes an EventSourceUpdateParameters as the body, and EventHubEventSourceUpdateParameters and IoTHubEventSourceUpdateParameters both inherit from EventSourceUpdateParameters. Similarly, the Environments_Update operation takes an EnvironmentUpdateParameters as the body, and both StandardEnvironmentUpdateParameters and LongTermEnvironmentUpdateParameters inherit from EnvironmentUpdateParameters. These definitions can be used to update mutable properties of the event source, including the Tags collection. ``` --- From 1886cea69989751a6990a5c1ca7da81e14afca85 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Wed, 28 Nov 2018 10:48:18 -0800 Subject: [PATCH 18/33] Test suppression failures --- .../timeseriesinsights/resource-manager/readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/readme.md b/specification/timeseriesinsights/resource-manager/readme.md index d77ddaf220e9..acafdc2980d8 100644 --- a/specification/timeseriesinsights/resource-manager/readme.md +++ b/specification/timeseriesinsights/resource-manager/readme.md @@ -61,19 +61,19 @@ input-file: directive: - suppress: R3025 # Tracked resource 'XXX' must have a get operation where: - - $.definitions.EventHubEventSourceResource - - $.definitions.IoTHubEventSourceResource - $.definitions.StandardEnvironmentResource - $.definitions.LongTermEnvironmentResource + - $.definitions.EventHubEventSourceResource + - $.definitions.IoTHubEventSourceResource from: timeseriesinsights.json reason: These violations are false positives. The EventSources_Get operation returns an EventSourceResource, and both EventHubEventSourceResource and IoTHubEventSourceResource inherit from EventSourceResource. Similarly, the Environments_Get operation returns an EnvironmentResource, from which both StandardEnvironmentResource and LongTermEnvironmentResource inherit. - suppress: R3026 # Tracked resource 'XXX' must have patch operation that at least supports the update of tags. It's strongly recommended that the PATCH operation supports update of all mutable properties as well. where: - - $.definitions.EventHubEventSourceResource - - $.definitions.IoTHubEventSourceResource - $.definitions.StandardEnvironmentResource - $.definitions.LongTermEnvironmentResource + - $.definitions.EventHubEventSourceResource + - $.definitions.IoTHubEventSourceResource from: timeseriesinsights.json reason: These violations are false positives. The EventSources_Update operation takes an EventSourceUpdateParameters as the body, and EventHubEventSourceUpdateParameters and IoTHubEventSourceUpdateParameters both inherit from EventSourceUpdateParameters. Similarly, the Environments_Update operation takes an EnvironmentUpdateParameters as the body, and both StandardEnvironmentUpdateParameters and LongTermEnvironmentUpdateParameters inherit from EnvironmentUpdateParameters. These definitions can be used to update mutable properties of the event source, including the Tags collection. ``` From d3516c6ae0a3422d3433162defb708ee56aca178 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Wed, 28 Nov 2018 11:53:15 -0800 Subject: [PATCH 19/33] Adding preview package tag to several other places in readme.md --- .../timeseriesinsights/resource-manager/readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/specification/timeseriesinsights/resource-manager/readme.md b/specification/timeseriesinsights/resource-manager/readme.md index acafdc2980d8..15fc58484ddf 100644 --- a/specification/timeseriesinsights/resource-manager/readme.md +++ b/specification/timeseriesinsights/resource-manager/readme.md @@ -118,6 +118,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-timeseriesinsights batch: - tag: package-2017-11-15 - tag: package-2017-02-preview + - tag: package-2018-08-preview ``` ### Tag: package-2017-11-15 and java @@ -146,4 +147,15 @@ regenerate-manager: true generate-interface: true ``` +### Tag: package-2018-08-preview and java +These settings apply only when `--tag=package-2018-08-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-08-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.timeseriesinsights.v2018_08_15_preview + output-folder: $(azure-libraries-for-java-folder)/timeseriesinsights/resource-manager/v2018_08_15_preview +regenerate-manager: true +generate-interface: true +``` From d3e40d6234bc4e514c94df9f993e4721a7fef6ba Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Wed, 28 Nov 2018 11:55:35 -0800 Subject: [PATCH 20/33] Add preview package to the readme.go.md file --- .../timeseriesinsights/resource-manager/readme.go.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specification/timeseriesinsights/resource-manager/readme.go.md b/specification/timeseriesinsights/resource-manager/readme.go.md index 595b6f9fd345..6a179450c62c 100644 --- a/specification/timeseriesinsights/resource-manager/readme.go.md +++ b/specification/timeseriesinsights/resource-manager/readme.go.md @@ -15,6 +15,7 @@ go: batch: - tag: package-2017-11-15 - tag: package-2017-02-preview + - tag: package-2018-08-preview ``` ### Tag: package-2017-11-15 and go @@ -33,4 +34,13 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2018-08-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-08-15-preview/$(namespace) ``` \ No newline at end of file From 3f293e0e9054346b593ae1e0c6a73d4b78307ac6 Mon Sep 17 00:00:00 2001 From: Eric Dettinger Date: Wed, 28 Nov 2018 13:11:27 -0800 Subject: [PATCH 21/33] Remove invalid required property from EnvironmentCreateOrUpdateParameters --- .../preview/2018-08-15-preview/timeseriesinsights.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json index 9051394ea67f..9e8f3dc6aeda 100644 --- a/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/preview/2018-08-15-preview/timeseriesinsights.json @@ -1288,8 +1288,7 @@ }, "required": [ "kind", - "sku", - "properties" + "sku" ], "allOf": [ { From 6b96d95c155428de4f0a14423ccad0764f145dcb Mon Sep 17 00:00:00 2001 From: Dmitry Denisov Date: Wed, 10 Apr 2019 10:43:02 -0700 Subject: [PATCH 22/33] Initial version of data plane swagger spec for PAYG (Preview) SKU. --- .../examples/AvailabilityGet.json | 34 + .../examples/AvailabilityGetEmpty.json | 11 + .../examples/EventSchemaGet.json | 44 + .../examples/EventSchemaGetEmpty.json | 19 + .../examples/HierarchiesBatchDeleteByIds.json | 22 + .../HierarchiesBatchDeleteByNames.json | 22 + .../examples/HierarchiesBatchGetByIds.json | 46 + .../examples/HierarchiesBatchGetByNames.json | 46 + .../examples/HierarchiesBatchPut.json | 64 + .../examples/HierarchiesGetPage1.json | 25 + .../examples/HierarchiesGetPage2.json | 26 + .../examples/HierarchiesGetPage3.json | 14 + .../examples/InstancesBatchDeleteByIds.json | 36 + .../examples/InstancesBatchDeleteByNames.json | 30 + .../examples/InstancesBatchGetByIds.json | 44 + .../examples/InstancesBatchGetByNames.json | 41 + .../examples/InstancesBatchPut.json | 39 + .../examples/InstancesBatchUpdate.json | 39 + .../examples/InstancesGetPage1.json | 33 + .../examples/InstancesGetPage2.json | 33 + .../examples/InstancesGetPage3.json | 14 + .../examples/InstancesSearchPage1.json | 44 + .../examples/InstancesSearchPage2.json | 45 + .../examples/InstancesSearchPage3.json | 17 + .../examples/InstancesSuggest.json | 30 + .../examples/ModelSettingsGet.json | 22 + .../examples/ModelSettingsUpdateName.json | 25 + .../examples/QueryAggregateSeriesPage1.json | 61 + .../examples/QueryAggregateSeriesPage2.json | 144 ++ .../examples/QueryGetEventsPage1.json | 38 + .../examples/QueryGetEventsPage2.json | 85 + .../examples/QueryGetEventsPage3.json | 58 + .../examples/QueryGetEventsPage4.json | 40 + .../examples/QueryGetSeriesPage1.json | 39 + .../examples/QueryGetSeriesPage2.json | 72 + .../examples/QueryGetSeriesPage3.json | 51 + .../examples/TypesBatchDeleteByIds.json | 22 + .../examples/TypesBatchDeleteByNames.json | 22 + .../examples/TypesBatchGetByIds.json | 60 + .../examples/TypesBatchGetByNames.json | 59 + .../examples/TypesBatchPut.json | 91 + .../examples/TypesGetPage1.json | 29 + .../examples/TypesGetPage2.json | 32 + .../examples/TypesGetPage3.json | 14 + .../timeseriesinsights.json | 2044 +++++++++++++++++ 45 files changed, 3826 insertions(+) create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGet.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGetEmpty.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGet.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGetEmpty.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByIds.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByNames.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByIds.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByNames.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchPut.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage1.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage2.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage3.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByIds.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByNames.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByIds.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByNames.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchPut.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchUpdate.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage1.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage2.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage3.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSuggest.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsGet.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsUpdateName.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByIds.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByNames.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByIds.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByNames.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage1.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage2.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage3.json create mode 100644 specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGet.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGet.json new file mode 100644 index 000000000000..91266ab82b55 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGet.json @@ -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" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGetEmpty.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGetEmpty.json new file mode 100644 index 000000000000..1f1298797b21 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGetEmpty.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" + }, + "responses": { + "200": { + "body": {} + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGet.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGet.json new file mode 100644 index 000000000000..ca36a3cb1160 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGet.json @@ -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" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGetEmpty.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGetEmpty.json new file mode 100644 index 000000000000..744eee2b01a1 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGetEmpty.json @@ -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": [] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByIds.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByIds.json new file mode 100644 index 000000000000..44b365361332 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByIds.json @@ -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 + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByNames.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByNames.json new file mode 100644 index 000000000000..a40829fa36f0 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByNames.json @@ -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 + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByIds.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByIds.json new file mode 100644 index 000000000000..0713105d1c64 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByIds.json @@ -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" + ] + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByNames.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByNames.json new file mode 100644 index 000000000000..225a76b00e55 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByNames.json @@ -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" + ] + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchPut.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchPut.json new file mode 100644 index 000000000000..5b362ff0a512 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchPut.json @@ -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 + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage1.json new file mode 100644 index 000000000000..d6d53c985c2c --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage1.json @@ -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=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage2.json new file mode 100644 index 000000000000..b498dc95ce4a --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage2.json @@ -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=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage3.json new file mode 100644 index 000000000000..996d7c351b96 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage3.json @@ -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": [] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByIds.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByIds.json new file mode 100644 index 000000000000..449171e80616 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByIds.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "delete": { + "timeSeriesIds": [ + [ + "2da181d7-8346-4cf2-bd94-a17742237429", + "T1" + ], + [ + "18672e3d-2beb-4007-9846-042b09ef3c72", + "T2" + ] + ] + } + } + }, + "responses": { + "200": { + "body": { + "delete": [ + null, + { + "code": "InvalidInput", + "message": "Time series instance with ID '[\"18672e3d-2beb-4007-9846-042b09ef3c72\", \"T2\"]' cannot be deleted. There are already ingested events associated with this time series ID.", + "innerError": { + "code": "CannotDeleteInstance" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByNames.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByNames.json new file mode 100644 index 000000000000..bc7700bfe138 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByNames.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "delete": { + "names": [ + "F2W6.GF", + "F1W7.GS1" + ] + } + } + }, + "responses": { + "200": { + "body": { + "delete": [ + null, + { + "code": "InvalidInput", + "message": "Time series instance with ID '[\"18672e3d-2beb-4007-9846-042b09ef3c72\", \"T2\"]' cannot be deleted. There are already ingested events associated with this time series ID.", + "innerError": { + "code": "CannotDeleteInstance" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByIds.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByIds.json new file mode 100644 index 000000000000..48e84689b2c5 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByIds.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "get": { + "timeSeriesIds": [ + [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ] + ] + } + } + }, + "responses": { + "200": { + "body": { + "get": [ + { + "instance": { + "typeId": "9b84e946-7b36-4aa0-9d26-71bf48cb2aff", + "name": "F1W7.GS1", + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "description": "ContosoFarm1W7_GenSpeed1", + "hierarchyIds": [ + "33d72529-dd73-4c31-93d8-ae4e6cb5605d" + ], + "instanceFields": { + "Name": "GeneratorSpeed", + "Plant": "Contoso Plant 1", + "Unit": "W7", + "System": "Generator System" + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByNames.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByNames.json new file mode 100644 index 000000000000..5fddde4198cf --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByNames.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "get": { + "names": [ + "F1W7.GS1" + ] + } + } + }, + "responses": { + "200": { + "body": { + "get": [ + { + "instance": { + "typeId": "9b84e946-7b36-4aa0-9d26-71bf48cb2aff", + "name": "F1W7.GS1", + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "description": "ContosoFarm1W7_GenSpeed1", + "hierarchyIds": [ + "33d72529-dd73-4c31-93d8-ae4e6cb5605d" + ], + "instanceFields": { + "Name": "GeneratorSpeed", + "Plant": "Contoso Plant 1", + "Unit": "W7", + "System": "Generator System" + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchPut.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchPut.json new file mode 100644 index 000000000000..7bd8cfc599a2 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchPut.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "put": [ + { + "typeId": "9b84e946-7b36-4aa0-9d26-71bf48cb2aff", + "name": "F1W7.GS1", + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "description": "ContosoFarm1W7_GenSpeed1", + "hierarchyIds": [ + "33d72529-dd73-4c31-93d8-ae4e6cb5605d" + ], + "instanceFields": { + "Name": "GeneratorSpeed", + "Plant": "Contoso Plant 1", + "Unit": "W7", + "System": "Generator System" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "put": [ + { + "error": null + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchUpdate.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchUpdate.json new file mode 100644 index 000000000000..7136a81c0abd --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "update": [ + { + "typeId": "9b84e946-7b36-4aa0-9d26-71bf48cb2aff", + "name": "F1W7.GS1", + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "description": "ContosoFarm1W7_GenSpeed1", + "hierarchyIds": [ + "33d72529-dd73-4c31-93d8-ae4e6cb5605d" + ], + "instanceFields": { + "Name": "GeneratorSpeed", + "Plant": "Contoso Plant 1", + "Unit": "W7", + "System": "Generator System" + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "update": [ + { + "error": null + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage1.json new file mode 100644 index 000000000000..4268b544571e --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage1.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" + }, + "responses": { + "200": { + "body": { + "instances": [ + { + "typeId": "9b84e946-7b36-4aa0-9d26-71bf48cb2aff", + "name": "F1W7.GS1", + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "description": "ContosoFarm1W7_GenSpeed1", + "hierarchyIds": [ + "33d72529-dd73-4c31-93d8-ae4e6cb5605d" + ], + "instanceFields": { + "Name": "GeneratorSpeed", + "Plant": "Contoso Plant 1", + "Unit": "W7", + "System": "Generator System" + } + } + ], + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage2.json new file mode 100644 index 000000000000..6c4ab015a68e --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage2.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + }, + "responses": { + "200": { + "body": { + "instances": [ + { + "typeId": "9b84e946-7b36-4aa0-9d26-71bf48cb2aff", + "timeSeriesId": [ + "fe984fd0-f632-49ab-990e-3ded259e29b8", + "T1" + ], + "description": "ContosoFarm1W6_GridVoltage3", + "hierarchyIds": [ + "33d72529-dd73-4c31-93d8-ae4e6cb5605d" + ], + "instanceFields": { + "Name": "GridVoltagePhase3", + "Plant": "Contoso Plant 1", + "Unit": "W6", + "System": "Generator System" + } + } + ], + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrASI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage3.json new file mode 100644 index 000000000000..d1acff07ead0 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage3.json @@ -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": { + "instances": [] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json new file mode 100644 index 000000000000..1b1b9c3f1493 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "searchString": "floor 100" + } + }, + "responses": { + "200": { + "body": { + "instances": [ + { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "highlights": { + "timeSeriesIds": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "type": "DefaultType", + "name": "instance1", + "description": "floor 100", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "instanceFieldNames": [ + "state", + "city" + ], + "instanceFieldValues": [ + "California", + "Los Angeles" + ] + } + } + ], + "instancesContinuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json new file mode 100644 index 000000000000..0dc85846337e --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "searchString": "floor 100" + } + }, + "responses": { + "200": { + "body": { + "instances": [ + { + "timeSeriesId": [ + "18672e3d-2beb-4007-9846-042b09ef3c72", + "T1" + ], + "highlights": { + "timeSeriesIds": [ + "18672e3d-2beb-4007-9846-042b09ef3c72", + "T1" + ], + "type": "DefaultType", + "name": "instance1", + "description": "floor 100", + "hierarchyIds": [ + "1643004c-0a84-48a5-80e5-7688c5ae9295" + ], + "instanceFieldNames": [ + "state", + "city" + ], + "instanceFieldValues": [ + "California", + "Los Angeles" + ] + } + } + ], + "instancesContinuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json new file mode 100644 index 000000000000..a6f82d0f7c65 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "searchString": "floor 100" + } + }, + "responses": { + "200": { + "body": { + "instances": [] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSuggest.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSuggest.json new file mode 100644 index 000000000000..d93156890f71 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSuggest.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "searchString": "flo", + "take": 3 + } + }, + "responses": { + "200": { + "body": { + "suggestions": [ + { + "searchString": "floor 100", + "highlightedSearchString": "floor 100" + }, + { + "searchString": "sensor on floor 0", + "highlightedSearchString": "sensor on floor 0" + }, + { + "searchString": "sensor on floor 1", + "highlightedSearchString": "sensor on floor 1" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsGet.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsGet.json new file mode 100644 index 000000000000..f47160dfc95e --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" + }, + "responses": { + "200": { + "body": { + "modelSettings": { + "name": "DefaultModel", + "timeSeriesIdProperties": [ + { + "name": "DeviceId", + "type": "String" + } + ], + "defaultTypeId": "5AB70D71-A8CD-410E-B70D-6F04AB9C132C" + } + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsUpdateName.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsUpdateName.json new file mode 100644 index 000000000000..02900f7952d3 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsUpdateName.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "name": "Thermostats" + } + }, + "responses": { + "200": { + "body": { + "modelSettings": { + "name": "Thermostats", + "timeSeriesIdProperties": [ + { + "name": "DeviceId", + "type": "String" + } + ], + "defaultTypeId": "5AB70D71-A8CD-410E-B70D-6F04AB9C132C" + } + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json new file mode 100644 index 000000000000..f132158ada1b --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "aggregateSeries": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "interval": "PT1M", + "inlineVariables": { + "Count": { + "kind": "aggregate", + "value": null, + "filter": null, + "aggregation": { + "tsx": "count()" + } + }, + "MinTemperature": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "aggregation": { + "tsx": "min($value)" + } + }, + "MaxTemperature": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "aggregation": { + "tsx": "max($value)" + } + } + }, + "projectedVariables": [ + "Count", + "MinTemperature", + "MaxTemperature" + ] + } + } + }, + "responses": { + "200": { + "body": { + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json new file mode 100644 index 000000000000..8cf17b061d70 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "aggregateSeries": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "interval": "PT1M", + "inlineVariables": { + "Count": { + "kind": "aggregate", + "value": null, + "filter": null, + "aggregation": { + "tsx": "count()" + } + }, + "MinTemperature": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "aggregation": { + "tsx": "min($value)" + } + }, + "MaxTemperature": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "aggregation": { + "tsx": "max($value)" + } + } + }, + "projectedVariables": [ + "Count", + "MinTemperature", + "MaxTemperature" + ] + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2016-08-01T00:00:00Z", + "2016-08-01T00:01:00Z", + "2016-08-01T00:02:00Z", + "2016-08-01T00:03:00Z", + "2016-08-01T00:04:00Z", + "2016-08-01T00:05:00Z", + "2016-08-01T00:06:00Z", + "2016-08-01T00:07:00Z", + "2016-08-01T00:08:00Z", + "2016-08-01T00:09:00Z", + "2016-08-01T00:10:00Z" + ], + "properties": [ + { + "name": "Count", + "type": "Double", + "values": [ + 50.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + 60.0, + null + ] + }, + { + "name": "AverageTemperature", + "type": "Double", + "values": [ + 71.25, + 85.0, + 82.5, + 80.0, + 89.166666666666671, + 75.0, + 90.0, + 75.833333333333329, + 85.0, + 82.5, + null + ] + }, + { + "name": "MinTemperature", + "type": "Double", + "values": [ + 65.125, + 77.625, + 65.125, + 72.625, + 65.125, + 67.625, + 82.625, + 65.125, + 77.625, + 65.125, + null + ] + }, + { + "name": "MaxTemperature", + "type": "Double", + "values": [ + 77.375, + 92.375, + 99.875, + 87.375, + 99.875, + 82.375, + 97.375, + 99.875, + 92.375, + 99.875, + null + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json new file mode 100644 index 000000000000..19ed26d0fafe --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "getEvents": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": { + "tsx": "($event.Value.Double != null) OR ($event.Status.String = 'Good')" + }, + "projectedProperties": [ + { + "name": "Building", + "type": "String" + }, + { + "name": "Temperature", + "type": "Double" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json new file mode 100644 index 000000000000..9a25dbeeb13b --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "getEvents": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": { + "tsx": "($event.Value.Double != null) OR ($event.Status.String = 'Good')" + }, + "projectedProperties": [ + { + "name": "Building", + "type": "String" + }, + { + "name": "Temperature", + "type": "Double" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2016-08-01T00:00:10Z", + "2016-08-01T00:00:11Z", + "2016-08-01T00:00:12Z", + "2016-08-01T00:00:13Z", + "2016-08-01T00:00:14Z", + "2016-08-01T00:00:15Z", + "2016-08-01T00:00:16Z", + "2016-08-01T00:00:17Z", + "2016-08-01T00:00:18Z", + "2016-08-01T00:00:19Z" + ], + "properties": [ + { + "name": "Building", + "type": "String", + "values": [ + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium", + "Millenium" + ] + }, + { + "name": "Temperature", + "type": "Double", + "values": [ + 65.125, + 65.375, + 65.625, + 65.875, + 66.125, + 66.375, + 66.625, + 66.875, + 67.125, + 67.375 + ] + } + ], + "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json new file mode 100644 index 000000000000..2a84a3122a49 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=", + "parameters": { + "getEvents": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": { + "tsx": "($event.Value.Double != null) OR ($event.Status.String = 'Good')" + }, + "projectedProperties": [ + { + "name": "Building", + "type": "String" + }, + { + "name": "Temperature", + "type": "Double" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2016-08-01T00:00:20Z" + ], + "properties": [ + { + "name": "Building", + "type": "String", + "values": [ + "Millenium" + ] + }, + { + "name": "Temperature", + "type": "Double", + "values": [ + 67.575 + ] + } + ], + "continuationToken": "aXsic2tpcCI6MTAbCDewidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json new file mode 100644 index 000000000000..0516488f9431 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAbCDewidGFrZSI6MTAwMH0=", + "parameters": { + "getEvents": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": { + "tsx": "($event.Value.Double != null) OR ($event.Status.String = 'Good')" + }, + "projectedProperties": [ + { + "name": "Building", + "type": "String" + }, + { + "name": "Temperature", + "type": "Double" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [], + "properties": [] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json new file mode 100644 index 000000000000..aa3d0288ba2e --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "getSeries": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": null, + "inlineVariables": { + "temperatures": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "aggregation": null + } + }, + "projectedVariables": [ + "temperatures" + ] + } + } + }, + "responses": { + "200": { + "body": { + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json new file mode 100644 index 000000000000..62b85d724a70 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "getSeries": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": null, + "inlineVariables": { + "temperatures": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "aggregation": null + } + }, + "projectedVariables": [ + "temperatures" + ] + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2016-08-01T00:00:10Z", + "2016-08-01T00:00:11Z", + "2016-08-01T00:00:12Z", + "2016-08-01T00:00:13Z", + "2016-08-01T00:00:14Z", + "2016-08-01T00:00:15Z", + "2016-08-01T00:00:16Z", + "2016-08-01T00:00:17Z", + "2016-08-01T00:00:18Z", + "2016-08-01T00:00:19Z", + "2016-08-01T00:00:20Z" + ], + "properties": [ + { + "name": "temperatures", + "type": "Double", + "values": [ + 65.125, + 65.375, + 65.625, + 65.875, + 66.125, + 66.375, + 66.625, + 66.875, + 67.125, + 67.375, + 67.625 + ] + } + ], + "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json new file mode 100644 index 000000000000..f08552357e0d --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=", + "parameters": { + "getSeries": { + "timeSeriesId": [ + "006dfc2d-0324-4937-998c-d16f3b4f1952", + "T1" + ], + "searchSpan": { + "from": "2016-08-01T00:00:00Z", + "to": "2016-08-01T00:16:50Z" + }, + "filter": null, + "inlineVariables": { + "temperatures": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature" + }, + "filter": null, + "aggregation": null + } + }, + "projectedVariables": [ + "temperatures" + ] + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2016-08-01T00:00:21Z" + ], + "properties": [ + { + "name": "temperatures", + "type": "Double", + "values": [ + 67.825 + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByIds.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByIds.json new file mode 100644 index 000000000000..7c59bf94c9e2 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByIds.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "delete": { + "typeIds": [ + "9250f816-faed-44c4-88e6-630e5eefa38b" + ] + } + } + }, + "responses": { + "200": { + "body": { + "delete": [ + null + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByNames.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByNames.json new file mode 100644 index 000000000000..fb8f0e8239e3 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByNames.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "delete": { + "names": [ + "TemperatureSensor" + ] + } + } + }, + "responses": { + "200": { + "body": { + "delete": [ + null + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByIds.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByIds.json new file mode 100644 index 000000000000..77728ec9a6f3 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByIds.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "get": { + "typeIds": [ + "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "c1cb7a33-ed9b-4cf1-9958-f3162fed8ee8" + ], + "names": null + } + } + }, + "responses": { + "200": { + "body": { + "get": [ + { + "timeSeriesType": { + "id": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "name": "DefaultType", + "description": "Default type", + "variables": { + "EventCount": { + "kind": "aggregate", + "filter": null, + "aggregation": { + "tsx": "count()" + } + } + } + }, + "error": null + }, + { + "timeSeriesType": { + "id": "c1cb7a33-ed9b-4cf1-9958-f3162fed8ee8", + "name": "TemperatureSensor", + "description": "This is a temperature sensor.", + "variables": { + "AverageTemperature": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature.Double" + }, + "filter": null, + "aggregation": { + "tsx": "avg($value)" + } + } + } + }, + "error": null + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByNames.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByNames.json new file mode 100644 index 000000000000..29755b58665a --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByNames.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "get": { + "names": [ + "DefaultType", + "TemperatureSensor" + ] + } + } + }, + "responses": { + "200": { + "body": { + "get": [ + { + "timeSeriesType": { + "id": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "name": "DefaultType", + "description": "Default type", + "variables": { + "EventCount": { + "kind": "aggregate", + "filter": null, + "aggregation": { + "tsx": "count()" + } + } + } + }, + "error": null + }, + { + "timeSeriesType": { + "id": "c1cb7a33-ed9b-4cf1-9958-f3162fed8ee8", + "name": "TemperatureSensor", + "description": "This is a temperature sensor.", + "variables": { + "AverageTemperature": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature.Double" + }, + "filter": null, + "aggregation": { + "tsx": "avg($value)" + } + } + } + }, + "error": null + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json new file mode 100644 index 000000000000..7d76ee3b10b2 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "parameters": { + "put": [ + { + "id": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "name": "DefaultType", + "description": "My Default type", + "variables": { + "EventCount": { + "kind": "aggregate", + "value": null, + "filter": null, + "aggregation": { + "tsx": "count()" + } + } + } + }, + { + "id": "c1cb7a33-ed9b-4cf1-9958-f3162fed8ee8", + "name": "OutdoorTemperatureSensor", + "description": "This is an outdoor temperature sensor.", + "variables": { + "AverageTemperature": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature.Double" + }, + "filter": { + "tsx": "$event.Mode.String = 'outdoor'" + }, + "aggregation": { + "tsx": "avg($value)" + } + } + } + } + ] + } + }, + "responses": { + "200": { + "body": { + "put": [ + { + "timeSeriesType": { + "id": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "name": "DefaultType", + "description": "My Default type", + "variables": { + "EventCount": { + "kind": "aggregate", + "filter": null, + "aggregation": { + "tsx": "count()" + } + } + } + }, + "error": null + }, + { + "timeSeriesType": { + "id": "c1cb7a33-ed9b-4cf1-9958-f3162fed8ee8", + "name": "OutdoorTemperatureSensor", + "description": "This is an outdoor temperature sensor.", + "variables": { + "AverageTemperature": { + "kind": "numeric", + "value": { + "tsx": "$event.Temperature.Double" + }, + "filter": { + "tsx": "$event.Mode.String = 'outdoor'" + }, + "aggregation": { + "tsx": "avg($value)" + } + } + } + }, + "error": null + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage1.json new file mode 100644 index 000000000000..692f56ea1e03 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage1.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" + }, + "responses": { + "200": { + "body": { + "types": [ + { + "id": "1be09af9-f089-4d6b-9f0b-48018b5f7393", + "name": "DefaultType", + "description": "My Default type", + "variables": { + "EventCount": { + "kind": "aggregate", + "filter": null, + "aggregation": { + "tsx": "count()" + } + } + } + } + ], + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage2.json new file mode 100644 index 000000000000..89a8c5a73a7b --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage2.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2018-11-01-preview", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" + }, + "responses": { + "200": { + "body": { + "types": [ + { + "id": "9b84e946-7b36-4aa0-9d26-71bf48cb2aff", + "name": "TurbineSensor", + "description": "Wind turbine sensor", + "variables": { + "Value": { + "kind": "numeric", + "value": { + "tsx": "$event.value.Double" + }, + "aggregation": { + "tsx": "avg($value)" + } + } + } + } + ], + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrASI6MTAwMH0=" + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage3.json new file mode 100644 index 000000000000..b42f5396ec94 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage3.json @@ -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": { + "types": [] + } + } + } +} \ No newline at end of file diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json new file mode 100644 index 000000000000..d6f33d0f84a4 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json @@ -0,0 +1,2044 @@ +{ + "swagger": "2.0", + "info": { + "title": "TimeSeriesInsightsClient", + "description": "Time Series Insights environment data plane client for PAYG (Preview L1 SKU) environments.", + "version": "2018-11-01-preview" + }, + "x-ms-parameterized-host": { + "hostTemplate": "{environmentFqdn}", + "useSchemePrefix": true, + "positionInOperation": "first", + "parameters": [ + { + "$ref": "#/parameters/EnvironmentFqdn" + } + ] + }, + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/availability": { + "get": { + "operationId": "GetAvailability", + "description": "Returns the time range and distribution of event count over the event timestamp ($ts). This API can be used to provide landing experience of navigating to the environment.", + "x-ms-examples": { + "AvailabilityGet": { + "$ref": "./examples/AvailabilityGet.json" + }, + "AvailabilityGetEmpty": { + "$ref": "./examples/AvailabilityGetEmpty.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/AvailabilityResponse" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/eventSchema": { + "post": { + "operationId": "GetEventSchema", + "description": "Returns environment event schema for a given search span. Event schema is a set of property definitions. Event schema may not be contain all persisted properties when there are too many properties.", + "x-ms-examples": { + "EventSchemaGet": { + "$ref": "./examples/EventSchemaGet.json" + }, + "EventSchemaGetEmpty": { + "$ref": "./examples/EventSchemaGetEmpty.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GetEventSchemaRequest" + }, + "description": "Parameters to get event schema." + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/EventSchema" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/modelSettings": { + "get": { + "operationId": "GetModelSettings", + "description": "Returns the model settings which includes model display name, Time Series ID properties and default type ID. Every pay-as-you-go environment has a model that is automatically created.", + "x-ms-examples": { + "ModelSettingsGet": { + "$ref": "./examples/ModelSettingsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/ModelSettingsResponse" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + }, + "patch": { + "operationId": "UpdateModelSettings", + "description": "Updates time series model settings - either the model name or default type ID.", + "x-ms-examples": { + "ModelSettingsUpdateName": { + "$ref": "./examples/ModelSettingsUpdateName.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateModelSettingsRequest" + }, + "description": "Model settings update request body." + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation returns new full model settings.", + "schema": { + "$ref": "#/definitions/ModelSettingsResponse" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/query": { + "post": { + "operationId": "ExecuteQueryPaged", + "description": "Executes Time Series Query in pages of results - Get Events, Get Series or Aggregate Series.", + "x-ms-examples": { + "QueryAggregateSeriesPage1": { + "$ref": "./examples/QueryAggregateSeriesPage1.json" + }, + "QueryAggregateSeriesPage2": { + "$ref": "./examples/QueryAggregateSeriesPage2.json" + }, + "QueryGetEventsPage1": { + "$ref": "./examples/QueryGetEventsPage1.json" + }, + "QueryGetEventsPage2": { + "$ref": "./examples/QueryGetEventsPage2.json" + }, + "QueryGetEventsPage3": { + "$ref": "./examples/QueryGetEventsPage3.json" + }, + "QueryGetEventsPage4": { + "$ref": "./examples/QueryGetEventsPage4.json" + }, + "QueryGetSeriesPage1": { + "$ref": "./examples/QueryGetSeriesPage1.json" + }, + "QueryGetSeriesPage2": { + "$ref": "./examples/QueryGetSeriesPage2.json" + }, + "QueryGetSeriesPage3": { + "$ref": "./examples/QueryGetSeriesPage3.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ContinuationToken" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/QueryRequest" + }, + "description": "Time series query request body." + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful query.", + "schema": { + "$ref": "#/definitions/QueryResultPage" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/instances": { + "get": { + "operationId": "GetInstancesPaged", + "description": "Gets time series instances in pages.", + "x-ms-examples": { + "InstancesGetPage1": { + "$ref": "./examples/InstancesGetPage1.json" + }, + "InstancesGetPage2": { + "$ref": "./examples/InstancesGetPage2.json" + }, + "InstancesGetPage3": { + "$ref": "./examples/InstancesGetPage3.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ContinuationToken" + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/GetInstancesPage" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/instances/$batch": { + "post": { + "operationId": "ExecuteInstancesBatchOperation", + "description": "Executes a batch get, create, update, delete operation on multiple time series instances.", + "x-ms-examples": { + "InstancesBatchDeleteByIds": { + "$ref": "./examples/InstancesBatchDeleteByIds.json" + }, + "InstancesBatchDeleteByNames": { + "$ref": "./examples/InstancesBatchDeleteByNames.json" + }, + "InstancesBatchGetByIds": { + "$ref": "./examples/InstancesBatchGetByIds.json" + }, + "InstancesBatchGetByNames": { + "$ref": "./examples/InstancesBatchGetByIds.json" + }, + "InstancesBatchUpdate": { + "$ref": "./examples/InstancesBatchUpdate.json" + }, + "InstancesBatchPut": { + "$ref": "./examples/InstancesBatchPut.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InstancesBatchRequest" + }, + "description": "Time series instances suggest request body." + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/InstancesBatchResponse" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/instances/suggest": { + "post": { + "operationId": "SuggestInstances", + "description": "Suggests keywords based on time series instance attributes to be later used in Search Instances.", + "x-ms-examples": { + "InstancesSuggest": { + "$ref": "./examples/InstancesSuggest.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InstancesSuggestRequest" + }, + "description": "Time series instances suggest request body." + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/InstancesSuggestResponse" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/instances/search": { + "post": { + "operationId": "SearchInstancesPaged", + "description": "Partial list of hits on search for time series instances based on instance attributes.", + "x-ms-examples": { + "InstancesSearchPage1": { + "$ref": "./examples/InstancesSearchPage1.json" + }, + "InstancesSearchPage2": { + "$ref": "./examples/InstancesSearchPage2.json" + }, + "InstancesSearchPage3": { + "$ref": "./examples/InstancesSearchPage3.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ContinuationToken" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InstancesSearchRequest" + }, + "description": "Time series instances search request body." + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful search response.", + "schema": { + "$ref": "#/definitions/InstancesSearchResponsePage" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/types": { + "get": { + "operationId": "GetTypesPaged", + "description": "Gets time series types in pages.", + "x-ms-examples": { + "TypesGetPage1": { + "$ref": "./examples/TypesGetPage1.json" + }, + "TypesGetPage2": { + "$ref": "./examples/TypesGetPage2.json" + }, + "TypesGetPage3": { + "$ref": "./examples/TypesGetPage3.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ContinuationToken" + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/GetTypesPage" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/types/$batch": { + "post": { + "operationId": "ExecuteTypesBatchOperation", + "description": "Executes a batch get, create, update, delete operation on multiple time series types.", + "x-ms-examples": { + "TypesBatchGetByIds": { + "$ref": "./examples/TypesBatchGetByIds.json" + }, + "TypesBatchGetByNames": { + "$ref": "./examples/TypesBatchGetByNames.json" + }, + "TypesBatchPut": { + "$ref": "./examples/TypesBatchPut.json" + }, + "TypesBatchDeleteByIds": { + "$ref": "./examples/TypesBatchDeleteByIds.json" + }, + "TypesBatchDeleteByNames": { + "$ref": "./examples/TypesBatchDeleteByNames.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TypesBatchRequest" + }, + "description": "Time series types batch request body." + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/TypesBatchResponse" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/hierarchies": { + "get": { + "operationId": "GetHierarchiesPaged", + "description": "Returns time series hierarchies definitions in pages.", + "x-ms-examples": { + "HierarchiesGetPage1": { + "$ref": "./examples/HierarchiesGetPage1.json" + }, + "HierarchiesGetPage2": { + "$ref": "./examples/HierarchiesGetPage2.json" + }, + "HierarchiesGetPage3": { + "$ref": "./examples/HierarchiesGetPage3.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ContinuationToken" + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/GetHierarchiesPage" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + }, + "/timeseries/hierarchies/$batch": { + "post": { + "operationId": "ExecuteHierarchiesBatchOperation", + "description": "Executes a batch get, create, update, delete operation on multiple time series hierarchy definitions.", + "x-ms-examples": { + "HierarchiesBatchGetByIds": { + "$ref": "./examples/HierarchiesBatchGetByIds.json" + }, + "HierarchiesBatchGetByNames": { + "$ref": "./examples/HierarchiesBatchGetByNames.json" + }, + "HierarchiesBatchPut": { + "$ref": "./examples/HierarchiesBatchPut.json" + }, + "HierarchiesBatchDeleteByIds": { + "$ref": "./examples/HierarchiesBatchDeleteByIds.json" + }, + "HierarchiesBatchDeleteByNames": { + "$ref": "./examples/HierarchiesBatchDeleteByNames.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/HierarchiesBatchRequest" + }, + "description": "Time series hierarchies batch request body." + }, + { + "$ref": "#/parameters/ClientRequestId" + }, + { + "$ref": "#/parameters/ClientSessionId" + } + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/HierarchiesBatchResponse" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + }, + "default": { + "description": "Unexpected error.", + "schema": { + "$ref": "#/definitions/TsiError" + }, + "headers": { + "x-ms-request-id": { + "x-ms-client-name": "serverRequestId", + "type": "string", + "description": "Server-generated request ID. Can be used to contact support to investigate a request." + } + } + } + } + } + } + }, + "definitions": { + "AvailabilityResponse": { + "description": "Response of Get Availability operation. When environment has no data, availability property is null.", + "type": "object", + "properties": { + "availability": { + "description": "Event availability information when environment contains events. When environment has no data yet, this property is null or not present.", + "readOnly": true, + "$ref": "#/definitions/Availability" + } + } + }, + "Availability": { + "description": "Event availability information when environment contains events. Contains time range of events and approximate distribution of events over time.", + "type": "object", + "properties": { + "range": { + "description": "Minimum and maximum values of event timestamp ($ts) property.", + "$ref": "#/definitions/DateTimeRange", + "readOnly": true + }, + "intervalSize": { + "description": "Interval size for the returned distribution of the events. Returned interval is selected to return a reasonable number of points. All intervals are the same size. On the wire interval is specified in ISO-8601 duration format. One month is always converted to 30 days, and one year is always 365 days. Examples: 1 minute is \"PT1M\", 1 millisecond is \"PT0.001S\". For more information, see https://www.w3.org/TR/xmlschema-2/#duration", + "readOnly": true, + "type": "string", + "format": "duration" + }, + "distribution": { + "additionalProperties": { + "description": "Key value pair where key represents the interval denoted by the date time of the start of the interval and the value is the number of events in that interval.", + "readOnly": true, + "type": "integer", + "format": "int32" + } + } + } + }, + "GetEventSchemaRequest": { + "description": "Request to get the event schema of all events within a given search span.", + "type": "object", + "properties": { + "searchSpan": { + "description": "The range of time on which the query is executed. Cannot be null.", + "$ref": "#/definitions/DateTimeRange" + } + }, + "required": [ + "searchSpan" + ] + }, + "EventSchema": { + "description": "Event schema of all events within a given search span. Event schema is a set of property definitions. Properties are identified by both name and type. Different events can have properties with same name, but different type. Event schema may not be contain all persisted properties when there are too many properties.", + "type": "object", + "properties": { + "properties": { + "description": "A set of property definitions. When environment has no data, the returned array is empty.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/EventProperty" + } + } + } + }, + "QueryRequest": { + "type": "object", + "description": "Request to execute a time series query over events. Exactly one of \"getEvents\", \"getSeries\" or \"aggregateSeries\" must be set.", + "properties": { + "getEvents": { + "description": "Get Events query. Allows to retrieve raw events for a given Time Series ID and search span.", + "$ref": "#/definitions/GetEvents" + }, + "getSeries": { + "description": "Get Series query. Allows to retrieve time series of calculated variable values from events for a given Time Series ID and search span.", + "$ref": "#/definitions/GetSeries" + }, + "aggregateSeries": { + "description": "Aggregate Series query. Allows to calculate an aggregated time series from events for a given Time Series ID and search span.", + "$ref": "#/definitions/AggregateSeries" + } + } + }, + "GetEvents": { + "description": "Get Events query. Allows to retrieve raw events for a given Time Series ID and search span.", + "type": "object", + "properties": { + "timeSeriesId": { + "description": "A single Time Series ID value that uniquely identifies a single time series instance (e.g. a device). Note that a single Time Series ID can be composite if multiple properties are specified as Time Series ID at environment creation time. The position and type of values must match Time Series ID properties specified on the environment and returned by Get Model Setting API. Cannot be null.", + "$ref": "#/definitions/TimeSeriesId" + }, + "searchSpan": { + "description": "The range of time on which the query is executed. Cannot be null.", + "$ref": "#/definitions/DateTimeRange" + }, + "filter": { + "description": "Optional top-level filter for the query which will be applied to all the variables in the query. Example: \"$event.Status.String='Good'\". Can be null.", + "$ref": "#/definitions/Tsx" + }, + "projectedProperties": { + "description": "Projected properties is an array of property names which you want to project. These properties must appear in the events.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "timeSeriesId", + "searchSpan" + ] + }, + "GetSeries": { + "description": "Get Series query. Allows to retrieve time series of calculated variable values from events for a given Time Series ID and search span.", + "type": "object", + "properties": { + "timeSeriesId": { + "description": "A single Time Series ID value that uniquely identifies a single time series instance (e.g. a device). Note that a single Time Series ID can be composite if multiple properties are specified as Time Series ID at environment creation time. The position and type of values must match Time Series ID properties specified on the environment and returned by Get Model Setting API. Cannot be null.", + "$ref": "#/definitions/TimeSeriesId" + }, + "searchSpan": { + "description": "The range of time on which the query is executed. Cannot be null.", + "$ref": "#/definitions/DateTimeRange" + }, + "filter": { + "description": "Top-level filter over the events that restricts the number of events being considered for computation. This filter is AND'ed with filter in each variable. Example: \"$event.Status.String='Good'\". Optional.", + "$ref": "#/definitions/Tsx" + }, + "projectedVariables": { + "description": "Selected variables that needs to be projected in the query result. When it is null or not set, all the variables from inlineVariables and time series type in the model are returned. Can be null.", + "type": "array", + "items": { + "type": "string" + } + }, + "inlineVariables": { + "description": "Optional inline variables apart from the ones already defined in the time series type in the model. When the inline variable name is the same name as in the model, the inline variable definition takes precedence. Can be null.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Variable" + } + } + }, + "required": [ + "timeSeriesId", + "searchSpan" + ] + }, + "AggregateSeries": { + "description": "Aggregate Series query. Allows to calculate an aggregated time series from events for a given Time Series ID and search span.", + "type": "object", + "properties": { + "timeSeriesId": { + "description": "A single Time Series ID value that uniquely identifies a single time series instance (e.g. a device). Note that a single Time Series ID can be composite if multiple properties are specified as Time Series ID at environment creation time. The position and type of values must match Time Series ID properties specified on the environment and returned by Get Model Setting API. Cannot be null.", + "$ref": "#/definitions/TimeSeriesId" + }, + "searchSpan": { + "description": "The range of time on which the query is executed. Cannot be null.", + "$ref": "#/definitions/DateTimeRange" + }, + "filter": { + "description": "Top-level filter over the events that restricts the number of events being considered for computation. This filter is AND'ed with filter in each variable. Example: \"$event.Status.String='Good'\". Optional.", + "$ref": "#/definitions/Tsx" + }, + "interval": { + "type": "string", + "format": "duration", + "description": "Interval size is specified in ISO-8601 duration format. All intervals are the same size. One month is always converted to 30 days, and one year is always 365 days. Examples: 1 minute is \"PT1M\", 1 millisecond is \"PT0.001S\". For more information, see https://www.w3.org/TR/xmlschema-2/#duration" + }, + "projectedVariables": { + "description": "This allows the user to optionally select the variables that needs to be projected. When it is null or not set, all the variables from inlineVariables and model are returned. Can be null.", + "type": "array", + "items": { + "type": "string" + } + }, + "inlineVariables": { + "description": "This allows the user the optionally define inline-variables apart from the ones already defined in the model. When the inline variable names have the same name as the model, the inline variable definition takes precedence. Can be null.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Variable" + } + } + }, + "required": [ + "timeSeriesId", + "searchSpan", + "interval" + ] + }, + "TimeSeriesId": { + "description": "A single Time Series ID value that is an array of primitive values that uniquely identifies a time series instance (e.g. a single device). Note that a single Time Series ID can be composite if multiple properties are specified as Time Series ID at environment creation time. The position and type of values must match Time Series ID properties specified on the environment and returned by Get Model Setting API. Cannot be empty.", + "type": "array", + "items": { + "description": "A single Time Series ID value that is an array of primitive values that uniquely identifies a time series instance (e.g. a single device). Note that a single Time Series ID can be composite if multiple properties are specified as Time Series ID at environment creation time. The position and type of values must match Time Series ID properties specified on the environment and returned by Get Model Setting API. Cannot be empty." + }, + "minItems": 1 + }, + "Tsx": { + "description": "Time series expression (TSX) written as a single string. Examples: \"$event.Status.String='Good'\", \"avg($event.Temperature)\". Refer to the documentation on how to write time series expressions.", + "type": "object", + "properties": { + "tsx": { + "description": "Time series expression (TSX) written as a single string. Examples: \"$event.Status.String='Good'\", \"avg($event.Temperature)\". Refer to the documentation on how to write time series expressions.", + "type": "string" + } + }, + "required": [ + "tsx" + ] + }, + "DateTimeRange": { + "description": "The range of time. Cannot be null or negative.", + "type": "object", + "properties": { + "from": { + "description": "Start timestamp of the time range. Start timestamp is inclusive when used in time series query requests. Events that have this timestamp are included.", + "type": "string", + "format": "date-time" + }, + "to": { + "description": "End timestamp of the time range. End timestamp is exclusive when used in time series query requests. Events that match this timestamp are excluded. Note that end timestamp is inclusive when returned by Get Availability (meaning that there is an event with this exact \"to\" timestamp).", + "type": "string", + "format": "date-time" + } + }, + "required": [ + "from", + "to" + ] + }, + "NumericVariable": { + "description": "Numeric variable represents a single continuous numeric signal that can be reconstructed using interpolation.", + "x-ms-discriminator-value": "numeric", + "allOf": [ + { + "$ref": "#/definitions/Variable" + }, + { + "type": "object", + "properties": { + "value": { + "description": "Value time series expression is used to represent the value of the signal that is going to be aggregated or interpolated. For example, temperature values from the event is represented like this: \"$event.Temperature.Double\".", + "$ref": "#/definitions/Tsx" + }, + "aggregation": { + "description": "Aggregation time series expression when kind is \"numeric\" is used to represent the aggregation that needs to be performed on the $value expression. This requires $value to be specified and can only use $value inside the aggregate functions. For example, aggregation for calculating minimum of the $value is written as: \"min($value)\".", + "$ref": "#/definitions/Tsx" + } + } + } + ], + "required": [ + "kind", + "value", + "aggregation" + ] + }, + "AggregateVariable": { + "description": "Aggregate variable represents any aggregation calculation.", + "x-ms-discriminator-value": "aggregate", + "allOf": [ + { + "$ref": "#/definitions/Variable" + }, + { + "type": "object", + "properties": { + "aggregation": { + "description": "Aggregation time series expression when kind is \"aggregate\" is used to represent the aggregation that needs to be performed directly using event properties like \"$event.Temperature\". For example, aggregation for calculating range of temperature changes can be written as: \"max($event.Temperature)-min($event.Temperature)\".", + "$ref": "#/definitions/Tsx" + } + } + } + ], + "required": [ + "kind", + "aggregation" + ] + }, + "Variable": { + "description": "Variables are named calculations over values from the events. Time Series Insights variable definitions contain formula and computation rules. Variables are stored in the type definition in Time Series Model and can be provided inline via Query APIs to override the stored definition.", + "type": "object", + "discriminator": "kind", + "properties": { + "kind": { + "description": "Allowed \"kind\" values are - \"numeric\" or \"aggregate\". While \"numeric\" allows you to specify value of the reconstructed signal and the expression to aggregate them, the \"aggregate\" kind lets you directly aggregate on the event properties without specifying value.", + "type": "string" + }, + "filter": { + "description": "Filter over the events that restricts the number of events being considered for computation. Example: \"$event.Status.String='Good'\". Optional.", + "$ref": "#/definitions/Tsx" + } + }, + "required": [ + "kind" + ] + }, + "QueryResultPage": { + "description": "A single page of query results. If query has not finished yet, a page will have continuation token set. In this case, to get the next page of results, send the same request again with continuation token parameter. If query has completed, the continuation token is null. It is also possible to get an empty page with only continuation token set when no query results have been computed yet. If paging has completed (continuation token is null), then timestamps and properties may be empty if there is no data to return.", + "allOf": [ + { + "$ref": "#/definitions/PagedResponse" + }, + { + "type": "object", + "properties": { + "timestamps": { + "description": "The timestamps of the values of the time series. If an aggregation over intervals is used, timestamps represent the start of corresponding intervals. If events are retrieved, timestamps are values of timestamp $ts property of events. Can be null if server was unable to fill the page in this request, or can be empty if there are no more objects when continuation token is null.", + "readOnly": true, + "type": "array", + "items": { + "type": "string", + "format": "date-time" + } + }, + "properties": { + "description": "Collection of time series properties and values for each of the timestamps. Can be null if server was unable to fill the page in this request, or can be empty if there are no more objects when continuation token is null.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PropertyValues" + } + } + } + } + ] + }, + "PropertyValues": { + "description": "Values of a single property corresponding to the timestamps. May contain nulls. Type of values matches the type of property.", + "allOf": [ + { + "$ref": "#/definitions/EventProperty" + }, + { + "type": "object", + "properties": { + "values": { + "description": "Values of a single property corresponding to the timestamps. May contain nulls. Type of values matches the type of property.", + "type": "array", + "items": {} + } + } + } + ] + }, + "GetInstancesPage": { + "description": "Partial list of time series instances returned in a single request.", + "allOf": [ + { + "$ref": "#/definitions/PagedResponse" + }, + { + "type": "object", + "properties": { + "instances": { + "description": "Partial list of time series instances returned in a single request. Can be empty if server was unable to fill the page in this request, or there is no more objects when continuation token is null.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesInstance" + } + } + } + } + ] + }, + "TimeSeriesInstance": { + "description": "Time series instances are the time series themselves. In most cases, the deviceId or assetId is the unique identifier of the asset in the environment. Instances have descriptive information associated with them called instance fields. At a minimum, instance fields include hierarchy information. They can also include useful, descriptive data like the manufacturer, operator, or the last service date.", + "type": "object", + "properties": { + "timeSeriesId": { + "description": "Time Series ID that uniquely identifies the instance. It matches Time Series ID properties in an environment. Immmutable, never null.", + "$ref": "#/definitions/TimeSeriesId" + }, + "typeId": { + "description": "This represents the type that this instance belongs to. Never null.", + "type": "string", + "format": "uuid" + }, + "name": { + "description": "Optional name of the instance which is unique in an environment. Names acts as a mutable alias or display name of the time series instance. Mutable, may be null.", + "type": "string" + }, + "description": { + "description": "This optional field contains description about the instance.", + "type": "string" + }, + "hierarchyIds": { + "description": "Set of time series hierarchy IDs that the instance belong to. May be null.", + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "instanceFields": { + "description": "Set of key-value pairs that contain user-defined instance properties. May be null.", + "type": "object", + "additionalProperties": {} + } + }, + "required": [ + "timeSeriesId", + "typeId" + ] + }, + "InstancesBatchRequest": { + "description": "Request to perform a single operation on a batch of instances. Exactly one of \"get\", \"put\", \"update\" or \"delete\" must be set.", + "type": "object", + "properties": { + "get": { + "description": "Time series IDs or names of time series instances to return.", + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesId" + } + }, + "put": { + "description": "Time series instances to be created or updated.", + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesInstance" + } + }, + "update": { + "description": "Time series instances to be updated onlRequest to perform a single operation on a batch of instances. y. If instance does not exist, an error is returned.", + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesInstance" + } + }, + "delete": { + "description": "Time series IDs or names of time series instances to delete.", + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesId" + } + } + } + }, + "InstancesRequestBatchGetOrDelete": { + "description": "Request to get or delete instances by time series IDs or time series names. Exactly one of \"timeSeriesIds\" or \"names\" must be set.", + "type": "object", + "properties": { + "timeSeriesIds": { + "description": "List of time series IDs of the time series instances to return or delete.", + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "names": { + "description": "List of names of the time series instances to return or delete.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "InstancesBatchResponse": { + "description": "Response of a single operation on a batch of instances. Only one of \"get\", \"put\", \"update\" or \"delete\" will be set based on the request.", + "type": "object", + "properties": { + "get": { + "description": "List of instance or error objects corresponding by position to the \"get\" array in the request. Instance object is set when operation is successful and error object is set when operation is unsuccessful.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/InstanceOrError" + } + }, + "put": { + "description": "List of error objects corresponding by position to the \"put\" array in the request. Error object is set when operation is unsuccessful.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/InstanceOrError" + } + }, + "update": { + "description": "List of error objects corresponding by position to the \"update\" array in the request. Instance object is set when operation is successful and error object is set when operation is unsuccessful.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/InstanceOrError" + } + }, + "delete": { + "description": "List of error objects corresponding by position to the \"delete\" array in the request. Null means the instance has been deleted, or did not exist. Error object is set when operation is unsuccessful (e.g. when there are events associated with this time series instance).", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TsiErrorBody" + } + } + } + }, + "InstanceOrError": { + "description": "Result of a batch operation on a particular time series instance. Instance object is set when operation is successful (except put operation) and error object is set when operation is unsuccessful.", + "type": "object", + "properties": { + "instance": { + "description": "Time series instance object - set when the operation is successful (except put operation).", + "readOnly": true, + "$ref": "#/definitions/TimeSeriesInstance" + }, + "error": { + "description": "Error object - set when the operation is unsuccessful.", + "readOnly": true, + "$ref": "#/definitions/TsiErrorBody" + } + } + }, + "GetTypesPage": { + "description": "Partial list of time series types returned in a single request.", + "allOf": [ + { + "$ref": "#/definitions/PagedResponse" + }, + { + "type": "object", + "properties": { + "types": { + "description": "Partial list of time series types returned in a single request. Can be empty if server was unable to fill the page with more types in this request, or there is no more types when continuation token is null.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesType" + } + } + } + } + ] + }, + "TimeSeriesType": { + "description": "Time series type defines variables or formulas for doing computation on events associated with time series instances. Each time series instance is associated with exactly one type. A type can have one or more variables. For example, a time series instance might be of type Temperature Sensor, which consists of the variables avg temperature, min temperature, and max temperature.", + "type": "object", + "properties": { + "id": { + "description": "Unique type identifier that is immutable. Can be null on create or update requests, and then server generates the ID. Not null on get and delete operations.", + "type": "string", + "format": "uuid" + }, + "name": { + "description": "User-given unique name for the type. Mutable, not null.", + "type": "string" + }, + "description": { + "description": "Description of the type. May be null.", + "type": "string" + }, + "variables": { + "description": "Different variables associated with the type. Not empty, not null.", + "additionalProperties": { + "$ref": "#/definitions/Variable" + } + } + }, + "required": [ + "id", + "name", + "variables" + ] + }, + "TypesBatchRequest": { + "description": "Request to perform a single operation on a batch of time series types. Exactly one of \"get\", \"put\" or \"delete\" must be set.", + "type": "object", + "properties": { + "get": { + "description": "Definition of what time series types to return.", + "$ref": "#/definitions/TypesRequestBatchGetOrDelete" + }, + "put": { + "description": "Definition of what time series types to update or create.", + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesType" + } + }, + "delete": { + "description": "Definition of what time series types to delete.", + "$ref": "#/definitions/TypesRequestBatchGetOrDelete" + } + } + }, + "TypesRequestBatchGetOrDelete": { + "description": "Request to get or delete time series types by IDs or type names. Exactly one of \"typeIds\" or \"names\" must be set.", + "type": "object", + "properties": { + "typeIds": { + "description": "List of IDs of time series types to return or delete.", + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "names": { + "description": "List of names of time series types to return or delete.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TypesBatchResponse": { + "description": "Response of a single operation on a batch of time series types. Exactly one of \"get\", \"put\" or \"delete\" will be set.", + "type": "object", + "properties": { + "get": { + "description": "List of types or error objects corresponding by position to the \"get\" array in the request. Type object is set when operation is successful and error object is set when operation is unsuccessful.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesTypeOrError" + } + }, + "put": { + "description": "List of types or error objects corresponding by position to the \"put\" array in the request. Type object is set when operation is successful and error object is set when operation is unsuccessful.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesTypeOrError" + } + }, + "delete": { + "description": "List of error objects corresponding by position to the \"delete\" array in the request - null when the operation is successful.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/TsiErrorBody" + } + } + } + }, + "TimeSeriesTypeOrError": { + "description": "Result of a batch operation on a particular time series type. Type object is set when operation is successful and error object is set when operation is unsuccessful.", + "type": "object", + "properties": { + "timeSeriesType": { + "description": "Time series type object - set when the operation is successful.", + "readOnly": true, + "$ref": "#/definitions/TimeSeriesType" + }, + "error": { + "description": "Error object - set when the operation is unsuccessful.", + "readOnly": true, + "$ref": "#/definitions/TsiErrorBody" + } + } + }, + "GetHierarchiesPage": { + "description": "Partial list of time series hierarchies returned in a single request.", + "allOf": [ + { + "$ref": "#/definitions/PagedResponse" + }, + { + "type": "object", + "properties": { + "hierarchies": { + "description": "Partial list of time series hierarchies returned in a single request. Can be empty if server was unable to fill the page in this request, or there is no more objects when continuation token is null.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesHierarchy" + } + } + } + } + ] + }, + "TimeSeriesHierarchy": { + "description": "Time series hierarchy organizes time series instances into a tree.", + "type": "object", + "properties": { + "id": { + "description": "Unique hierarchy identifier that is a immutable GUID. Can be null while creating hierarchy objects and then server generates the id, not null on get and delete operations.", + "type": "string", + "format": "uuid" + }, + "name": { + "description": "User-given unique name for the type. It is mutable and not null.", + "type": "string" + }, + "source": { + "description": "Definition of how time series hierarchy tree levels are created.", + "type": "object", + "properties": { + "instanceFieldNames": { + "description": "List of instance field names that must be set in all time series instances that belong to this hierarchy. The order of the instance fields defines the levels in the hierarchy.", + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "required": [ + "id", + "name", + "source" + ] + }, + "HierarchiesBatchRequest": { + "description": "Request to perform a single operation on a batch of hierarchies. Exactly one of \"get\", \"put\" or \"delete\" must be set.", + "type": "object", + "properties": { + "get": { + "description": "\"get\" should be set while fetching specific hierarchies either by IDs or names.", + "$ref": "#/definitions/HierarchiesRequestBatchGetDelete" + }, + "put": { + "description": "\"put\" should be set while creating or updating hierarchies.", + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesHierarchy" + } + }, + "delete": { + "description": "\"delete\" should be set while fetching specific hierarchies either by IDs or names.", + "$ref": "#/definitions/HierarchiesRequestBatchGetDelete" + } + } + }, + "HierarchiesRequestBatchGetDelete": { + "description": "Request to get or delete multiple time series hierarchies. Exactly one of \"hierarchyIds\" or \"names\" must be set.", + "type": "object", + "properties": { + "hierarchyIds": { + "description": "List of hierarchy IDs.", + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "names": { + "description": "List of hierarchy names.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "HierarchiesBatchResponse": { + "description": "Response of a single operation on a batch of time series hierarchies. Only one of \"get\", \"put\" or \"delete\" will be set.", + "type": "object", + "properties": { + "get": { + "description": "List of hierarchy or error objects corresponding by position to the \"get\" array in the request. Hierarchy object is set when operation is successful and error object is set when operation is unsuccessful.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesHierarchyOrError" + } + }, + "put": { + "description": "List of hierarchy or error object corresponding by position to the \"put\" array in the request. Hierarchy object is set when operation is successful and error object is set when operation is unsuccessful.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesHierarchyOrError" + } + }, + "delete": { + "description": "List of error objects corresponding by position to the \"delete\" array in the request - null when the operation is successful.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TsiErrorBody" + } + } + } + }, + "TimeSeriesHierarchyOrError": { + "description": "Result of a batch operation on a particular time series hierarchy. Hierarchy is set when operation is successful and error object is set when operation is unsuccessful.", + "type": "object", + "properties": { + "hierarchy": { + "description": "Time series hierarchy object - set when the operation is successful.", + "readOnly": true, + "$ref": "#/definitions/TimeSeriesHierarchy" + }, + "error": { + "description": "Error object - set when the operation is unsuccessful.", + "readOnly": true, + "$ref": "#/definitions/TsiErrorBody" + } + } + }, + "ModelSettingsResponse": { + "description": "Response containing full time series model settings which include model name, Time Series ID properties and default type ID.", + "type": "object", + "properties": { + "modelSettings": { + "description": "Model settings including model name, Time Series ID properties and default type ID.", + "readOnly": true, + "$ref": "#/definitions/ModelSettings" + } + } + }, + "ModelSettings": { + "description": "Time series model settings including model name, Time Series ID properties and default type ID.", + "type": "object", + "properties": { + "name": { + "description": "Time series model display name which is shown in the UX. Examples: \"Temperature Sensors\", \"MyDevices\".", + "readOnly": true, + "type": "string" + }, + "timeSeriesIdProperties": { + "description": "Time series ID properties defined during environment creation.", + "readOnly": true, + "$ref": "#/definitions/TimeSeriesIdProperties" + }, + "defaultTypeId": { + "description": "Default type ID of the model that new time series instances will automatically belong to.", + "readOnly": true, + "type": "string", + "format": "uuid" + } + } + }, + "TimeSeriesIdProperties": { + "description": "Time series ID properties defined during environment creation.", + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesIdProperty" + }, + "minItems": 1 + }, + "TimeSeriesIdProperty": { + "description": "A definition of a single property that can be used in time series ID properties defined during environment creation.", + "type": "object", + "properties": { + "name": { + "description": "The name of the property.", + "readOnly": true, + "type": "string" + }, + "type": { + "description": "The type of the property. Currently, only \"String\" is supported.", + "readOnly": true, + "type": "string", + "enum": [ + "String" + ], + "x-ms-enum": { + "name": "TimeSeriesIdPropertyTypes", + "modelAsString": true + } + } + } + }, + "UpdateModelSettingsRequest": { + "description": "Request to update model settings. One of \"name\" or \"defaultTypeId\" must be set.", + "type": "object", + "properties": { + "name": { + "description": "Model display name which is shown in the UX and mutable by the user. Initial value is \"DefaultModel\".", + "type": "string" + }, + "defaultTypeId": { + "description": "Default type id of the model that new instances will automatically belong to.", + "type": "string", + "format": "uuid" + } + } + }, + "InstancesSearchRequest": { + "description": "Request to search time series instances using a search string.", + "type": "object", + "properties": { + "searchString": { + "description": "Search string for which the instances are required. Must be present, but can be empty string.", + "type": "string" + } + } + }, + "InstancesSearchResponsePage": { + "description": "Single page of time series instance search results.", + "type": "object", + "properties": { + "instances": { + "description": "List of top instances matching the query by relevance. May be empty or null.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/InstanceHit" + } + }, + "instancesContinuationToken": { + "description": "If returned, this means that current results represent a partial result. Continuation token allows to get the next page of results. To get the next page of query results, send the same request with continuation token parameter in \"x-ms-continuation\" HTTP header.", + "readOnly": true, + "type": "string" + } + } + }, + "InstanceHit": { + "description": "Time series instance that is returned by instances search call. Returned instance matched the search string and contains highlighted text to be displayed to the user.", + "type": "object", + "properties": { + "timeSeriesId": { + "description": "Time series ID of the time series instance that matched the search request.", + "readOnly": true, + "$ref": "#/definitions/TimeSeriesId" + }, + "highlights": { + "description": "Highlighted text of time series instance to be displayed to the user. Highlighting inserts and tags in the portions of text that matched the search string. Do not use any of the highlighted properties to do further API calls.", + "readOnly": true, + "type": "object", + "properties": { + "timeSeriesIds": { + "description": "List of highlighted string values of Time Series ID for displaying. Cannot be used to lookup instance.", + "readOnly": true, + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "description": "Highlighed time series type name that this instance belongs to.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Highlighted name of time series instance. May be null.", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Highlighed decription of time series instance. May be null.", + "readOnly": true, + "type": "string" + }, + "hierarchyIds": { + "description": "List of highlighted time series hierarchy IDs that time series instance belongs to. Cannot be used to lookup hierarchies. May be null.", + "readOnly": true, + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "instanceFieldNames": { + "description": "List of highlighted time series instance field names. May be null.", + "readOnly": true, + "type": "array", + "items": { + "type": "string" + } + }, + "instanceFieldValues": { + "description": "List of highlighted time series instance field values. May be null.", + "readOnly": true, + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + }, + "InstancesSuggestRequest": { + "description": "Request to get search string suggestions for time series instances search based on prefix text.", + "type": "object", + "properties": { + "searchString": { + "description": "Search string for which suggestions are required. Empty is allowed, but not null.", + "type": "string" + }, + "take": { + "description": "Maximum number of suggestions expected in the result. Defaults to 10 when not set.", + "type": "integer", + "format": "int32" + } + }, + "required": [ + "searchString" + ] + }, + "InstancesSuggestResponse": { + "description": "Response of getting suggestions for search for time series instances.", + "type": "object", + "properties": { + "suggestions": { + "description": "List of instance suggestions for searching time series models.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/InstancesSearchStringSuggestion" + } + } + } + }, + "InstancesSearchStringSuggestion": { + "description": "Suggested search string to be used for further search for time series instances.", + "type": "object", + "properties": { + "searchString": { + "description": "Suggested search string. Can be used for further search for time series instances.", + "readOnly": true, + "type": "string" + }, + "highlightedSearchString": { + "description": "Highlighted suggested search string to be displayed to the user. Highlighting inserts and tags in the portions of text that matched the search string. Do not use highlighted search string to do further search calls.", + "readOnly": true, + "type": "string" + } + } + }, + "PagedResponse": { + "description": "Partial result that has continuation token to fetch the next partial result.", + "type": "object", + "properties": { + "continuationToken": { + "description": "If returned, this means that current results represent a partial result. Continuation token allows to get the next page of results. To get the next page of query results, send the same request with continuation token parameter in \"x-ms-continuation\" HTTP header.", + "readOnly": true, + "type": "string" + } + } + }, + "EventProperty": { + "description": "Property of an event that is either stored or computed. Properties are identified by both name and type. Different events can have properties with same name, but different type.", + "type": "object", + "properties": { + "name": { + "description": "The name of the property.", + "type": "string" + }, + "type": { + "description": "The type of the property.", + "$ref": "#/definitions/PropertyType" + } + } + }, + "PropertyType": { + "description": "The type of the property that is either stored in events or computed by a calculation.", + "type": "string", + "enum": [ + "Bool", + "DateTime", + "Double", + "String", + "TimeSpan" + ], + "x-ms-enum": { + "name": "PropertyTypes", + "modelAsString": true + } + }, + "TsiError": { + "description": "Information about an API error.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/TsiErrorBody" + } + }, + "x-ms-external": false + }, + "TsiErrorBody": { + "description": "A particular API error with an error code and a message.", + "type": "object", + "properties": { + "code": { + "description": "Language-independent, human-readable string that defines a service-specific error code. This code serves as a more specific indicator for the HTTP error code specified in the response. Can be used to programatically handle specific error cases.", + "readOnly": true, + "type": "string" + }, + "message": { + "description": "Human-readable, language-independent representation of the error. It is intended as an aid to developers and is not suitable for exposure to end users.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Target of the particular error (for example, the name of the property in error). May be null.", + "readOnly": true, + "type": "string" + }, + "innerError": { + "description": "Contains more specific error that narrows down the cause. May be null.", + "readOnly": true, + "$ref": "#/definitions/TsiErrorBody" + }, + "details": { + "description": "Contains additional error information. May be null.", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TsiErrorDetails" + } + } + }, + "additionalProperties": true, + "x-ms-external": false + }, + "TsiErrorDetails": { + "description": "Additional error information.", + "type": "object", + "properties": { + "code": { + "description": "Language-independent, human-readable string that defines a service-specific error code. This code serves as a more specific indicator for the HTTP error code specified in the response. Can be used to programatically handle specific error cases.", + "readOnly": true, + "type": "string" + }, + "message": { + "description": "Human-readable, language-independent representation of the error. It is intended as an aid to developers and is not suitable for exposure to end users.", + "readOnly": true, + "type": "string" + } + }, + "additionalProperties": true, + "x-ms-external": false + } + }, + "parameters": { + "ApiVersion": { + "name": "api-version", + "in": "query", + "required": true, + "default": "2018-11-01-preview", + "type": "string", + "description": "Version of the API to be used with the client request. Currently supported version is \"2018-11-01-preview\"." + }, + "EnvironmentFqdn": { + "name": "environmentFqdn", + "in": "path", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "client", + "description": "Per environment FQDN, for example 10000000-0000-0000-0000-100000000109.env.timeseries.azure.com. You can obtain this domain name from the response of the Get Environments API, Azure portal, or Azure Resource Manager." + }, + "ContinuationToken": { + "name": "x-ms-continuation", + "x-ms-client-name": "continuationToken", + "in": "header", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Continuation token from previous page of results to retrieve the next page of the results in calls that support pagination. To get the first page results, specify null continuation token as parameter value. Returned continuation token is null if all results have been returned, and there is no next page of results." + }, + "ClientRequestId": { + "name": "x-ms-client-request-id", + "x-ms-client-name": "clientRequestId", + "in": "header", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Optional client request ID. Service records this value. Allows the service to trace operation across services, and allows the customer to contact support support regarding a particular request." + }, + "ClientSessionId": { + "name": "x-ms-client-session-id", + "x-ms-client-name": "clientSessionId", + "in": "header", + "required": false, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Optional client session ID. Service records this value. Allows the service to trace a group of related operations across services, and allows the customer to contact support support regarding a particular group of requests." + } + } +} \ No newline at end of file From e33e334ad3f14fad94f65744f944232b1b52deee Mon Sep 17 00:00:00 2001 From: Dmitry Denisov Date: Wed, 10 Apr 2019 16:50:15 -0700 Subject: [PATCH 23/33] Added missing Readme.md --- .../timeseriesinsights/data-plane/Readme.md | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 specification/timeseriesinsights/data-plane/Readme.md diff --git a/specification/timeseriesinsights/data-plane/Readme.md b/specification/timeseriesinsights/data-plane/Readme.md new file mode 100644 index 000000000000..317fdb1ce2f6 --- /dev/null +++ b/specification/timeseriesinsights/data-plane/Readme.md @@ -0,0 +1,51 @@ + +# Azure Time Series Insights Data Plane API + +## Getting Started + +To build the SDKs for Azure Time Series Insights Data Plane API, simply [Install AutoRest](#Installing-AutoRest) and run: +> `Autorest.exe readme.md` + +To see additional help and options, run: +> `Autorest.exe help readme.md` + +### Installing AutoRest + +AutoRest is most easily installed via the Node JS package `autorest`: +> npm install -g autorest + +For other options on installation see [Installing AutoRest](https://aka.ms/installing-autorest.md) on the AutoRest github page. + +## AutoRest configuration + +``` yaml +input-file: + - .\Spec\Microsoft.TimeSeriesInsights\preview\2018-11-01-preview\timeseriesinsights.json + +azure-validator: true +model-validator: true +semantic-validator: true +add-credentials: true +openapi-type: data-plane +license-header: MICROSOFT_MIT +sync-methods: none + +csharp: + namespace: Microsoft.Azure.TimeSeriesInsights + output-folder: Generated/CSharp + +``` + +## Suppression + +``` yaml +directive: + - suppress: R2001 + reason: Adding flattening does not improve the code - array of properties is not supported by flattening. +``` + +``` yaml +directive: + - suppress: R3017 + reason: GUIDs are required to enforce referential constraints and reduce number of updates. +``` From 7363e85c11632fe7302417771d543c8a9649726a Mon Sep 17 00:00:00 2001 From: Dmitry Denisov Date: Wed, 10 Apr 2019 17:09:03 -0700 Subject: [PATCH 24/33] Fixed name of readme --- .../timeseriesinsights/data-plane/{Readme.md => readme.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/timeseriesinsights/data-plane/{Readme.md => readme.md} (100%) diff --git a/specification/timeseriesinsights/data-plane/Readme.md b/specification/timeseriesinsights/data-plane/readme.md similarity index 100% rename from specification/timeseriesinsights/data-plane/Readme.md rename to specification/timeseriesinsights/data-plane/readme.md From 0b5c4e4c3f30f92eaa4697feb701cac1873b5a17 Mon Sep 17 00:00:00 2001 From: Dmitry Denisov Date: Wed, 10 Apr 2019 17:24:50 -0700 Subject: [PATCH 25/33] Fixed path to swagger json --- specification/timeseriesinsights/data-plane/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/timeseriesinsights/data-plane/readme.md b/specification/timeseriesinsights/data-plane/readme.md index 317fdb1ce2f6..ab0168a0f4ed 100644 --- a/specification/timeseriesinsights/data-plane/readme.md +++ b/specification/timeseriesinsights/data-plane/readme.md @@ -20,7 +20,7 @@ For other options on installation see [Installing AutoRest](https://aka.ms/insta ``` yaml input-file: - - .\Spec\Microsoft.TimeSeriesInsights\preview\2018-11-01-preview\timeseriesinsights.json + - Microsoft.TimeSeriesInsights\preview\2018-11-01-preview\timeseriesinsights.json azure-validator: true model-validator: true From 4e4d2f105e00285f4cbb813ecbc722537a8c2bff Mon Sep 17 00:00:00 2001 From: Dmitry Denisov Date: Wed, 10 Apr 2019 19:25:00 -0700 Subject: [PATCH 26/33] Attempt to fix readme --- .../timeseriesinsights/data-plane/readme.md | 63 ++++++++++++------- 1 file changed, 42 insertions(+), 21 deletions(-) diff --git a/specification/timeseriesinsights/data-plane/readme.md b/specification/timeseriesinsights/data-plane/readme.md index ab0168a0f4ed..79a8f968d65a 100644 --- a/specification/timeseriesinsights/data-plane/readme.md +++ b/specification/timeseriesinsights/data-plane/readme.md @@ -1,39 +1,43 @@ -# Azure Time Series Insights Data Plane API +# TimeSeriesInsights -## Getting Started +> see https://aka.ms/autorest -To build the SDKs for Azure Time Series Insights Data Plane API, simply [Install AutoRest](#Installing-AutoRest) and run: -> `Autorest.exe readme.md` +This is the AutoRest configuration file for Azure Time Series Insights Data Plane API. + +--- + +## Getting Started + +To build the SDK for Azure Time Series Insights Data Plane API, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` To see additional help and options, run: -> `Autorest.exe help readme.md` -### Installing AutoRest +> `autorest --help` +--- -AutoRest is most easily installed via the Node JS package `autorest`: -> npm install -g autorest +## Configuration -For other options on installation see [Installing AutoRest](https://aka.ms/installing-autorest.md) on the AutoRest github page. +### Basic Information -## AutoRest configuration +These are the global settings for Azure Time Series Insights Data Plane API. ``` yaml -input-file: - - Microsoft.TimeSeriesInsights\preview\2018-11-01-preview\timeseriesinsights.json - -azure-validator: true -model-validator: true -semantic-validator: true -add-credentials: true openapi-type: data-plane +add-credentials: true license-header: MICROSOFT_MIT -sync-methods: none +tag: package-2018-11-01-preview +``` -csharp: - namespace: Microsoft.Azure.TimeSeriesInsights - output-folder: Generated/CSharp +### Tag: package-2018-11-01-preview + +These settings apply only when `--tag=package-2018-11-01-preview` is specified on the command line. +``` yaml $(tag) == 'package-2018-11-01-preview' +input-file: +- Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json ``` ## Suppression @@ -49,3 +53,20 @@ directive: - suppress: R3017 reason: GUIDs are required to enforce referential constraints and reduce number of updates. ``` + +--- +# Code Generation + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + sync-methods: none + azure-arm: false + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Azure.TimeSeriesInsights + output-folder: $(csharp-sdks-folder)/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated +``` \ No newline at end of file From a9279f9d57ea1c7f8ddd1125e0ff67cd5af00b92 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Thu, 11 Apr 2019 09:01:45 -0700 Subject: [PATCH 27/33] Apply suggestions from code review Co-Authored-By: dmdenmsft --- .../2018-11-01-preview/timeseriesinsights.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json index d6f33d0f84a4..ea2e074d1e5e 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json @@ -1243,7 +1243,7 @@ "type": "object", "properties": { "timeSeriesId": { - "description": "Time Series ID that uniquely identifies the instance. It matches Time Series ID properties in an environment. Immmutable, never null.", + "description": "Time Series ID that uniquely identifies the instance. It matches Time Series ID properties in an environment. Immutable, never null.", "$ref": "#/definitions/TimeSeriesId" }, "typeId": { @@ -1799,7 +1799,7 @@ } }, "type": { - "description": "Highlighed time series type name that this instance belongs to.", + "description": "Highlighted time series type name that this instance belongs to.", "readOnly": true, "type": "string" }, @@ -1809,7 +1809,7 @@ "type": "string" }, "description": { - "description": "Highlighed decription of time series instance. May be null.", + "description": "Highlighted description of time series instance. May be null.", "readOnly": true, "type": "string" }, @@ -1945,7 +1945,7 @@ "type": "object", "properties": { "code": { - "description": "Language-independent, human-readable string that defines a service-specific error code. This code serves as a more specific indicator for the HTTP error code specified in the response. Can be used to programatically handle specific error cases.", + "description": "Language-independent, human-readable string that defines a service-specific error code. This code serves as a more specific indicator for the HTTP error code specified in the response. Can be used to programmatically handle specific error cases.", "readOnly": true, "type": "string" }, @@ -1981,7 +1981,7 @@ "type": "object", "properties": { "code": { - "description": "Language-independent, human-readable string that defines a service-specific error code. This code serves as a more specific indicator for the HTTP error code specified in the response. Can be used to programatically handle specific error cases.", + "description": "Language-independent, human-readable string that defines a service-specific error code. This code serves as a more specific indicator for the HTTP error code specified in the response. Can be used to programmatically handle specific error cases.", "readOnly": true, "type": "string" }, @@ -2041,4 +2041,4 @@ "description": "Optional client session ID. Service records this value. Allows the service to trace a group of related operations across services, and allows the customer to contact support support regarding a particular group of requests." } } -} \ No newline at end of file +} From 5796016184d9265204db641c1350c7a981071e68 Mon Sep 17 00:00:00 2001 From: Karthik Subramanian Date: Fri, 12 Apr 2019 13:30:14 -0700 Subject: [PATCH 28/33] Update timeseriesinsights.json --- .../preview/2018-11-01-preview/timeseriesinsights.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json index ea2e074d1e5e..db4c3abb8738 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json @@ -1575,7 +1575,6 @@ } }, "required": [ - "id", "name", "source" ] From 9075f6449dcc400fa1ecd677adbe995891a0c007 Mon Sep 17 00:00:00 2001 From: Karthik Subramanian Date: Fri, 12 Apr 2019 13:43:21 -0700 Subject: [PATCH 29/33] Update timeseriesinsights.json --- .../preview/2018-11-01-preview/timeseriesinsights.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json index db4c3abb8738..d45fafb99781 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json @@ -1433,7 +1433,6 @@ } }, "required": [ - "id", "name", "variables" ] From b6d50374343628b173f45c1ed295af3bfc86bdf7 Mon Sep 17 00:00:00 2001 From: Dmitry Denisov Date: Fri, 12 Apr 2019 13:47:48 -0700 Subject: [PATCH 30/33] Added link to oav issue --- specification/timeseriesinsights/data-plane/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/timeseriesinsights/data-plane/readme.md b/specification/timeseriesinsights/data-plane/readme.md index 79a8f968d65a..20a88caf0445 100644 --- a/specification/timeseriesinsights/data-plane/readme.md +++ b/specification/timeseriesinsights/data-plane/readme.md @@ -45,7 +45,7 @@ input-file: ``` yaml directive: - suppress: R2001 - reason: Adding flattening does not improve the code - array of properties is not supported by flattening. + reason: Adding flattening does not improve the code - array of properties is not supported by flattening. See https://github.com/Azure/oav/issues/416 ``` ``` yaml @@ -69,4 +69,4 @@ csharp: license-header: MICROSOFT_MIT_NO_VERSION namespace: Microsoft.Azure.TimeSeriesInsights output-folder: $(csharp-sdks-folder)/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated -``` \ No newline at end of file +``` From 8309ef2d56f08f5ca34da094247c25b4eff4745b Mon Sep 17 00:00:00 2001 From: Karthik Subramanian Date: Wed, 17 Apr 2019 10:48:34 -0700 Subject: [PATCH 31/33] bug fix - get events payload projected properties to take in list of EventProperty and not string. --- .../preview/2018-11-01-preview/timeseriesinsights.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json index d45fafb99781..d8af8f4125e4 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json @@ -971,10 +971,10 @@ "$ref": "#/definitions/Tsx" }, "projectedProperties": { - "description": "Projected properties is an array of property names which you want to project. These properties must appear in the events.", + "description": "Projected properties is an array of properties which you want to project. These properties must appear in the events; otherwise, they are not returned.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/EventProperty" } } }, From e36d5db2c5d38e292ce2714be27fd214fc6366b6 Mon Sep 17 00:00:00 2001 From: Karthik Subramanian Date: Thu, 25 Apr 2019 15:16:02 -0700 Subject: [PATCH 32/33] Fixed inconsistencies between examples and spec. --- .../examples/QueryAggregateSeriesPage1.json | 1 - .../examples/QueryAggregateSeriesPage2.json | 1 - .../examples/QueryGetSeriesPage1.json | 4 +++- .../examples/QueryGetSeriesPage2.json | 4 +++- .../examples/QueryGetSeriesPage3.json | 4 +++- .../2018-11-01-preview/examples/TypesBatchPut.json | 1 - .../preview/2018-11-01-preview/timeseriesinsights.json | 10 ++-------- 7 files changed, 11 insertions(+), 14 deletions(-) diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json index 7b670c4d1eac..ad812dab5831 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json @@ -16,7 +16,6 @@ "inlineVariables": { "Count": { "kind": "aggregate", - "value": null, "filter": null, "aggregation": { "tsx": "count()" diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json index cd530102197b..44bb3630dbb7 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json @@ -17,7 +17,6 @@ "inlineVariables": { "Count": { "kind": "aggregate", - "value": null, "filter": null, "aggregation": { "tsx": "count()" diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json index ca165a59278c..48589c3c3f6d 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json @@ -20,7 +20,9 @@ "tsx": "$event.Temperature" }, "filter": null, - "aggregation": null + "aggregation": { + "tsx": "avg($value)" + } } }, "projectedVariables": [ diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json index 2f9b420ab300..a39dc39c17a2 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json @@ -21,7 +21,9 @@ "tsx": "$event.Temperature" }, "filter": null, - "aggregation": null + "aggregation": { + "tsx": "avg($value)" + } } }, "projectedVariables": [ diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json index 03d5dece37be..9fa16bd2e2a3 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json @@ -21,7 +21,9 @@ "tsx": "$event.Temperature" }, "filter": null, - "aggregation": null + "aggregation": { + "tsx": "avg($value)" + } } }, "projectedVariables": [ diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json index 82e75627501d..4c7fc49f7a24 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json @@ -11,7 +11,6 @@ "variables": { "EventCount": { "kind": "aggregate", - "value": null, "filter": null, "aggregation": { "tsx": "count()" diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json index d8af8f4125e4..bd4d33244f6d 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json @@ -1284,10 +1284,7 @@ "properties": { "get": { "description": "Time series IDs or names of time series instances to return.", - "type": "array", - "items": { - "$ref": "#/definitions/TimeSeriesId" - } + "$ref": "#/definitions/InstancesRequestBatchGetOrDelete" }, "put": { "description": "Time series instances to be created or updated.", @@ -1305,10 +1302,7 @@ }, "delete": { "description": "Time series IDs or names of time series instances to delete.", - "type": "array", - "items": { - "$ref": "#/definitions/TimeSeriesId" - } + "$ref": "#/definitions/InstancesRequestBatchGetOrDelete" } } }, From 6d450a9b2e807bc5ffebe8e5bf364f53df743b07 Mon Sep 17 00:00:00 2001 From: Karthik Subramanian Date: Thu, 25 Apr 2019 16:39:06 -0700 Subject: [PATCH 33/33] Fixed bug in spec specifying TSID array. --- .../preview/2018-11-01-preview/timeseriesinsights.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json index bd4d33244f6d..0b574aba4bd8 100644 --- a/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json +++ b/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json @@ -1314,8 +1314,7 @@ "description": "List of time series IDs of the time series instances to return or delete.", "type": "array", "items": { - "type": "string", - "format": "uuid" + "$ref": "#/definitions/TimeSeriesId" } }, "names": {