-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[Monitor] Update query package to use TypeSpec #42205
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
Conversation
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
8755b5d
to
34baeca
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.
Pull Request Overview
This PR updates the Azure Monitor Query package to use TypeSpec for code generation, replacing the previous Autorest-based generation. The primary purpose is to modernize the code generation pipeline while maintaining compatibility and functionality for logs querying capabilities.
Key changes:
- Migration from Autorest to TypeSpec code generation
- Updates to Python version requirements (minimum Python 3.9)
- Removal of metrics-related functionality (clients, tests, and samples)
Reviewed Changes
Copilot reviewed 120 out of 120 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
tsp-location.yaml | Specifies TypeSpec source location and commit for code generation |
setup.py | Updates package metadata, dependencies, and Python version requirements |
swagger/README.md | Removes Autorest configuration (replaced by TypeSpec) |
tests/ | Removes all metrics-related test files and updates logs test imports |
samples/ | Removes metrics-related samples and updates pylint directives |
azure/monitor/query/ | Regenerated models, client code, and configurations using TypeSpec |
This removes Metrics-related code/content and converts this package to be for logs querying only. Signed-off-by: Paul Van Eck <[email protected]>
34baeca
to
d989633
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.
Trust base approval :)
MetricsClient
andMetricsQueryClient
have been removed from theazure-monitor-query
package. This is part of the migration to split logs and metrics functionality into separate packages and using TypeSpec as the generation tooling for this SDK.MetricsClient
has been moved to the newazure-monitor-querymetrics
package.MetricsQueryClient
can be access through theazure-mgmt-monitor
package.