You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-query/CHANGELOG.md
+6-11Lines changed: 6 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,16 @@
1
1
# Release History
2
2
3
-
## 1.3.0 (Unreleased)
4
-
5
-
### Features Added
6
-
7
-
- Added `roll_up_by` keyword argument to `MetricsBatchQueryClient.query_batch` to support rolling up metrics by dimension. ([#33752](https://github.com/Azure/azure-sdk-for-python/pull/33752))
8
-
9
-
### Breaking Changes
10
-
11
-
- The following changes are breaking against the previous preview release (i.e. `1.3.0b2`/`1.3.0b1`):
12
-
- Reordered the arguments for the async `MetricsBatchQueryClient` constructor so that `endpoint` is now the first positional argument. ([#33752](https://github.com/Azure/azure-sdk-for-python/pull/33752))
13
-
- Reordered the `metric_names` and `metric_namespace` positional arguments in `MetricsBatchQueryClient.query_batch`. ([#33752](https://github.com/Azure/azure-sdk-for-python/pull/33752))
3
+
## 1.2.1 (2024-01-31)
14
4
15
5
### Bugs Fixed
16
6
7
+
- Fixed certain keyword arguments from being propagated when using `MetricsQueryClient`.
8
+
17
9
### Other Changes
18
10
11
+
- Internal updates to generated code.
12
+
- Bumped minimum dependency on `azure-core` to `>=1.28.0`.
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-query/README.md
+1-39Lines changed: 1 addition & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ pip install azure-monitor-query
37
37
38
38
### Create the client
39
39
40
-
An authenticated client is required to query Logs or Metrics. The library includes both synchronous and asynchronous forms of the clients. To authenticate, create an instance of a token credential. Use that instance when creating a `LogsQueryClient`, `MetricsQueryClient`, or `MetricsBatchQueryClient`. The following examples use `DefaultAzureCredential` from the [azure-identity](https://pypi.org/project/azure-identity/) package.
40
+
An authenticated client is required to query Logs or Metrics. The library includes both synchronous and asynchronous forms of the clients. To authenticate, create an instance of a token credential. Use that instance when creating a `LogsQueryClient`or `MetricsQueryClient`. The following examples use `DefaultAzureCredential` from the [azure-identity](https://pypi.org/project/azure-identity/) package.
41
41
42
42
#### Synchronous clients
43
43
@@ -525,43 +525,6 @@ for metric in response.metrics:
525
525
)
526
526
```
527
527
528
-
### Metrics batch query
529
-
530
-
A user can also query metrics from multiple resources at once using the `query_batch` method of `MetricsBatchQueryClient`. This uses a different API than the `MetricsQueryClient` and requires that a user pass in a regional endpoint when instantiating the client (for example, "https://westus3.metrics.monitor.azure.com").
531
-
532
-
Note, each resource must be in the same region as the endpoint passed in when instantiating the client, and each resource must be in the same Azure subscription. Furthermore, the metric namespace that contains the metrics to be queried must also be passed. A list of metric namespaces can be found [here][metric_namespaces].
533
-
534
-
535
-
```python
536
-
from datetime import timedelta
537
-
import os
538
-
539
-
from azure.core.exceptions import HttpResponseError
540
-
from azure.identity import DefaultAzureCredential
541
-
from azure.monitor.query import MetricsBatchQueryClient, MetricAggregationType
0 commit comments