Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{monitor} update example on readme #1713

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs-ref-services/latest/monitor.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: Azure Monitor SDK for Python
description: Reference for Azure Monitor SDK for Python
author: lmazuel
ms.author: lmazuel
ms.data: 03/24/2023
ms.topic: reference
ms.devlang: python
ms.service: monitor
---
---
title: Azure Monitor SDK for Python
description: Reference for Azure Monitor SDK for Python
author: lmazuel
ms.author: lmazuel
ms.date: 03/27/2023
ms.topic: reference
ms.devlang: python
ms.service: monitor
---
# Azure Monitoring libraries for python

## Overview
Expand Down Expand Up @@ -79,7 +79,7 @@ metrics_data = client.metrics.list(

for item in metrics_data.value:
# azure.mgmt.monitor.models.Metric
print("{} ({})".format(item.name.localized_value, item.unit.name))
print("{} ({})".format(item.name.localized_value, item.unit))
for timeserie in item.timeseries:
for data in timeserie.data:
# azure.mgmt.monitor.models.MetricData
Expand Down Expand Up @@ -169,4 +169,4 @@ my_alert = client.alert_rules.create_or_update(
)
```
> [!div class="nextstepaction"]
> [Explore the Management APIs](/python/api/overview/azure/monitoring/management)
> [Explore the Management APIs](/python/api/overview/azure/monitoring/management)