Skip to content

[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

Merged
merged 8 commits into from
Jul 25, 2025

Conversation

pvaneck
Copy link
Member

@pvaneck pvaneck commented Jul 23, 2025

This adds the TypeSpec-based azure-monitor-querymetrics package without using a _generated sub-directory.

pvaneck added 4 commits July 22, 2025 02:23
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]>
@pvaneck pvaneck changed the title Monitor querymetrics typespec patch [Monitor] Add TypeSpec-based azure-monitor-querymetrics package Jul 23, 2025
Copy link

github-actions bot commented Jul 23, 2025

API Change Check

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

azure-monitor-querymetrics

pvaneck added 2 commits July 23, 2025 07:27
Signed-off-by: Paul Van Eck <[email protected]>
@pvaneck pvaneck force-pushed the monitor-querymetrics-typespec-patch branch from bd816dd to c6c52c0 Compare July 23, 2025 07:30
pvaneck added 2 commits July 24, 2025 18:35
Signed-off-by: Paul Van Eck <[email protected]>
Signed-off-by: Paul Van Eck <[email protected]>
@pvaneck pvaneck marked this pull request as ready for review July 25, 2025 20:43
@Copilot Copilot AI review requested due to automatic review settings July 25, 2025 20:43
Copy link
Contributor

@Copilot Copilot AI left a 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

@pvaneck pvaneck merged commit 5ce5f9a into Azure:main Jul 25, 2025
36 checks passed
@pvaneck pvaneck deleted the monitor-querymetrics-typespec-patch branch July 25, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants