Skip to content

Commit 0efd11a

Browse files
authored
[Hub Generated] Review request for Microsoft.Insights to add version stable/2015-07-01 (#14103)
* Create metricDefinitions_API.json * Update readme.md * Create GetMetricDefinitions.json * Update metricDefinitions_API.json Fix resource provider casing * Update metricDefinitions_API.json Use standardized error response format * Update metricDefinitions_API.json Need to use same error response format for all apis in this api version * Create operations_API.json Add operations API * Create OperationList.json Add operations example * Update readme.md Add operations API * Update operations_API.json Fix the operations API * Update readme.md Add suppressions for DefaultErrorResponseSchema * Update metricDefinitions_API.json Fix autorest, lint, etc issues * Update operations_API.json Fix autorest / lint / etc issues * Update GetMetricDefinitions.json Update example to better match what is being returned now. * Add OperationsAPI Lint suppression Add OperationsAPI Lint suppression * Suppress R3023 due to a bug with the rule not realizing the operations API is specified. * Modify the suppression reason * Make ResourceUriParameter in sync with the one in service diagnostics settings API * Update readme.md Revert back to package-2021-04 tag for the SDK to fix build breaks
1 parent 6de27dc commit 0efd11a

File tree

5 files changed

+7879
-1
lines changed

5 files changed

+7879
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,300 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
4+
"api-version": "2015-07-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2/providers/microsoft.insights/metricdefinitions",
10+
"value": [
11+
{
12+
"name": {
13+
"value": "\\Processor Information(_Total)\\% Processor Time",
14+
"localizedValue": "\\Processor Information(_Total)\\% Processor Time"
15+
},
16+
"category": "AllMetrics",
17+
"startTime": "0001-01-01T00:00:00Z",
18+
"endTime": "0001-01-01T00:00:00Z",
19+
"unit": "Percent",
20+
"primaryAggregationType": "Average",
21+
"resourceUri": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
22+
"resourceId": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
23+
"metricAvailabilities": [
24+
{
25+
"timeGrain": "PT1H",
26+
"retention": "P10675199DT2H48M5.4775807S",
27+
"location": {
28+
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
29+
"tableInfo": [
30+
{
31+
"tableName": "WADMetricsPT1HP10DV2S20210320",
32+
"startTime": "2021-03-20T00:00:00Z",
33+
"endTime": "2021-03-30T00:00:00Z",
34+
"sasToken": "omitted",
35+
"sasTokenExpirationTime": "2021-04-23T12:36:45.9017747Z"
36+
},
37+
{
38+
"tableName": "WADMetricsPT1HP10DV2S20210330",
39+
"startTime": "2021-03-30T00:00:00Z",
40+
"endTime": "2021-04-09T00:00:00Z",
41+
"sasToken": "omitted",
42+
"sasTokenExpirationTime": "2021-04-23T12:36:45.9017747Z"
43+
},
44+
{
45+
"tableName": "WADMetricsPT1HP10DV2S20210409",
46+
"startTime": "2021-04-09T00:00:00Z",
47+
"endTime": "2021-04-19T00:00:00Z",
48+
"sasToken": "omitted",
49+
"sasTokenExpirationTime": "2021-04-23T12:36:45.9017747Z"
50+
},
51+
{
52+
"tableName": "WADMetricsPT1HP10DV2S20210419",
53+
"startTime": "2021-04-19T00:00:00Z",
54+
"endTime": "2021-04-29T00:00:00Z",
55+
"sasToken": "omitted",
56+
"sasTokenExpirationTime": "2021-04-23T12:36:45.9017747Z"
57+
}
58+
],
59+
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
60+
}
61+
},
62+
{
63+
"timeGrain": "PT1M",
64+
"retention": "P10675199DT2H48M5.4775807S",
65+
"location": {
66+
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
67+
"tableInfo": [
68+
{
69+
"tableName": "WADMetricsPT1MP10DV2S20210320",
70+
"startTime": "2021-03-20T00:00:00Z",
71+
"endTime": "2021-03-30T00:00:00Z",
72+
"sasToken": "omitted",
73+
"sasTokenExpirationTime": "2021-04-23T12:36:45.9477303Z"
74+
},
75+
{
76+
"tableName": "WADMetricsPT1MP10DV2S20210330",
77+
"startTime": "2021-03-30T00:00:00Z",
78+
"endTime": "2021-04-09T00:00:00Z",
79+
"sasToken": "omitted",
80+
"sasTokenExpirationTime": "2021-04-23T12:36:45.9477303Z"
81+
},
82+
{
83+
"tableName": "WADMetricsPT1MP10DV2S20210409",
84+
"startTime": "2021-04-09T00:00:00Z",
85+
"endTime": "2021-04-19T00:00:00Z",
86+
"sasToken": "omitted",
87+
"sasTokenExpirationTime": "2021-04-23T12:36:45.9477303Z"
88+
},
89+
{
90+
"tableName": "WADMetricsPT1MP10DV2S20210419",
91+
"startTime": "2021-04-19T00:00:00Z",
92+
"endTime": "2021-04-29T00:00:00Z",
93+
"sasToken": "omitted",
94+
"sasTokenExpirationTime": "2021-04-23T12:36:45.9477303Z"
95+
}
96+
],
97+
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
98+
}
99+
}
100+
],
101+
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2/providers/microsoft.insights/metricdefinitions/\\Processor Information(_Total)\\% Processor Time",
102+
"supportedAggregationTypes": null
103+
},
104+
{
105+
"name": {
106+
"value": "\\Processor Information(_Total)\\% Privileged Time",
107+
"localizedValue": "\\Processor Information(_Total)\\% Privileged Time"
108+
},
109+
"category": "AllMetrics",
110+
"startTime": "0001-01-01T00:00:00Z",
111+
"endTime": "0001-01-01T00:00:00Z",
112+
"unit": "Percent",
113+
"primaryAggregationType": "Average",
114+
"resourceUri": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
115+
"resourceId": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
116+
"metricAvailabilities": [
117+
{
118+
"timeGrain": "PT1H",
119+
"retention": "P10675199DT2H48M5.4775807S",
120+
"location": {
121+
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
122+
"tableInfo": [
123+
{
124+
"tableName": "WADMetricsPT1HP10DV2S20210320",
125+
"startTime": "2021-03-20T00:00:00Z",
126+
"endTime": "2021-03-30T00:00:00Z",
127+
"sasToken": "omitted",
128+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
129+
},
130+
{
131+
"tableName": "WADMetricsPT1HP10DV2S20210330",
132+
"startTime": "2021-03-30T00:00:00Z",
133+
"endTime": "2021-04-09T00:00:00Z",
134+
"sasToken": "omitted",
135+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
136+
},
137+
{
138+
"tableName": "WADMetricsPT1HP10DV2S20210409",
139+
"startTime": "2021-04-09T00:00:00Z",
140+
"endTime": "2021-04-19T00:00:00Z",
141+
"sasToken": "omitted",
142+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
143+
},
144+
{
145+
"tableName": "WADMetricsPT1HP10DV2S20210419",
146+
"startTime": "2021-04-19T00:00:00Z",
147+
"endTime": "2021-04-29T00:00:00Z",
148+
"sasToken": "omitted",
149+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
150+
}
151+
],
152+
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
153+
}
154+
},
155+
{
156+
"timeGrain": "PT1M",
157+
"retention": "P10675199DT2H48M5.4775807S",
158+
"location": {
159+
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
160+
"tableInfo": [
161+
{
162+
"tableName": "WADMetricsPT1MP10DV2S20210320",
163+
"startTime": "2021-03-20T00:00:00Z",
164+
"endTime": "2021-03-30T00:00:00Z",
165+
"sasToken": "omitted",
166+
"sasTokenExpirationTime": "2021-04-23T12:36:45.8227259Z"
167+
},
168+
{
169+
"tableName": "WADMetricsPT1MP10DV2S20210330",
170+
"startTime": "2021-03-30T00:00:00Z",
171+
"endTime": "2021-04-09T00:00:00Z",
172+
"sasToken": "omitted",
173+
"sasTokenExpirationTime": "2021-04-23T12:36:45.8227259Z"
174+
},
175+
{
176+
"tableName": "WADMetricsPT1MP10DV2S20210409",
177+
"startTime": "2021-04-09T00:00:00Z",
178+
"endTime": "2021-04-19T00:00:00Z",
179+
"sasToken": "omitted",
180+
"sasTokenExpirationTime": "2021-04-23T12:36:45.8227259Z"
181+
},
182+
{
183+
"tableName": "WADMetricsPT1MP10DV2S20210419",
184+
"startTime": "2021-04-19T00:00:00Z",
185+
"endTime": "2021-04-29T00:00:00Z",
186+
"sasToken": "omitted",
187+
"sasTokenExpirationTime": "2021-04-23T12:36:45.8227259Z"
188+
}
189+
],
190+
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
191+
}
192+
}
193+
],
194+
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2/providers/microsoft.insights/metricdefinitions/\\Processor Information(_Total)\\% Privileged Time",
195+
"supportedAggregationTypes": null
196+
},
197+
{
198+
"name": {
199+
"value": "\\Processor Information(_Total)\\% User Time",
200+
"localizedValue": "\\Processor Information(_Total)\\% User Time"
201+
},
202+
"category": "AllMetrics",
203+
"startTime": "0001-01-01T00:00:00Z",
204+
"endTime": "0001-01-01T00:00:00Z",
205+
"unit": "Percent",
206+
"primaryAggregationType": "Average",
207+
"resourceUri": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
208+
"resourceId": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2",
209+
"metricAvailabilities": [
210+
{
211+
"timeGrain": "PT1H",
212+
"retention": "P10675199DT2H48M5.4775807S",
213+
"location": {
214+
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
215+
"tableInfo": [
216+
{
217+
"tableName": "WADMetricsPT1HP10DV2S20210320",
218+
"startTime": "2021-03-20T00:00:00Z",
219+
"endTime": "2021-03-30T00:00:00Z",
220+
"sasToken": "omitted",
221+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7317955Z"
222+
},
223+
{
224+
"tableName": "WADMetricsPT1HP10DV2S20210330",
225+
"startTime": "2021-03-30T00:00:00Z",
226+
"endTime": "2021-04-09T00:00:00Z",
227+
"sasToken": "omitted",
228+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7317955Z"
229+
},
230+
{
231+
"tableName": "WADMetricsPT1HP10DV2S20210409",
232+
"startTime": "2021-04-09T00:00:00Z",
233+
"endTime": "2021-04-19T00:00:00Z",
234+
"sasToken": "omitted",
235+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7317955Z"
236+
},
237+
{
238+
"tableName": "WADMetricsPT1HP10DV2S20210419",
239+
"startTime": "2021-04-19T00:00:00Z",
240+
"endTime": "2021-04-29T00:00:00Z",
241+
"sasToken": "omitted",
242+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7317955Z"
243+
}
244+
],
245+
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
246+
}
247+
},
248+
{
249+
"timeGrain": "PT1M",
250+
"retention": "P10675199DT2H48M5.4775807S",
251+
"location": {
252+
"tableEndpoint": "https://tkfileserv.table.core.windows.net/",
253+
"tableInfo": [
254+
{
255+
"tableName": "WADMetricsPT1MP10DV2S20210320",
256+
"startTime": "2021-03-20T00:00:00Z",
257+
"endTime": "2021-03-30T00:00:00Z",
258+
"sasToken": "omitted",
259+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
260+
},
261+
{
262+
"tableName": "WADMetricsPT1MP10DV2S20210330",
263+
"startTime": "2021-03-30T00:00:00Z",
264+
"endTime": "2021-04-09T00:00:00Z",
265+
"sasToken": "omitted",
266+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
267+
},
268+
{
269+
"tableName": "WADMetricsPT1MP10DV2S20210409",
270+
"startTime": "2021-04-09T00:00:00Z",
271+
"endTime": "2021-04-19T00:00:00Z",
272+
"sasToken": "omitted",
273+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
274+
},
275+
{
276+
"tableName": "WADMetricsPT1MP10DV2S20210419",
277+
"startTime": "2021-04-19T00:00:00Z",
278+
"endTime": "2021-04-29T00:00:00Z",
279+
"sasToken": "omitted",
280+
"sasTokenExpirationTime": "2021-04-23T12:36:45.7602221Z"
281+
}
282+
],
283+
"partitionKey": ":002Fsubscriptions:002F1f3fa6d2:002D851c:002D4a91:002D9087:002D1a050f3a9c38:002FresourceGroups:002Ftodking:002Fproviders:002FMicrosoft:002ECompute:002FvirtualMachines:002FtkTestVM2"
284+
}
285+
}
286+
],
287+
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Compute/virtualMachines/tkTestVM2/providers/microsoft.insights/metricdefinitions/\\Processor Information(_Total)\\% User Time",
288+
"supportedAggregationTypes": null
289+
}
290+
]
291+
}
292+
},
293+
"default": {
294+
"body": {
295+
"code": "BadRequest",
296+
"message": "The $filter parameter is not supported or not formatted correctly."
297+
}
298+
}
299+
}
300+
}

0 commit comments

Comments
 (0)