Fix azure-mgmt-monitor example code #29571
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Docs
Mgmt
This issue is related to a management-plane library.
Monitor
Monitor, Monitor Ingestion, Monitor Query
needs-team-attention
This issue needs attention from Azure service team or SDK team
Describe the bug
Sample code from documentation (https://learn.microsoft.com/en-us/python/api/overview/azure/monitoring?view=azure-python-previous&viewFallbackFrom=azure-python) does not work:
item.unit.name
should beitem.unit
.I also suggest updating the example to be a fully functional code, not just a snippet. As it is, it misses credentials.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Executes and returns value.
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: