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/README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ except HttpResponseError as err:
140
140
141
141
#### Handle logs query response
142
142
143
-
The `query` API returns a union of `LogsQueryResult` and `LogsQueryPartialResult` while the `batch_query` API returns list of `LogsQueryResult`, `LogsQueryPartialResult` and `LogsQueryError` objects. Here's a hierarchy of the response:
143
+
The `query_workspace` API returns a union of `LogsQueryResult` and `LogsQueryPartialResult`objects, while the `batch_query` API returns list of `LogsQueryResult`, `LogsQueryPartialResult`, and `LogsQueryError` objects. Here's a hierarchy of the response:
144
144
145
145
```
146
146
LogsQueryResult
@@ -164,8 +164,7 @@ LogsQueryPartialResult
164
164
|---column_types
165
165
```
166
166
167
-
The `LogsQueryResult` directly iterates over the table as a convinience.
168
-
For example, to handle a logs query response with tables and display it using pandas:
167
+
The `LogsQueryResult` directly iterates over the table as a convenience. For example, to handle a logs query response with tables and display it using pandas:
169
168
170
169
```python
171
170
response = client.query(...)
@@ -189,7 +188,7 @@ A full sample can be found [here](https://github.com/Azure/azure-sdk-for-python/
189
188
190
189
### Batch logs query
191
190
192
-
The following example demonstrates sending multiple queries at the same time using batch query API. The queries can either be represented as a list of `LogsBatchQuery` objects or a dictionary. This example uses the former approach.
191
+
The following example demonstrates sending multiple queries at the same time using the batch query API. The queries can either be represented as a list of `LogsBatchQuery` objects or a dictionary. This example uses the former approach.
193
192
194
193
```python
195
194
import os
@@ -287,7 +286,7 @@ A full sample can be found [here](https://github.com/Azure/azure-sdk-for-python/
287
286
288
287
### Metrics query
289
288
290
-
The following example gets metrics for an Event Grid subscription. The resource URI is that of an event grid topic.
289
+
The following example gets metrics for an Event Grid subscription. The resource URI is that of an Event Grid topic.
291
290
292
291
The resource URI must be that of the resource for which metrics are being queried. It's normally of the format `/subscriptions/<id>/resourceGroups/<rg-name>/providers/<source>/topics/<resource-name>`.
293
292
@@ -325,7 +324,7 @@ for metric in response.metrics:
325
324
326
325
#### Handle metrics query response
327
326
328
-
The metrics query API returns a `MetricsResult` object. The `MetricsResult` object contains properties such as a list of `Metric`-typed objects, `granularity`, `namespace`, and `timespan`. The `Metric` objects list can be accessed using the `metrics` param. Each `Metric` object in this list contains a list of `TimeSeriesElement` objects. Each `TimeSeriesElement` contains `data` and `metadata_values` properties. In visual form, the object hierarchy of the response resembles the following structure:
327
+
The metrics query API returns a `MetricsResult` object. The `MetricsResult` object contains properties such as a list of `Metric`-typed objects, `granularity`, `namespace`, and `timespan`. The `Metric` objects list can be accessed using the `metrics` param. Each `Metric` object in this list contains a list of `TimeSeriesElement` objects. Each `TimeSeriesElement`object contains `data` and `metadata_values` properties. In visual form, the object hierarchy of the response resembles the following structure:
0 commit comments