Azure / Azure/azure-rest-api-specs

Dimension or Split By option not available in azure-monitor-mgmt client "metrics.list" method

Open
#21,948 8 comments 0 reactions 0 assignees View on GitHub
customer-reported Mgmt Monitor needs-team-attention needs-triage question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

An option like Dimension or Split By should be provided which is currently not available in azure-monitor-mgmt client "metrics.list" method .
Package class: azure.mgmt.monitor._monitor_management_client.MonitorManagementClient
Operation Method: metrics.list()

A "--dimension" option which is provided in az cli command , similar parameter can be provided in its python sdk counterpart -
```bash
az monitor metrics list --resource {ResourceName} --aggregation Total --dimension "ResponseType" --metric Transactions --start-time 2022-12-08T16:00:00Z --interval PT1H
```
Az CLI Reference from: https://learn.microsoft.com/en-us/cli/azure/monitor/metrics?view=azure-cli-latest#az-monitor-metrics-list

Az monitor metrics Python SDK Reference from: https://learn.microsoft.com/en-us/python/api/azure-mgmt-monitor/azure.mgmt.monitor.v2018_01_01.operations.metricsoperations?view=azure-python#azure-mgmt-monitor-v2018-01-01-operations-metricsoperations-list

Contributor guide

Open the contributing guide

Research direction

Start with the MonitorManagementClient metrics.list() operation and compare its Python SDK reference with the Azure CLI metrics list reference linked in the issue. Trace how the existing list parameters are represented in the REST API specification; done means the requested dimension or Split By option is available through the generated Python client.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
api, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.