New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Monitor Query] Add batch metrics query integration #31049
Conversation
6939443
to
1cf4f36
Compare
1cf4f36
to
26ef20d
Compare
API change check APIView has identified API level changes in this PR and created following API reviews. |
051435e
to
dce44d8
Compare
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
dce44d8
to
a131a33
Compare
/azp run python - monitor - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions, but otherwise looks good! Sync feedback generally applies to async as well. Should we add the new client to the changelog?
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_metrics_batch_query_client_async.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_batch_query_async.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_batch_query_async.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_batch_query_async.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_helpers.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @kristapratico for the great feedback! Addressed most comments and replied in-line 😸.
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_batch_query_async.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_helpers.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
94ed84e
to
0031529
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Only feedback would be to double-check with architects regarding using ItemPaged for query_batch
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Show resolved
Hide resolved
sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_batch_query_client.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
This adds the `MetricsBatchQueryClient` for querying resource URIs in batches. Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
This introduces a new client for querying resources in batches. Based on archboard feedback, this will currently be a separate client since this uses a separate data-plane API as opposed to the ARM API that the
MetricsQueryClient
uses.Modifications
MetricsBatchQueryClient
for sync/async.Fixes #29092