Skip to content

Commit 6afef06

Browse files
authored
Merge pull request Azure#5 from TimeSeriesInsights/EnvironmentInfo-PartitionKeyProperty
Adding partitionKeyProperty to EnvironmentCreate and EnvironmentGet request.
2 parents 6098a47 + 2123814 commit 6afef06

4 files changed

Lines changed: 54 additions & 2 deletions

File tree

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsCreate.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
"capacity": 1
1111
},
1212
"properties": {
13-
"dataRetentionTime": "P31D"
13+
"dataRetentionTime": "P31D",
14+
"partitionKeyProperties": [
15+
{
16+
"name": "DeviceId1",
17+
"type": "String"
18+
}
19+
]
1420
}
1521
},
1622
"api-version": "2017-11-15"

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGet.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
"creationTime": "2017-04-18T19:20:33.2288820Z",
2020
"storageLimitExceededBehavior": "PurgeOldData",
2121
"dataAccessId": "<dataAccessId>",
22-
"dataAccessFqdn": "<dataAccessIdFqdn>"
22+
"dataAccessFqdn": "<dataAccessIdFqdn>",
23+
"partitionKeyProperties": [
24+
{
25+
"name": "DeviceId1",
26+
"type": "String"
27+
}
28+
]
2329
},
2430
"sku": {
2531
"name": "S1",

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/examples/EnvironmentsGetExpandStatus.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"provisioningState": "Succeeded",
2020
"creationTime": "2017-04-18T19:20:33.2288820Z",
2121
"storageLimitExceededBehavior": "PurgeOldData",
22+
"partitionKeyProperties": [
23+
{
24+
"name": "DeviceId1",
25+
"type": "String"
26+
}
27+
],
2228
"dataAccessId": "<dataAccessId>",
2329
"dataAccessFqdn": "<dataAccessIdFqdn>",
2430
"status": {

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2017-11-15/timeseriesinsights.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,13 @@
13101310
"name": "StorageLimitExceededBehavior",
13111311
"modelAsString": false
13121312
}
1313+
},
1314+
"partitionKeyProperties": {
1315+
"type": "array",
1316+
"items": {
1317+
"$ref": "#/definitions/PartitionKeyProperty"
1318+
},
1319+
"description": "The list of partition keys according to which the data in the environment will be ordered."
13131320
}
13141321
},
13151322
"required": [
@@ -1365,9 +1372,36 @@
13651372
"name": "StorageLimitExceededBehavior",
13661373
"modelAsString": false
13671374
}
1375+
},
1376+
"partitionKeyProperties": {
1377+
"type": "array",
1378+
"items": {
1379+
"$ref": "#/definitions/PartitionKeyProperty"
1380+
},
1381+
"description": "The list of event properties which will be used to partition data in the environment."
13681382
}
13691383
}
13701384
},
1385+
"PartitionKeyProperty": {
1386+
"properties": {
1387+
"name": {
1388+
"type": "string",
1389+
"description": "The name of the property."
1390+
},
1391+
"type": {
1392+
"type": "string",
1393+
"description": "The type of the property.",
1394+
"enum": [
1395+
"String"
1396+
],
1397+
"x-ms-enum": {
1398+
"name": "PropertyType",
1399+
"modelAsString": false
1400+
}
1401+
}
1402+
},
1403+
"description": "The structure of the property that a partition key can have. An environment can have multiple such properties."
1404+
},
13711405
"EnvironmentStatus": {
13721406
"readOnly": true,
13731407
"type": "object",

0 commit comments

Comments
 (0)