Skip to content

Commit 02c10fe

Browse files
authored
Microsoft.TimeSeriesInsights: Fix swagger correctness issues (Azure#14469)
* Fix swagger correctness issues * Fix casing in localTimestamp * Fix localTimeStamp property * Fix lintdiff errors
1 parent 3566c94 commit 02c10fe

File tree

5 files changed

+143
-6
lines changed

5 files changed

+143
-6
lines changed

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/examples/EventSourcesCreateEventHub.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
"keyName": "managementKey",
1616
"sharedAccessKey": "someSecretvalue",
1717
"timestampPropertyName": "someTimestampProperty",
18+
"localTimestamp": {
19+
"format": "TimeSpan",
20+
"timeZoneOffset": {
21+
"propertyName": "someEventPropertyName"
22+
}
23+
},
1824
"ingressStartAt": {
1925
"type": "EarliestAvailable"
2026
}
@@ -39,6 +45,12 @@
3945
"keyName": "managementKey",
4046
"provisioningState": "Succeeded",
4147
"creationTime": "2017-04-18T19:20:33.2288820Z",
48+
"localTimestamp": {
49+
"format": "TimeSpan",
50+
"timeZoneOffset": {
51+
"propertyName": "someEventPropertyName"
52+
}
53+
},
4254
"ingressStartAt": {
4355
"type": "EarliestAvailable"
4456
}
@@ -61,6 +73,12 @@
6173
"keyName": "managementKey",
6274
"provisioningState": "Succeeded",
6375
"creationTime": "2017-04-18T19:20:33.2288820Z",
76+
"localTimestamp": {
77+
"format": "TimeSpan",
78+
"timeZoneOffset": {
79+
"propertyName": "someEventPropertyName"
80+
}
81+
},
6482
"ingressStartAt": {
6583
"type": "EarliestAvailable"
6684
}

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/examples/EventSourcesGetEventHub.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
"keyName": "managementKey",
2424
"provisioningState": "Succeeded",
2525
"creationTime": "2017-04-18T19:20:33.2288820Z",
26+
"localTimestamp": {
27+
"format": "TimeSpan",
28+
"timeZoneOffset": {
29+
"propertyName": "someEventPropertyName"
30+
}
31+
},
2632
"ingressStartAt": {
2733
"type": "EarliestAvailable"
2834
}

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/examples/EventSourcesListByEnvironment.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
"keyName": "managementKey",
2525
"provisioningState": "Succeeded",
2626
"creationTime": "2017-04-18T19:20:33.2288820Z",
27+
"localTimestamp": {
28+
"format": "TimeSpan",
29+
"timeZoneOffset": {
30+
"propertyName": "someEventPropertyName"
31+
}
32+
},
2733
"ingressStartAt": {
2834
"type": "EarliestAvailable"
2935
}

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/examples/EventSourcesPatchTags.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
"provisioningState": "Succeeded",
3232
"creationTime": "2017-04-18T19:20:33.2288820Z",
3333
"timestampPropertyName": "someOtherTimestampProperty",
34+
"localTimestamp": {
35+
"format": "TimeSpan",
36+
"timeZoneOffset": {
37+
"propertyName": "someEventPropertyName"
38+
}
39+
},
3440
"ingressStartAt": {
3541
"type": "EarliestAvailable"
3642
}

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/timeseriesinsights.json

Lines changed: 107 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,99 @@
11441144
"readOnly": true
11451145
}
11461146
}
1147+
},
1148+
"origin": {
1149+
"title": "The intended executor of the operation.",
1150+
"type": "string"
1151+
},
1152+
"properties": {
1153+
"title": "Properties of the operation, including metric specifications.",
1154+
"type": "object",
1155+
"x-ms-client-flatten": true,
1156+
"x-ms-client-name": "OperationProperties",
1157+
"$ref": "#/definitions/OperationProperties"
1158+
}
1159+
}
1160+
},
1161+
"OperationProperties": {
1162+
"description": "Properties of operation, include metric specifications.",
1163+
"type": "object",
1164+
"properties": {
1165+
"serviceSpecification": {
1166+
"$ref": "#/definitions/ServiceSpecification",
1167+
"description": "One property of operation, include metric specifications."
1168+
}
1169+
}
1170+
},
1171+
"ServiceSpecification": {
1172+
"description": "One property of operation, include metric specifications.",
1173+
"type": "object",
1174+
"properties": {
1175+
"metricSpecifications": {
1176+
"description": "Metric specifications of operation.",
1177+
"type": "array",
1178+
"items": {
1179+
"$ref": "#/definitions/MetricSpecification"
1180+
}
1181+
}
1182+
}
1183+
},
1184+
"MetricSpecification": {
1185+
"description": "Metric specification of operation.",
1186+
"type": "object",
1187+
"properties": {
1188+
"name": {
1189+
"type": "string",
1190+
"description": "Name of metric specification."
1191+
},
1192+
"displayName": {
1193+
"type": "string",
1194+
"description": "Display name of metric specification."
1195+
},
1196+
"displayDescription": {
1197+
"type": "string",
1198+
"description": "Display description of metric specification."
1199+
},
1200+
"unit": {
1201+
"type": "string",
1202+
"description": "Unit could be Bytes or Count."
1203+
},
1204+
"dimensions": {
1205+
"description": "Dimensions of blobs, including blob type and access tier.",
1206+
"type": "array",
1207+
"items": {
1208+
"$ref": "#/definitions/Dimension"
1209+
}
1210+
},
1211+
"aggregationType": {
1212+
"type": "string",
1213+
"description": "Aggregation type could be Average."
1214+
},
1215+
"fillGapWithZero": {
1216+
"type": "boolean",
1217+
"description": "The property to decide fill gap with zero or not."
1218+
},
1219+
"category": {
1220+
"type": "string",
1221+
"description": "The category this metric specification belong to, could be Capacity."
1222+
},
1223+
"resourceIdDimensionNameOverride": {
1224+
"type": "string",
1225+
"description": "Account Resource Id."
1226+
}
1227+
}
1228+
},
1229+
"Dimension": {
1230+
"description": "Dimension of blobs, possibly be blob type or access tier.",
1231+
"type": "object",
1232+
"properties": {
1233+
"name": {
1234+
"type": "string",
1235+
"description": "Display name of dimension."
1236+
},
1237+
"displayName": {
1238+
"type": "string",
1239+
"description": "Display name of dimension."
11471240
}
11481241
}
11491242
},
@@ -1353,7 +1446,11 @@
13531446
"x-ms-enum": {
13541447
"name": "EnvironmentKind",
13551448
"modelAsString": true
1356-
}
1449+
},
1450+
"x-ms-mutability": [
1451+
"create",
1452+
"read"
1453+
]
13571454
},
13581455
"sku": {
13591456
"$ref": "#/definitions/Sku",
@@ -2077,6 +2174,10 @@
20772174
"type": "string",
20782175
"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."
20792176
},
2177+
"localTimestamp": {
2178+
"$ref": "#/definitions/LocalTimestamp",
2179+
"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."
2180+
},
20802181
"ingressStartAt": {
20812182
"x-ms-client-flatten": true,
20822183
"$ref": "#/definitions/IngressStartAtProperties",
@@ -2250,10 +2351,6 @@
22502351
"timestampPropertyName": {
22512352
"type": "string",
22522353
"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."
2253-
},
2254-
"localTimestamp": {
2255-
"$ref": "#/definitions/LocalTimestamp",
2256-
"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."
22572354
}
22582355
}
22592356
},
@@ -2455,7 +2552,11 @@
24552552
"properties": {
24562553
"principalObjectId": {
24572554
"type": "string",
2458-
"description": "The objectId of the principal in Azure Active Directory."
2555+
"description": "The objectId of the principal in Azure Active Directory.",
2556+
"x-ms-mutability": [
2557+
"create",
2558+
"read"
2559+
]
24592560
},
24602561
"description": {
24612562
"type": "string",

0 commit comments

Comments
 (0)