Skip to content

[Monitor] Add TypeSpec-based azure-monitor-querymetrics package - #42174

Merged
Paul Van Eck (pvaneck) merged 8 commits into
Azure:mainfrom
pvaneck:monitor-querymetrics-typespec-patch
Jul 25, 2025
Merged

[Monitor] Add TypeSpec-based azure-monitor-querymetrics package#42174
Paul Van Eck (pvaneck) merged 8 commits into
Azure:mainfrom
pvaneck:monitor-querymetrics-typespec-patch

Conversation

@pvaneck

Copy link
Copy Markdown
Member

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

This adds the TypeSpec-based azure-monitor-querymetrics package.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck Paul Van Eck (pvaneck) changed the title Monitor querymetrics typespec patch [Monitor] Add TypeSpec-based azure-monitor-querymetrics package Jul 23, 2025
@github-actions

github-actions Bot commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

API Change Check

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

azure-monitor-querymetrics

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck
Paul Van Eck (pvaneck) force-pushed the monitor-querymetrics-typespec-patch branch from bd816dd to c6c52c0 Compare July 23, 2025 07:30
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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
Paul Van Eck (pvaneck) merged commit 5ce5f9a into Azure:main Jul 25, 2025
36 checks passed
@pvaneck
Paul Van Eck (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.

3 participants