From eda1c8ead2713657e2100ddbf3783e1aa0478106 Mon Sep 17 00:00:00 2001 From: AWS <> Date: Tue, 21 Dec 2021 19:06:18 +0000 Subject: [PATCH] Amazon Lookout for Metrics Update: This release adds support for Causal Relationships. Added new ListAnomalyGroupRelatedMetrics API operation and InterMetricImpactDetails API data type --- ...ature-AmazonLookoutforMetrics-65fea42.json | 6 ++ .../codegen-resources/paginators-1.json | 5 + .../codegen-resources/service-2.json | 98 +++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 .changes/next-release/feature-AmazonLookoutforMetrics-65fea42.json diff --git a/.changes/next-release/feature-AmazonLookoutforMetrics-65fea42.json b/.changes/next-release/feature-AmazonLookoutforMetrics-65fea42.json new file mode 100644 index 000000000000..a0956cc614c4 --- /dev/null +++ b/.changes/next-release/feature-AmazonLookoutforMetrics-65fea42.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "Amazon Lookout for Metrics", + "contributor": "", + "description": "This release adds support for Causal Relationships. Added new ListAnomalyGroupRelatedMetrics API operation and InterMetricImpactDetails API data type" +} diff --git a/services/lookoutmetrics/src/main/resources/codegen-resources/paginators-1.json b/services/lookoutmetrics/src/main/resources/codegen-resources/paginators-1.json index 14cadb46769f..f96ea0abb8d5 100644 --- a/services/lookoutmetrics/src/main/resources/codegen-resources/paginators-1.json +++ b/services/lookoutmetrics/src/main/resources/codegen-resources/paginators-1.json @@ -20,6 +20,11 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListAnomalyGroupRelatedMetrics": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListAnomalyGroupSummaries": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/services/lookoutmetrics/src/main/resources/codegen-resources/service-2.json b/services/lookoutmetrics/src/main/resources/codegen-resources/service-2.json index bc5fd5766635..eede91cf2658 100644 --- a/services/lookoutmetrics/src/main/resources/codegen-resources/service-2.json +++ b/services/lookoutmetrics/src/main/resources/codegen-resources/service-2.json @@ -293,6 +293,23 @@ ], "documentation":"
Lists the detectors in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
" }, + "ListAnomalyGroupRelatedMetrics":{ + "name":"ListAnomalyGroupRelatedMetrics", + "http":{ + "method":"POST", + "requestUri":"/ListAnomalyGroupRelatedMetrics" + }, + "input":{"shape":"ListAnomalyGroupRelatedMetricsRequest"}, + "output":{"shape":"ListAnomalyGroupRelatedMetricsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"TooManyRequestsException"} + ], + "documentation":"Returns a list of measures that are potential causes or effects of an anomaly group.
" + }, "ListAnomalyGroupSummaries":{ "name":"ListAnomalyGroupSummaries", "http":{ @@ -1550,6 +1567,32 @@ "min":1 }, "Integer":{"type":"integer"}, + "InterMetricImpactDetails":{ + "type":"structure", + "members":{ + "MetricName":{ + "shape":"MetricName", + "documentation":"The name of the measure.
" + }, + "AnomalyGroupId":{ + "shape":"UUID", + "documentation":"The ID of the anomaly group.
" + }, + "RelationshipType":{ + "shape":"RelationshipType", + "documentation":"Whether a measure is a potential cause of the anomaly group (CAUSE_OF_INPUT_ANOMALY_GROUP
), or whether the measure is impacted by the anomaly group (EFFECT_OF_INPUT_ANOMALY_GROUP
).
For potential causes (CAUSE_OF_INPUT_ANOMALY_GROUP
), the percentage contribution the measure has in causing the anomalies.
Aggregated details about the measures contributing to the anomaly group, and the measures potentially impacted by the anomaly group.
" + }, + "InterMetricImpactList":{ + "type":"list", + "member":{"shape":"InterMetricImpactDetails"} + }, "InternalServerException":{ "type":"structure", "required":["Message"], @@ -1682,6 +1725,49 @@ } } }, + "ListAnomalyGroupRelatedMetricsRequest":{ + "type":"structure", + "required":[ + "AnomalyDetectorArn", + "AnomalyGroupId" + ], + "members":{ + "AnomalyDetectorArn":{ + "shape":"Arn", + "documentation":"The Amazon Resource Name (ARN) of the anomaly detector.
" + }, + "AnomalyGroupId":{ + "shape":"UUID", + "documentation":"The ID of the anomaly group.
" + }, + "RelationshipTypeFilter":{ + "shape":"RelationshipType", + "documentation":"Filter for potential causes (CAUSE_OF_INPUT_ANOMALY_GROUP
) or downstream effects (EFFECT_OF_INPUT_ANOMALY_GROUP
) of the anomaly group.
The maximum number of results to return.
", + "box":true + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"Specify the pagination token that's returned by a previous request to retrieve the next page of results.
" + } + } + }, + "ListAnomalyGroupRelatedMetricsResponse":{ + "type":"structure", + "members":{ + "InterMetricImpactList":{ + "shape":"InterMetricImpactList", + "documentation":"Aggregated details about the measures contributing to the anomaly group, and the measures potentially impacted by the anomaly group.
" + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"The pagination token that's included if more results are available.
" + } + } + }, "ListAnomalyGroupSummariesRequest":{ "type":"structure", "required":[ @@ -1862,6 +1948,11 @@ }, "documentation":"A calculation made by contrasting a measure and a dimension from your source data.
" }, + "MetricChangePercentage":{ + "type":"double", + "max":100.0, + "min":0.0 + }, "MetricLevelImpact":{ "type":"structure", "members":{ @@ -2144,6 +2235,13 @@ }, "documentation":"Provides information about the Amazon Redshift database configuration.
" }, + "RelationshipType":{ + "type":"string", + "enum":[ + "CAUSE_OF_INPUT_ANOMALY_GROUP", + "EFFECT_OF_INPUT_ANOMALY_GROUP" + ] + }, "ResourceId":{"type":"string"}, "ResourceNotFoundException":{ "type":"structure",