Commit b70f822
[@azure/monitor-query] Code Changes to add Batch Client to Metrics Query Client (Azure#26418)
Fixes Azure#25058
### Packages impacted by this PR
@azure/monitor-query
### Issues associated with this PR
NA
### Describe the problem that is addressed by this PR
In this PR, a new client called `MetricsBatchClient` has been added to
the SDK. This Client is generated from this
[swagger](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5f700acd3d094d8eedca381932f2e7916afd2e55/specification/monitor/data-plane/Microsoft.Insights/preview/2023-05-01-preview/metricBatch.json).
### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
The names of the following properties: `Metric`, `TimeSeriesElement`,
`MetricValue`, `MetadataValue` and `MetricUnit` are conflicting with the
existing names. So, they are renamed as `BatchMetric`,
`BatchTimeSeriesElement`, `BatchMetricValue`, `BatchMetadataValue` and
`BatchMetricUnit`.
### Are there test cases added in this PR? _(If not, why?)_
Since this is a beta release and needed to be released at the earliest
and the code has been tested locally, test cases are not added with this
PR. It will be added seperately
### Provide a list of related PRs _(if any)_
None
### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_
`...\azure-sdk-for-js\sdk\monitor\monitor-query> autorest --typescript
.\swagger\metric-Batch.md`
### Checklists
- [X] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [X] Added a changelog (if necessary)
@KarishmaGhiya @jeremymeng Please review and approve the PR.
@srnagar @scottaddie @xirzec FYI......
---------
Co-authored-by: Srikanta <51379715+srnagar@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>1 parent 28b2618 commit b70f822
File tree
26 files changed
+1723
-308
lines changed- .github
- .vscode
- common/config/rush
- sdk/monitor/monitor-query
- review
- src
- generated
- logquery/src
- metricBatch/src
- models
- operationsInterfaces
- operations
- metricsdefinitions/src
- metricsnamespaces/src
- metrics/src
- internal
- models
- swagger
26 files changed
+1723
-308
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
| 885 | + | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
147 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
151 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
152 | 170 | | |
153 | 171 | | |
154 | 172 | | |
155 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
156 | 176 | | |
157 | 177 | | |
158 | 178 | | |
| |||
180 | 200 | | |
181 | 201 | | |
182 | 202 | | |
183 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
184 | 210 | | |
185 | 211 | | |
186 | 212 | | |
187 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
188 | 219 | | |
189 | 220 | | |
190 | 221 | | |
191 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
192 | 225 | | |
193 | 226 | | |
194 | 227 | | |
| |||
218 | 251 | | |
219 | 252 | | |
220 | 253 | | |
221 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
222 | 257 | | |
223 | 258 | | |
224 | 259 | | |
| |||
235 | 270 | | |
236 | 271 | | |
237 | 272 | | |
238 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
239 | 278 | | |
240 | 279 | | |
241 | 280 | | |
242 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
243 | 287 | | |
244 | 288 | | |
245 | 289 | | |
246 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
247 | 294 | | |
248 | 295 | | |
249 | 296 | | |
250 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
251 | 300 | | |
252 | 301 | | |
253 | 302 | | |
254 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
255 | 307 | | |
256 | 308 | | |
257 | 309 | | |
258 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
259 | 313 | | |
260 | 314 | | |
261 | 315 | | |
262 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
263 | 320 | | |
264 | 321 | | |
265 | 322 | | |
266 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
267 | 326 | | |
268 | 327 | | |
269 | 328 | | |
270 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
271 | 332 | | |
272 | 333 | | |
273 | 334 | | |
274 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
275 | 339 | | |
276 | 340 | | |
277 | 341 | | |
278 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
279 | 345 | | |
280 | 346 | | |
281 | 347 | | |
282 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
283 | 351 | | |
284 | 352 | | |
285 | 353 | | |
286 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
287 | 358 | | |
288 | 359 | | |
289 | 360 | | |
290 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
291 | 365 | | |
292 | 366 | | |
293 | 367 | | |
294 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
295 | 371 | | |
296 | 372 | | |
297 | 373 | | |
298 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
299 | 379 | | |
300 | 380 | | |
301 | 381 | | |
302 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
303 | 387 | | |
304 | 388 | | |
305 | 389 | | |
306 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
307 | 393 | | |
308 | 394 | | |
309 | 395 | | |
310 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
311 | 400 | | |
312 | 401 | | |
313 | 402 | | |
314 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
315 | 407 | | |
316 | 408 | | |
317 | 409 | | |
318 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
319 | 413 | | |
320 | 414 | | |
321 | 415 | | |
322 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
323 | 419 | | |
324 | 420 | | |
325 | 421 | | |
326 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
327 | 425 | | |
328 | 426 | | |
329 | 427 | | |
0 commit comments