# Metrics Advisor API

> Metrics Advisor API on Apizie: 45 endpoints (Get latest usage stats, Query a single anomaly alerting configuration, Update anomaly alerting configuration, Delete anomaly alerting configuration, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:azure-cognitiveservices-metrics-advisor`
- Category: Cloud
- Status: byok
- Source: https://learn.microsoft.com/rest/api/azure/
- Page: https://apizie.tech/api/cloud/azure-cognitiveservices-metrics-advisor
- OpenAPI: https://apizie.tech/api/cloud/azure-cognitiveservices-metrics-advisor/openapi.json

Microsoft Azure Metrics Advisor REST API (OpenAPI v2)

## Endpoints

### Get latest usage stats
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-active-series-count` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |

### Query a single anomaly alerting configuration
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-anomaly-alerting-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly alerting configuration unique id |

### Update anomaly alerting configuration
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/update-anomaly-alerting-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly alerting configuration unique id |
| body | object | yes | JSON request body |

### Delete anomaly alerting configuration
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/delete-anomaly-alerting-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly alerting configuration unique id |

### Create anomaly alerting configuration
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/create-anomaly-alerting-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| body | object | yes | JSON request body |

### Query alerts under anomaly alerting configuration
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-alerts-by-anomaly-alerting-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly alerting configuration unique id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |
| body | object | yes | JSON request body |

### Query anomalies under a specific alert
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-anomalies-from-alert-by-anomaly-alerting-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly alerting configuration unique id |
| alertId | string | yes | alert id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |

### Query incidents under a specific alert
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-incidents-from-alert-by-anomaly-alerting-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly alerting configuration unique id |
| alertId | string | yes | alert id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |

### Query a single anomaly detection configuration
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-anomaly-detection-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |

### Update anomaly detection configuration
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/update-anomaly-detection-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |
| body | object | yes | JSON request body |

### Delete anomaly detection configuration
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/delete-anomaly-detection-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |

### Create anomaly detection configuration
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/create-anomaly-detection-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| body | object | yes | JSON request body |

### List all anomaly alerting configurations for specific anomaly detection configuration
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-anomaly-alerting-configurations-by-anomaly-detection-con` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |

### Query series enriched by anomaly detection
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-series-by-anomaly-detection-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |
| body | object | yes | JSON request body |

### Query anomalies under anomaly detection configuration
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-anomalies-by-anomaly-detection-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |
| body | object | yes | JSON request body |

### Query dimension values of anomalies
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-dimension-of-anomalies-by-anomaly-detection-configuratio` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |
| body | object | yes | JSON request body |

### Query incidents under anomaly detection configuration
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-incidents-by-anomaly-detection-configuration-next-pages` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |
| $maxpagesize | integer | no | the maximum number of items in one page |
| $token | string | no | the token for getting the next page |

### Query incidents under anomaly detection configuration
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-incidents-by-anomaly-detection-configuration` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |
| $maxpagesize | integer | no | the maximum number of items in one page |
| body | object | yes | JSON request body |

### Query root cause for incident
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-root-cause-of-incident-by-anomaly-detection-configuratio` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| configurationId | string | yes | anomaly detection configuration unique id |
| incidentId | string | yes | incident id |

### List all credentials
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/list-credentials` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |

### Create a new data source credential
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/create-credential` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| body | object | yes | JSON request body |

### Get a data source credential
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-credential` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| credentialId | string | yes | Data source credential unique ID |

### Update a data source credential
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/update-credential` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| credentialId | string | yes | Data source credential unique ID |
| body | object | yes | JSON request body |

### Delete a data source credential
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/delete-credential` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| credentialId | string | yes | Data source credential unique ID |

### List all data feeds
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/list-data-feeds` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| dataFeedName | string | no | filter data feed by its name |
| dataSourceType | string | no | filter data feed by its source type |
| granularityName | string | no | filter data feed by its granularity |
| status | string | no | filter data feed by its status |
| creator | string | no | filter data feed by its creator |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |

### Create a new data feed
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/create-data-feed` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| body | object | yes | JSON request body |

### Get a data feed by its id
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-data-feed-by-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| dataFeedId | string | yes | The data feed unique id |

### Update a data feed
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/update-data-feed` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| dataFeedId | string | yes | The data feed unique id |
| body | object | yes | JSON request body |

### Delete a data feed
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/delete-data-feed` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| dataFeedId | string | yes | The data feed unique id |

### Get a metric feedback by its id
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-metric-feedback` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| feedbackId | string | yes | the unique feedback ID |

### List feedback on the given metric
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/list-metric-feedbacks` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |
| body | object | yes | JSON request body |

### Create a new metric feedback
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/create-metric-feedback` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| body | object | yes | JSON request body |

### List all hooks
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/list-hooks` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| hookName | string | no | filter hook by its name |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |

### Create a new hook
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/create-hook` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| body | object | yes | JSON request body |

### Get a hook by its id
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-hook` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| hookId | string | yes | Hook unique ID |

### Update a hook
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/update-hook` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| hookId | string | yes | Hook unique ID |
| body | object | yes | JSON request body |

### Delete a hook
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/delete-hook` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| hookId | string | yes | Hook unique ID |

### Get data ingestion status by data feed
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-data-feed-ingestion-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| dataFeedId | string | yes | The data feed unique id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |
| body | object | yes | JSON request body |

### Reset data ingestion status by data feed to backfill data
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/reset-data-feed-ingestion-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| dataFeedId | string | yes | The data feed unique id |
| body | object | yes | JSON request body |

### Get data last success ingestion job timestamp by data feed
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-ingestion-progress` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| dataFeedId | string | yes | The data feed unique id |

### Get time series data from metric
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-metric-data` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| metricId | string | yes | metric unique id |
| body | object | yes | JSON request body |

### List series (dimension combinations) from metric
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-metric-series` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| metricId | string | yes | metric unique id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |
| body | object | yes | JSON request body |

### List dimension from certain metric
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-metric-dimension` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| metricId | string | yes | metric unique id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |
| body | object | yes | JSON request body |

### List all anomaly detection configurations for specific metric
`GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-anomaly-detection-configurations-by-metric` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| metricId | string | yes | metric unique id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |

### Query anomaly detection status
`POST https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-enrichment-status-by-metric` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | yes | Supported Cognitive Services endpoints (protocol and hostname, for example: https:// .cognitiveservices.azure.com). |
| metricId | string | yes | metric unique id |
| $skip | integer | no | for paging, skipped number |
| $maxpagesize | integer | no | the maximum number of items in one page |
| body | object | yes | JSON request body |

## Example
```
curl "https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-active-series-count" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Metrics Advisor API?
Create a free Apizie key, then send GET https://apizie.tech/v1/cloud:azure-cognitiveservices-metrics-advisor/get-active-series-count with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Metrics Advisor API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Metrics Advisor itself also needs your own key from azure.com.

### Can AI agents use the Metrics Advisor API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:azure-cognitiveservices-metrics-advisor.

### What is the status of the Metrics Advisor API?
Needs your own provider key (bring your own key)
