diff --git a/sdk/monitor/azure-monitor-query/CHANGELOG.md b/sdk/monitor/azure-monitor-query/CHANGELOG.md index bd8f683f9cd2..8c50cd8c0f7c 100644 --- a/sdk/monitor/azure-monitor-query/CHANGELOG.md +++ b/sdk/monitor/azure-monitor-query/CHANGELOG.md @@ -1,8 +1,6 @@ # Release History -## 1.0.0b2 (Unreleased) - -### Features Added +## 1.0.0b2 (2021-07-06) ### Breaking Changes @@ -11,10 +9,6 @@ - `aggregation` param is now a list instead of a string in the `query` method. - `duration` must now be provided as a timedelta instead of a string. -### Key Bugs Fixed - -### Fixed - ## 1.0.0b1 (2021-06-10) diff --git a/sdk/monitor/azure-monitor-query/README.md b/sdk/monitor/azure-monitor-query/README.md index 9e8db88c7e86..9c2e0cf18d81 100644 --- a/sdk/monitor/azure-monitor-query/README.md +++ b/sdk/monitor/azure-monitor-query/README.md @@ -105,6 +105,7 @@ This sample shows getting a log query. to handle the response and view it in a t ```Python import os import pandas as pd +from datetime import datetime from azure.monitor.query import LogsQueryClient from azure.identity import DefaultAzureCredential @@ -155,18 +156,18 @@ requests = [ LogsQueryRequest( query="AzureActivity | summarize count()", duration=timedelta(hours=1), - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id=os.environ['LOG_WORKSPACE_ID'] ), LogsQueryRequest( query= """AppRequests | take 10 | summarize avgRequestDuration=avg(DurationMs) by bin(TimeGenerated, 10m), _ResourceId""", duration=timedelta(hours=1), start_time=datetime(2021, 6, 2), - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id=os.environ['LOG_WORKSPACE_ID'] ), LogsQueryRequest( query= "AppRequests | take 2", - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id=os.environ['LOG_WORKSPACE_ID'] ), ] response = client.batch_query(requests)