Skip to content
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] Typing updates #35180

Merged
merged 2 commits into from
Apr 19, 2024
Merged

[Monitor Query] Typing updates #35180

merged 2 commits into from
Apr 19, 2024

Conversation

pvaneck
Copy link
Member

@pvaneck pvaneck commented Apr 12, 2024

Regenerated with latest autorest and updated some samples.
Changed the model types for status to use Literal with the corresponding enum values to improve typing.

Closes: #32377, #32379

@github-actions github-actions bot added the Monitor Monitor, Monitor Ingestion, Monitor Query label Apr 12, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 12, 2024

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-monitor-query

@pvaneck pvaneck force-pushed the query-next-typing branch 2 times, most recently from 995d0a3 to adea84f Compare April 15, 2024 23:37
@pvaneck pvaneck marked this pull request as ready for review April 16, 2024 00:32
@pvaneck pvaneck requested a review from a team as a code owner April 16, 2024 00:32
@pvaneck pvaneck force-pushed the query-next-typing branch 2 times, most recently from 08a67b3 to eabc300 Compare April 19, 2024 21:30
Regenerated with latest autorest and updated some samples.
Adjusted samples to be more type-complete by adding `isinstance` checks
for responses that are Unions.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck pvaneck merged commit d5c3578 into Azure:main Apr 19, 2024
17 checks passed
@pvaneck pvaneck deleted the query-next-typing branch April 19, 2024 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor Monitor, Monitor Ingestion, Monitor Query
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azure-monitor-query needs typing updates for mypy version 1.8.0
3 participants