---
name: azure-metrics
description: "Azure Metrics API skill. Use when working with Azure Metrics for subscriptions. Covers 1 endpoint."
version: 1.0.0
generator: lapsh
---

# Azure Metrics
API version: 2018-09-01-preview

## Auth
ApiKey Authorization in header

## Base URL
https://monitoring.azure.com

## Setup
1. Set your API key in the appropriate header
2. Verify API access with a test request
3. POST /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics -- create first metric

## Endpoints
1 endpoint across 1 group. See references/api-spec.lap for full details.

### Subscriptions
| Method | Path | Description |
|--------|------|-------------|
| POST | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics | **Post the metric values for a resource**. |

## Common Questions
Match user requests to endpoints in references/api-spec.lap. Key patterns:
- "Create a metric?" -> POST /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProvider}/{resourceTypeName}/{resourceName}/metrics
- "How to authenticate?" -> See Auth section above

## Response Tips
- Check response schemas in references/api-spec.lap for field details
- Create/update endpoints return the modified resource on success

## References
- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas

> Generated from the official API spec by [LAP](https://lap.sh)
