-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[Monitor] Add TypeSpec-based azure-monitor-querymetrics package #42174
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] Add TypeSpec-based azure-monitor-querymetrics package #42174
Conversation
This adds the TypeSpec-based azure-monitor-querymetrics package. Signed-off-by: Paul Van Eck <[email protected]>
Signed-off-by: Paul Van Eck <[email protected]>
Signed-off-by: Paul Van Eck <[email protected]>
Signed-off-by: Paul Van Eck <[email protected]>
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Signed-off-by: Paul Van Eck <[email protected]>
Signed-off-by: Paul Van Eck <[email protected]>
bd816dd
to
c6c52c0
Compare
Signed-off-by: Paul Van Eck <[email protected]>
Signed-off-by: Paul Van Eck <[email protected]>
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.
Pull Request Overview
This PR introduces the TypeSpec-based azure-monitor-querymetrics
package to the Azure SDK for Python without using a _generated
sub-directory structure. The package provides metrics querying capabilities for Azure Monitor resources across multiple regions.
Key changes include:
- Implementation of sync and async MetricsClient with TypeSpec-generated models
- Custom client patches that provide high-level query_resources methods
- Comprehensive test suite with authentication, granularity, and filtering tests
Reviewed Changes
Copilot reviewed 48 out of 48 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
sdk/monitor/ci.yml | Adds package to CI configuration |
sdk/monitor/azure-monitor-querymetrics/tsp-location.yaml | TypeSpec source configuration |
sdk/monitor/azure-monitor-querymetrics/setup.py | Package setup and dependencies |
sdk/monitor/azure-monitor-querymetrics/tests/ | Test files for sync/async clients |
sdk/monitor/azure-monitor-querymetrics/azure/monitor/querymetrics/ | Core package implementation with models, clients, and utilities |
This adds the TypeSpec-based
azure-monitor-querymetrics
package without using a_generated
sub-directory.