---
title: "List the metric definitions for a load test run."
method: GET
path: "/test-runs/{testRunId}/metric-definitions"
tags: ["TestRun"]
---

# List the metric definitions for a load test run.

`GET /test-runs/{testRunId}/metric-definitions`

List the metric definitions for a load test run.

## Path parameters

- `testRunId` string, required

## Query parameters

- `api-version` string, required
- `metricNamespace` string, required

## Response `200`

The request has succeeded.

- MetricDefinitionCollection — Represents collection of metric definitions.
  - `value` MetricDefinition[], required — the values for the metric definitions.
    - `dimensions` NameAndDescription[] — List of dimensions
      - `description` string — The description
      - `name` string — The name
    - `description` string — The metric description
    - `name` string — The metric name
    - `namespace` string — The namespace the metric belongs to.
    - `primaryAggregationType` 'Average' | 'Count' | 'None' | 'Total' | 'Percentile75' | 'Percentile90' | 'Percentile95' | 'Percentile96' | 'Percentile97' | 'Percentile98' | 'Percentile99' | 'Percentile999' | 'Percentile9999' — Aggregation type.
    - `supportedAggregationTypes` string[] — The collection of what all aggregation types are supported.
    - `unit` 'NotSpecified' | 'Percent' | 'Count' | 'Seconds' | 'Milliseconds' | 'Bytes' | 'BytesPerSecond' | 'CountPerSecond' — Metric unit.
    - `metricAvailabilities` MetricAvailability[] — Metric availability specifies the time grain (aggregation interval or frequency).
      - `timeGrain` 'PT5S' | 'PT10S' | 'PT1M' | 'PT5M' | 'PT1H' — Time Grain

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/loadtestservice-loadtesting.md) · [All operations](https://skmtc.dev/azure/apis/loadtestservice-loadtesting/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/loadtestservice-loadtesting/revisions/a39805b6167f/schema)
