Skip to content

Commit 6384b6c

Browse files
authored
[Hub Generated] Review request for Microsoft.Insights to add version preview/2017-09-01-preview (#14104)
* Adds base for updating Microsoft.Insights from version preview/2017-05-01-preview to version 2017-09-01-preview * Updates readme * Updates API version in new specs and examples * Update readme.md * Delete diagnosticsSettingsCategories_API.json * Delete diagnosticsSettings_API.json * Delete subscriptionDiagnosticsSettings_API.json * Delete listSubscriptionDiagnosticSettings.json * Delete listDiagnosticSettingsCategories.json * Delete listDiagnosticSettings.json * Delete getSubscriptionDiagnosticSetting.json * Delete getDiagnosticSettingsCategory.json * Delete getDiagnosticSetting.json * Delete deleteSubscriptionDiagnosticSetting.json * Delete deleteDiagnosticSetting.json * Delete createOrUpdateSubscriptionDiagnosticSetting.json * Delete createOrUpdateDiagnosticSetting.json * Update GetMetric.json * Update GetMetricDefinitions.json * Update GetMetricMetadata.json * Update metricDefinitions_API.json * Update metrics_API.json * Update metrics_API.json Make the Unit description casing consistent to fix lint error * Update metricDefinitions_API.json Make the units enum in metricsDefinitions_API consistent with the one in metrics_API * Add operations API Add operations API * Create operations api example * Update readme.md to include 2017-09-01-preview operations api * Incorporate PR feedback * Update operations_API.json * Update operations_API.json * Update OperationList.json * Update OperationList.json Add error example * Update operations_API.json Add error contract * Update metricDefinitions_API.json Fix lint errors and use standard error response format * Update metrics_API.json Fix lint errors and use standard error response format * Update operations_API.json Fix autorest generation problems * Update operations_API.json * Update readme.md Add suppressions for the error response format * Update metricDefinitions_API.json Go back to the same ErrorResponse the rest of Azure Monitor uses * Update metrics_API.json Go back to the same ErrorResponse the rest of Azure Monitor uses * Update metricDefinitions_API.json Fix new lint errors * Update metrics_API.json Fix lint errors * Update operations_API.json Fix lint errors
1 parent e92d236 commit 6384b6c

File tree

8 files changed

+11097
-0
lines changed

8 files changed

+11097
-0
lines changed
Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default",
4+
"timespan": "2021-04-21T01:00:00.000Z/2021-04-24T02:00:00.000Z",
5+
"metric": "BlobCapacity",
6+
"$filter": "BlobType eq '*'",
7+
"top": "3",
8+
"orderby": "Average asc",
9+
"aggregation": "Average,count",
10+
"interval": "PT1H",
11+
"api-version": "2017-05-01-preview"
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"cost": 659,
17+
"timespan": "2021-04-21T01:00:00Z/2021-04-21T12:00:00Z",
18+
"interval": "PT1H",
19+
"value": [
20+
{
21+
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity",
22+
"type": "Microsoft.Insights/metrics",
23+
"name": {
24+
"value": "BlobCapacity",
25+
"localizedValue": "Blob Capacity"
26+
},
27+
"displayDescription": "The amount of storage used by the storage account’s Blob service in bytes.",
28+
"unit": "Bytes",
29+
"timeseries": [
30+
{
31+
"metadatavalues": [
32+
{
33+
"name": {
34+
"value": "blobtype",
35+
"localizedValue": "blobtype"
36+
},
37+
"value": "PageBlob"
38+
}
39+
],
40+
"data": [
41+
{
42+
"timeStamp": "2021-04-21T01:00:00Z",
43+
"average": 621492.0
44+
},
45+
{
46+
"timeStamp": "2021-04-21T02:00:00Z",
47+
"average": 621492.0
48+
},
49+
{
50+
"timeStamp": "2021-04-21T03:00:00Z",
51+
"average": 621492.0
52+
},
53+
{
54+
"timeStamp": "2021-04-21T04:00:00Z",
55+
"average": 621492.0
56+
},
57+
{
58+
"timeStamp": "2021-04-21T05:00:00Z",
59+
"average": 621492.0
60+
},
61+
{
62+
"timeStamp": "2021-04-21T06:00:00Z",
63+
"average": 621492.0
64+
},
65+
{
66+
"timeStamp": "2021-04-21T07:00:00Z",
67+
"average": 621492.0
68+
},
69+
{
70+
"timeStamp": "2021-04-21T08:00:00Z",
71+
"average": 621492.0
72+
},
73+
{
74+
"timeStamp": "2021-04-21T09:00:00Z",
75+
"average": 621492.0
76+
},
77+
{
78+
"timeStamp": "2021-04-21T10:00:00Z",
79+
"average": 621492.0
80+
},
81+
{
82+
"timeStamp": "2021-04-21T11:00:00Z",
83+
"average": 621492.0
84+
}
85+
]
86+
},
87+
{
88+
"metadatavalues": [
89+
{
90+
"name": {
91+
"value": "blobtype",
92+
"localizedValue": "blobtype"
93+
},
94+
"value": "BlockBlob"
95+
}
96+
],
97+
"data": [
98+
{
99+
"timeStamp": "2021-04-21T01:00:00Z",
100+
"average": 4733.0
101+
},
102+
{
103+
"timeStamp": "2021-04-21T02:00:00Z",
104+
"average": 4733.0
105+
},
106+
{
107+
"timeStamp": "2021-04-21T03:00:00Z",
108+
"average": 4733.0
109+
},
110+
{
111+
"timeStamp": "2021-04-21T04:00:00Z",
112+
"average": 4733.0
113+
},
114+
{
115+
"timeStamp": "2021-04-21T05:00:00Z",
116+
"average": 4733.0
117+
},
118+
{
119+
"timeStamp": "2021-04-21T06:00:00Z",
120+
"average": 4733.0
121+
},
122+
{
123+
"timeStamp": "2021-04-21T07:00:00Z",
124+
"average": 4733.0
125+
},
126+
{
127+
"timeStamp": "2021-04-21T08:00:00Z",
128+
"average": 4733.0
129+
},
130+
{
131+
"timeStamp": "2021-04-21T09:00:00Z",
132+
"average": 4733.0
133+
},
134+
{
135+
"timeStamp": "2021-04-21T10:00:00Z",
136+
"average": 4733.0
137+
},
138+
{
139+
"timeStamp": "2021-04-21T11:00:00Z",
140+
"average": 4733.0
141+
}
142+
]
143+
},
144+
{
145+
"metadatavalues": [
146+
{
147+
"name": {
148+
"value": "blobtype",
149+
"localizedValue": "blobtype"
150+
},
151+
"value": "Azure Data Lake Storage"
152+
}
153+
],
154+
"data": [
155+
{
156+
"timeStamp": "2021-04-21T01:00:00Z",
157+
"average": 0.0
158+
},
159+
{
160+
"timeStamp": "2021-04-21T02:00:00Z",
161+
"average": 0.0
162+
},
163+
{
164+
"timeStamp": "2021-04-21T03:00:00Z",
165+
"average": 0.0
166+
},
167+
{
168+
"timeStamp": "2021-04-21T04:00:00Z",
169+
"average": 0.0
170+
},
171+
{
172+
"timeStamp": "2021-04-21T05:00:00Z",
173+
"average": 0.0
174+
},
175+
{
176+
"timeStamp": "2021-04-21T06:00:00Z",
177+
"average": 0.0
178+
},
179+
{
180+
"timeStamp": "2021-04-21T07:00:00Z",
181+
"average": 0.0
182+
},
183+
{
184+
"timeStamp": "2021-04-21T08:00:00Z",
185+
"average": 0.0
186+
},
187+
{
188+
"timeStamp": "2021-04-21T09:00:00Z",
189+
"average": 0.0
190+
},
191+
{
192+
"timeStamp": "2021-04-21T10:00:00Z",
193+
"average": 0.0
194+
},
195+
{
196+
"timeStamp": "2021-04-21T11:00:00Z",
197+
"average": 0.0
198+
}
199+
]
200+
}
201+
],
202+
"errorCode": "Success"
203+
}
204+
]
205+
}
206+
},
207+
"default": {
208+
"body": {
209+
"code": "BadRequest",
210+
"message": "Failed to find metric configuration for provider: Microsoft.Storage, resource Type: storageAccounts/blobServices, metric: BlobCsdapacity, Valid metrics: BlobCapacity,BlobCount,ContainerCount,IndexCapacity,Transactions,Ingress,Egress,SuccessServerLatency,SuccessE2ELatency,Availability"
211+
}
212+
}
213+
}
214+
}

0 commit comments

Comments
 (0)