Skip to content

Commit

Permalink
Microsoft.TimeSeriesInsights: Fix swagger correctness issues (Azure#1…
Browse files Browse the repository at this point in the history
…4469)

* Fix swagger correctness issues

* Fix casing in localTimestamp

* Fix localTimeStamp property

* Fix lintdiff errors
  • Loading branch information
k-rush authored and mkarmark committed Jul 20, 2021
1 parent b9a9dc9 commit 55cb1c9
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"keyName": "managementKey",
"sharedAccessKey": "someSecretvalue",
"timestampPropertyName": "someTimestampProperty",
"localTimestamp": {
"format": "TimeSpan",
"timeZoneOffset": {
"propertyName": "someEventPropertyName"
}
},
"ingressStartAt": {
"type": "EarliestAvailable"
}
Expand All @@ -39,6 +45,12 @@
"keyName": "managementKey",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z",
"localTimestamp": {
"format": "TimeSpan",
"timeZoneOffset": {
"propertyName": "someEventPropertyName"
}
},
"ingressStartAt": {
"type": "EarliestAvailable"
}
Expand All @@ -61,6 +73,12 @@
"keyName": "managementKey",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z",
"localTimestamp": {
"format": "TimeSpan",
"timeZoneOffset": {
"propertyName": "someEventPropertyName"
}
},
"ingressStartAt": {
"type": "EarliestAvailable"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
"keyName": "managementKey",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z",
"localTimestamp": {
"format": "TimeSpan",
"timeZoneOffset": {
"propertyName": "someEventPropertyName"
}
},
"ingressStartAt": {
"type": "EarliestAvailable"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
"keyName": "managementKey",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z",
"localTimestamp": {
"format": "TimeSpan",
"timeZoneOffset": {
"propertyName": "someEventPropertyName"
}
},
"ingressStartAt": {
"type": "EarliestAvailable"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z",
"timestampPropertyName": "someOtherTimestampProperty",
"localTimestamp": {
"format": "TimeSpan",
"timeZoneOffset": {
"propertyName": "someEventPropertyName"
}
},
"ingressStartAt": {
"type": "EarliestAvailable"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,99 @@
"readOnly": true
}
}
},
"origin": {
"title": "The intended executor of the operation.",
"type": "string"
},
"properties": {
"title": "Properties of the operation, including metric specifications.",
"type": "object",
"x-ms-client-flatten": true,
"x-ms-client-name": "OperationProperties",
"$ref": "#/definitions/OperationProperties"
}
}
},
"OperationProperties": {
"description": "Properties of operation, include metric specifications.",
"type": "object",
"properties": {
"serviceSpecification": {
"$ref": "#/definitions/ServiceSpecification",
"description": "One property of operation, include metric specifications."
}
}
},
"ServiceSpecification": {
"description": "One property of operation, include metric specifications.",
"type": "object",
"properties": {
"metricSpecifications": {
"description": "Metric specifications of operation.",
"type": "array",
"items": {
"$ref": "#/definitions/MetricSpecification"
}
}
}
},
"MetricSpecification": {
"description": "Metric specification of operation.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of metric specification."
},
"displayName": {
"type": "string",
"description": "Display name of metric specification."
},
"displayDescription": {
"type": "string",
"description": "Display description of metric specification."
},
"unit": {
"type": "string",
"description": "Unit could be Bytes or Count."
},
"dimensions": {
"description": "Dimensions of blobs, including blob type and access tier.",
"type": "array",
"items": {
"$ref": "#/definitions/Dimension"
}
},
"aggregationType": {
"type": "string",
"description": "Aggregation type could be Average."
},
"fillGapWithZero": {
"type": "boolean",
"description": "The property to decide fill gap with zero or not."
},
"category": {
"type": "string",
"description": "The category this metric specification belong to, could be Capacity."
},
"resourceIdDimensionNameOverride": {
"type": "string",
"description": "Account Resource Id."
}
}
},
"Dimension": {
"description": "Dimension of blobs, possibly be blob type or access tier.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Display name of dimension."
},
"displayName": {
"type": "string",
"description": "Display name of dimension."
}
}
},
Expand Down Expand Up @@ -1353,7 +1446,11 @@
"x-ms-enum": {
"name": "EnvironmentKind",
"modelAsString": true
}
},
"x-ms-mutability": [
"create",
"read"
]
},
"sku": {
"$ref": "#/definitions/Sku",
Expand Down Expand Up @@ -2077,6 +2174,10 @@
"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."
},
"ingressStartAt": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/IngressStartAtProperties",
Expand Down Expand Up @@ -2250,10 +2351,6 @@
"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."
}
}
},
Expand Down Expand Up @@ -2455,7 +2552,11 @@
"properties": {
"principalObjectId": {
"type": "string",
"description": "The objectId of the principal in Azure Active Directory."
"description": "The objectId of the principal in Azure Active Directory.",
"x-ms-mutability": [
"create",
"read"
]
},
"description": {
"type": "string",
Expand Down

0 comments on commit 55cb1c9

Please sign in to comment.