---
title: "POST /ListAnomalyGroupRelatedMetrics"
method: POST
path: "/ListAnomalyGroupRelatedMetrics"
---

# POST /ListAnomalyGroupRelatedMetrics

`POST /ListAnomalyGroupRelatedMetrics`

Returns a list of measures that are potential causes or effects of an anomaly group.

## Query parameters

- `MaxResults` string
- `NextToken` string

## Request body

- object
  - `AnomalyDetectorArn` string, required — The Amazon Resource Name (ARN) of the anomaly detector.
  - `AnomalyGroupId` string, required — The ID of the anomaly group.
  - `RelationshipTypeFilter` 'CAUSE_OF_INPUT_ANOMALY_GROUP' | 'EFFECT_OF_INPUT_ANOMALY_GROUP' — Filter for potential causes (<code>CAUSE_OF_INPUT_ANOMALY_GROUP</code>) or downstream effects (<code>EFFECT_OF_INPUT_ANOMALY_GROUP</code>) of the anomaly group.
  - `MaxResults` integer — The maximum number of results to return.
  - `NextToken` string — Specify the pagination token that's returned by a previous request to retrieve the next page of results.

## Response `200`

Success

- ListAnomalyGroupRelatedMetricsResponse
  - `InterMetricImpactList` InterMetricImpactDetails[] — Aggregated details about the measures contributing to the anomaly group, and the measures potentially impacted by the anomaly group.
    - `MetricName` string — The name of the measure.
    - `AnomalyGroupId` string — The ID of the anomaly group.
    - `RelationshipType` 'CAUSE_OF_INPUT_ANOMALY_GROUP' | 'EFFECT_OF_INPUT_ANOMALY_GROUP' — Whether a measure is a potential cause of the anomaly group (<code>CAUSE_OF_INPUT_ANOMALY_GROUP</code>), or whether the measure is impacted by the anomaly group (<code>EFFECT_OF_INPUT_ANOMALY_GROUP</code>).
    - `ContributionPercentage` number, double — For potential causes (<code>CAUSE_OF_INPUT_ANOMALY_GROUP</code>), the percentage contribution the measure has in causing the anomalies.
  - `NextToken` string — The pagination token that's included if more results are available.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ValidationException
- `482` — InternalServerException
- `483` — AccessDeniedException
- `484` — TooManyRequestsException

---

[API](https://skmtc.net/aws/apis/lookoutmetrics.md) · [All operations](https://skmtc.net/aws/apis/lookoutmetrics/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lookoutmetrics/versions/aace1e573660/schema)
