Microsoft Azure Metric API
The Metric API from Microsoft Azure, for metric.
Operations 5
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
The Metric API from Microsoft Azure, for metric.
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-metric-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Microsoft Azure Metrics Advisor Metric API
description: Microsoft Azure Metrics Advisor REST API (OpenAPI v2)
version: '1.0'
security:
- apim_key: []
ma_api_key: []
tags:
- name: Metric
paths:
/metrics/{metricId}/data/query:
post:
tags:
- Metric
summary: Microsoft Azure Get Time Series Data From Metric
operationId: microsoftAzureGetmetricdata
parameters:
- in: path
name: metricId
description: metric unique id
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/MetricDataList'
default:
description: Client error or server error (4xx or 5xx)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCode'
x-ms-examples:
Get time series data from metric:
$ref: ./examples/getMetricData.json
description: Needs a more full description created.
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MetricDataQueryOptions'
description: query time series data condition
required: true
/metrics/{metricId}/series/query:
post:
tags:
- Metric
summary: Microsoft Azure List Series Dimension Combinations From Metric
operationId: microsoftAzureGetmetricseries
parameters:
- in: path
name: metricId
description: metric unique id
required: true
schema:
type: string
format: uuid
- in: query
name: $skip
description: for paging, skipped number
schema:
type: integer
format: int32
- in: query
name: $maxpagesize
description: the maximum number of items in one page
schema:
type: integer
format: int32
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/MetricSeriesList'
default:
description: Client error or server error (4xx or 5xx)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCode'
x-ms-pageable:
nextLinkName: '@nextLink'
x-ms-examples:
List series (dimension combinations) from metric:
$ref: ./examples/getMetricSeries.json
description: Needs a more full description created.
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MetricSeriesQueryOptions'
description: filter to query series
required: true
/metrics/{metricId}/dimension/query:
post:
tags:
- Metric
summary: Microsoft Azure List Dimension From Certain Metric
operationId: microsoftAzureGetmetricdimension
parameters:
- in: path
name: metricId
description: metric unique id
required: true
schema:
type: string
format: uuid
- in: query
name: $skip
description: for paging, skipped number
schema:
type: integer
format: int32
- in: query
name: $maxpagesize
description: the maximum number of items in one page
schema:
type: integer
format: int32
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/MetricDimensionList'
default:
description: Client error or server error (4xx or 5xx)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCode'
x-ms-pageable:
nextLinkName: '@nextLink'
x-ms-examples:
List dimension from certain metric:
$ref: ./examples/getMetricDimension.json
description: Needs a more full description created.
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MetricDimensionQueryOptions'
description: query dimension option
required: true
/metrics/{metricId}/enrichment/anomalyDetection/configurations:
get:
tags:
- Metric
summary: Microsoft Azure List All Anomaly Detection Configurations For Specific Metric
operationId: microsoftAzureGetanomalydetectionconfigurationsbymetric
parameters:
- in: path
name: metricId
description: metric unique id
required: true
schema:
type: string
format: uuid
- in: query
name: $skip
description: for paging, skipped number
schema:
type: integer
format: int32
- in: query
name: $maxpagesize
description: the maximum number of items in one page
schema:
type: integer
format: int32
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/AnomalyDetectionConfigurationList'
default:
description: Client error or server error (4xx or 5xx)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCode'
x-ms-pageable:
nextLinkName: '@nextLink'
x-ms-examples:
List all anomaly detection configurations for specific metric:
$ref: ./examples/getAnomalyDetectionConfigurationsByMetric.json
description: Needs a more full description created.
/metrics/{metricId}/status/enrichment/anomalyDetection/query:
post:
tags:
- Metric
summary: Microsoft Azure Query Anomaly Detection Status
operationId: microsoftAzureGetenrichmentstatusbymetric
parameters:
- in: path
name: metricId
description: metric unique id
required: true
schema:
type: string
format: uuid
- in: query
name: $skip
description: for paging, skipped number
schema:
type: integer
format: int32
- in: query
name: $maxpagesize
description: the maximum number of items in one page
schema:
type: integer
format: int32
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/EnrichmentStatusList'
default:
description: Client error or server error (4xx or 5xx)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCode'
x-ms-pageable:
nextLinkName: '@nextLink'
x-ms-examples:
Query anomaly detection status:
$ref: ./examples/getEnrichmentStatusByMetric.json
description: Needs a more full description created.
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EnrichmentStatusQueryOption'
description: query options
required: true
components:
schemas:
MetricSeriesList:
type: object
properties:
'@nextLink':
type: string
readOnly: true
value:
type: array
items:
$ref: '#/components/schemas/MetricSeriesItem'
readOnly: true
MetricDimensionQueryOptions:
required:
- dimensionName
type: object
properties:
dimensionName:
description: dimension name
type: string
dimensionValueFilter:
description: dimension value to be filtered
type: string
example:
dimensionName: city
MetricDataQueryOptions:
required:
- endTime
- series
- startTime
type: object
properties:
startTime:
format: date-time
description: start time of query a time series data, and format should be yyyy-MM-ddThh:mm:ssZ. The maximum number of data points (series number * time range) is 10000.
type: string
endTime:
format: date-time
description: start time of query a time series data, and format should be yyyy-MM-ddThh:mm:ssZ. The maximum number of data points (series number * time range) is 10000.
type: string
series:
description: query specific series. The maximum number of series is 100.
type: array
items:
type: object
additionalProperties:
type: string
example:
startTime: '2020-01-01T00:00:00Z'
endTime: '2020-02-01T00:00:00Z'
series:
- category: __SUM__
city: Beijing
MetricDataItem:
type: object
properties:
id:
$ref: '#/components/schemas/MetricSeriesItem'
timestampList:
description: timestamps of the data related to this time series
type: array
items:
format: date-time
type: string
readOnly: true
valueList:
description: values of the data related to this time series
type: array
items:
format: double
type: number
readOnly: true
MetricSeriesQueryOptions:
required:
- activeSince
type: object
properties:
activeSince:
format: date-time
description: query series ingested after this time, the format should be yyyy-MM-ddTHH:mm:ssZ
type: string
dimensionFilter:
description: filter specific dimension name and values
type: object
additionalProperties:
type: array
items:
type: string
example:
activeSince: '2020-01-01T00:00:00Z'
dimensionFilter:
city:
- Beijing
HardThresholdCondition:
required:
- anomalyDetectorDirection
- suppressCondition
type: object
properties:
lowerBound:
format: double
description: 'lower bound
should be specified when anomalyDetectorDirection is Both or Down'
type: number
upperBound:
format: double
description: 'upper bound
should be specified when anomalyDetectorDirection is Both or Up'
type: number
anomalyDetectorDirection:
description: detection direction
enum:
- Both
- Down
- Up
type: string
x-ms-enum:
name: AnomalyDetectorDirection
modelAsString: true
suppressCondition:
$ref: '#/components/schemas/SuppressCondition'
EnrichmentStatusQueryOption:
required:
- endTime
- startTime
type: object
properties:
startTime:
format: date-time
description: the start point of time range to query anomaly detection status.
type: string
endTime:
format: date-time
description: the end point of time range to query anomaly detection status.
type: string
example:
startTime: '2020-01-01T00:00:00Z'
endTime: '2020-02-01T00:00:00Z'
ChangeThresholdCondition:
required:
- anomalyDetectorDirection
- changePercentage
- shiftPoint
- suppressCondition
- withinRange
type: object
properties:
changePercentage:
format: double
description: 'change percentage, value range : [0, +∞)'
type: number
shiftPoint:
format: int32
description: 'shift point, value range : [1, +∞)'
type: integer
withinRange:
description: 'if the withinRange = true, detected data is abnormal when the value falls in the range, in this case anomalyDetectorDirection must be Both
if the withinRange = false, detected data is abnormal when the value falls out of the range'
type: boolean
anomalyDetectorDirection:
description: detection direction
enum:
- Both
- Down
- Up
type: string
x-ms-enum:
name: AnomalyDetectorDirection
modelAsString: true
suppressCondition:
$ref: '#/components/schemas/SuppressCondition'
MetricDimensionList:
type: object
properties:
'@nextLink':
type: string
readOnly: true
value:
uniqueItems: true
type: array
items:
type: string
readOnly: true
SmartDetectionCondition:
required:
- anomalyDetectorDirection
- sensitivity
- suppressCondition
type: object
properties:
sensitivity:
format: double
description: 'sensitivity, value range : (0, 100]'
type: number
anomalyDetectorDirection:
description: detection direction
enum:
- Both
- Down
- Up
type: string
x-ms-enum:
name: AnomalyDetectorDirection
modelAsString: true
suppressCondition:
$ref: '#/components/schemas/SuppressCondition'
EnrichmentStatusList:
type: object
properties:
'@nextLink':
type: string
readOnly: true
value:
type: array
items:
$ref: '#/components/schemas/EnrichmentStatus'
readOnly: true
MetricSeriesItem:
type: object
properties:
metricId:
format: uuid
description: metric unique id
type: string
readOnly: true
dimension:
description: dimension name and value pair
type: object
additionalProperties:
type: string
readOnly: true
EnrichmentStatus:
type: object
properties:
timestamp:
format: date-time
description: data slice timestamp.
type: string
readOnly: true
status:
description: latest enrichment status for this data slice.
type: string
readOnly: true
message:
description: the trimmed message describes details of the enrichment status.
type: string
readOnly: true
SeriesConfiguration:
required:
- series
type: object
properties:
series:
$ref: '#/components/schemas/SeriesIdentity'
conditionOperator:
description: 'condition operator
should be specified when combining multiple detection conditions'
enum:
- AND
- OR
type: string
x-ms-enum:
name: AnomalyDetectionConfigurationLogicType
modelAsString: true
smartDetectionCondition:
$ref: '#/components/schemas/SmartDetectionCondition'
hardThresholdCondition:
$ref: '#/components/schemas/HardThresholdCondition'
changeThresholdCondition:
$ref: '#/components/schemas/ChangeThresholdCondition'
WholeMetricConfiguration:
type: object
properties:
conditionOperator:
description: 'condition operator
should be specified when combining multiple detection conditions'
enum:
- AND
- OR
type: string
x-ms-enum:
name: AnomalyDetectionConfigurationLogicType
modelAsString: true
smartDetectionCondition:
$ref: '#/components/schemas/SmartDetectionCondition'
hardThresholdCondition:
$ref: '#/components/schemas/HardThresholdCondition'
changeThresholdCondition:
$ref: '#/components/schemas/ChangeThresholdCondition'
SuppressCondition:
required:
- minNumber
- minRatio
type: object
properties:
minNumber:
format: int32
description: 'min point number, value range : [1, +∞)'
type: integer
minRatio:
format: double
description: 'min point ratio, value range : (0, 100]'
type: number
AnomalyDetectionConfiguration:
required:
- metricId
- name
- wholeMetricConfiguration
type: object
properties:
anomalyDetectionConfigurationId:
format: uuid
description: anomaly detection configuration unique id
type: string
readOnly: true
name:
description: anomaly detection configuration name
type: string
description:
description: anomaly detection configuration description
default: ''
type: string
metricId:
format: uuid
description: metric unique id
type: string
wholeMetricConfiguration:
$ref: '#/components/schemas/WholeMetricConfiguration'
dimensionGroupOverrideConfigurations:
description: detection configuration for series group
uniqueItems: true
type: array
items:
$ref: '#/components/schemas/DimensionGroupConfiguration'
seriesOverrideConfigurations:
description: detection configuration for specific series
uniqueItems: true
type: array
items:
$ref: '#/components/schemas/SeriesConfiguration'
example:
name: Anomaly detection configuration name
description: Anomaly detection configuration description
metricId: 22222222-2222-2222-2222-000000000001
wholeMetricConfiguration:
conditionOperator: AND
smartDetectionCondition:
sensitivity: 91
anomalyDetectorDirection: Both
suppressCondition:
minNumber: 1
minRatio: 100
hardThresholdCondition:
lowerBound: 1
upperBound: 100
anomalyDetectorDirection: Both
suppressCondition:
minNumber: 1
minRatio: 100
changeThresholdCondition:
changePercentage: 5
shiftPoint: 1
withinRange: false
anomalyDetectorDirection: Both
suppressCondition:
minNumber: 1
minRatio: 100
dimensionGroupOverrideConfigurations:
- group:
dimension:
city: Beijing
conditionOperator: AND
smartDetectionCondition:
sensitivity: 91
anomalyDetectorDirection: Both
suppressCondition:
minNumber: 1
minRatio: 100
hardThresholdCondition:
lowerBound: 1
upperBound: 100
anomalyDetectorDirection: Both
suppressCondition:
minNumber: 1
minRatio: 100
changeThresholdCondition:
changePercentage: 5
shiftPoint: 1
withinRange: false
anomalyDetectorDirection: Both
suppressCondition:
minNumber: 1
minRatio: 100
seriesOverrideConfigurations:
- series:
dimension:
category: Jewelry
city: Beijing
conditionOperator: AND
smartDetectionCondition:
sensitivity: 91
anomalyDetectorDirection: Both
suppressCondition:
minNumber: 1
minRatio: 100
hardThresholdCondition:
lowerBound: 1
upperBound: 100
anomalyDetectorDirection: Both
suppressCondition:
minNumber: 1
minRatio: 100
changeThresholdCondition:
changePercentage: 5
shiftPoint: 1
withinRange: false
anomalyDetectorDirection: Both
suppressCondition:
minNumber: 1
minRatio: 100
DimensionGroupConfiguration:
required:
- group
type: object
properties:
group:
$ref: '#/components/schemas/DimensionGroupIdentity'
conditionOperator:
description: 'condition operator
should be specified when combining multiple detection conditions'
enum:
- AND
- OR
type: string
x-ms-enum:
name: AnomalyDetectionConfigurationLogicType
modelAsString: true
smartDetectionCondition:
$ref: '#/components/schemas/SmartDetectionCondition'
hardThresholdCondition:
$ref: '#/components/schemas/HardThresholdCondition'
changeThresholdCondition:
$ref: '#/components/schemas/ChangeThresholdCondition'
MetricDataList:
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/MetricDataItem'
readOnly: true
AnomalyDetectionConfigurationList:
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/AnomalyDetectionConfiguration'
readOnly: true
'@nextLink':
type: string
readOnly: true
SeriesIdentity:
required:
- dimension
type: object
properties:
dimension:
description: dimension specified for series
type: object
additionalProperties:
type: string
ErrorCode:
type: object
properties:
message:
type: string
code:
type: string
DimensionGroupIdentity:
required:
- dimension
type: object
properties:
dimension:
description: dimension specified for series group
type: object
additionalProperties:
type: string
securitySchemes:
ma_api_key:
type: apiKey
name: x-api-key
in: header
apim_key:
type: apiKey
name: Ocp-Apim-Subscription-Key
in: header
x-ms-parameterized-host:
hostTemplate: '{endpoint}/metricsadvisor/v1.0'
useSchemePrefix: false
parameters:
- $ref: '#/components/parameters/Endpoint'