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
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,26 @@
1
1
# Release History
2
2
3
-
## 1.4.2 (Unreleased)
3
+
## 2.0.0 (Unreleased)
4
4
5
5
### Features Added
6
6
7
7
### Breaking Changes
8
8
9
+
-`MetricsClient` and `MetricsQueryClient` have been removed from the `azure-monitor-query` package. This is part of the migration to split logs and metrics functionality into separate packages. ([#42205](https://github.com/Azure/azure-sdk-for-python/pull/42205))
10
+
- The `MetricsClient` has been moved to the new `azure-monitor-querymetrics`
11
+
- Functionality provided by `MetricsQueryClient` can be access through the `azure-mgmt-monitor` package.
12
+
9
13
### Bugs Fixed
10
14
11
15
- Fixed an issue where the package version in operation user agent strings was always set to "unknown" instead of the actual package version. ([#39866](https://github.com/Azure/azure-sdk-for-python/pull/39866))
Azure Monitor Query supports Azure Active Directory authentication. Both LogsQueryClient and
57
-
MetricsQueryClient have methods to set the `credential`. To provide a valid credential, you can use
58
-
`azure-identity` dependency. For more details on getting started, refer to
59
-
the [README](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-query#create-the-client)
60
-
of Azure Monitor Query library. You can also refer to
53
+
Azure Monitor Query supports Microsoft Entra ID authentication. LogsQueryClient has methods to set the `credential`. To provide a valid credential, you can use the `azure-identity` package. For more details on getting started, refer to the [README](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-query#create-the-client) of the Azure Monitor Query library. You can also refer to
61
54
the [Azure Identity documentation](https://learn.microsoft.com/python/api/overview/azure/identity-readme)
62
55
for more details on the various types of credential supported in `azure-identity`.
63
56
@@ -174,39 +167,6 @@ data = response.partial_data
174
167
error = response.partial_error
175
168
```
176
169
177
-
## Troubleshooting Metrics Query
178
-
179
-
### Troubleshooting insufficient access error for metrics query
180
-
181
-
If you get an HTTP error with status code 403 (Forbidden), it means that the provided credentials does not have
182
-
sufficient permissions to query the workspace.
183
-
```text
184
-
"{"error":{"message":"The provided credentials have insufficient access to perform the requested operation","code":"InsufficientAccessError","correlationId":""}}"
185
-
```
186
-
187
-
1. Check that the application or user that is making the request has sufficient permissions:
188
-
* You can refer to this document to [manage access to workspaces](https://learn.microsoft.com/azure/azure-monitor/logs/manage-access#manage-access-using-workspace-permissions)
189
-
2. If the user or application is granted sufficient privileges to query the workspace, make sure you are
190
-
authenticating as that user/application. If you are authenticating using the
For more help on troubleshooting authentication errors please see the Azure Identity client library [troubleshooting guide](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/TROUBLESHOOTING.md).
196
-
197
-
### Troubleshooting unsupported granularity for metrics query
198
-
199
-
If you notice the following exception, this is due to an invalid time granularity in the metrics query request. Your
200
-
query might have set the `granularity` keyword argument to an unsupported duration.
201
-
202
-
```text
203
-
"{"code":"BadRequest","message":"Invalid time grain duration: PT10M, supported ones are: 00:01:00,00:05:00,00:15:00,00:30:00,01:00:00,06:00:00,12:00:00,1.00:00:00"}"
204
-
```
205
-
206
-
As documented in the error message, the supported granularity for metrics queries are 1 minute, 5 minutes, 15 minutes,
207
-
30 minutes, 1 hour, 6 hours, 12 hours and 1 day.
208
-
209
-
210
170
## Additional azure-core configurations
211
171
212
172
When calling the methods, some properties including `retry_mode`, `timeout`, `connection_verify` can be configured by passing in as keyword arguments. See
0 commit comments