Skip to content

Commit

Permalink
Merge pull request #5 from TimeSeriesInsights/EnvironmentInfo-Partiti…
Browse files Browse the repository at this point in the history
…onKeyProperty

Adding partitionKeyProperty to EnvironmentCreate and EnvironmentGet request.
  • Loading branch information
yeskarthik authored Apr 13, 2018
2 parents 6098a47 + 2123814 commit 6afef06
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
"capacity": 1
},
"properties": {
"dataRetentionTime": "P31D"
"dataRetentionTime": "P31D",
"partitionKeyProperties": [
{
"name": "DeviceId1",
"type": "String"
}
]
}
},
"api-version": "2017-11-15"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
"creationTime": "2017-04-18T19:20:33.2288820Z",
"storageLimitExceededBehavior": "PurgeOldData",
"dataAccessId": "<dataAccessId>",
"dataAccessFqdn": "<dataAccessIdFqdn>"
"dataAccessFqdn": "<dataAccessIdFqdn>",
"partitionKeyProperties": [
{
"name": "DeviceId1",
"type": "String"
}
]
},
"sku": {
"name": "S1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z",
"storageLimitExceededBehavior": "PurgeOldData",
"partitionKeyProperties": [
{
"name": "DeviceId1",
"type": "String"
}
],
"dataAccessId": "<dataAccessId>",
"dataAccessFqdn": "<dataAccessIdFqdn>",
"status": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,13 @@
"name": "StorageLimitExceededBehavior",
"modelAsString": false
}
},
"partitionKeyProperties": {
"type": "array",
"items": {
"$ref": "#/definitions/PartitionKeyProperty"
},
"description": "The list of partition keys according to which the data in the environment will be ordered."
}
},
"required": [
Expand Down Expand Up @@ -1365,9 +1372,36 @@
"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": false
}
}
},
"description": "The structure of the property that a partition key can have. An environment can have multiple such properties."
},
"EnvironmentStatus": {
"readOnly": true,
"type": "object",
Expand Down

0 comments on commit 6afef06

Please sign in to comment.