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 1/2] 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 2/2] 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,