Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 1 addition & 7 deletions sdk/monitor/azure-monitor-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Release History

## 1.0.0b2 (Unreleased)

### Features Added
## 1.0.0b2 (2021-07-06)

### Breaking Changes

Expand All @@ -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)

Expand Down
7 changes: 4 additions & 3 deletions sdk/monitor/azure-monitor-query/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down