LookoutMetrics / Client / get_feedback

get_feedback#

LookoutMetrics.Client.get_feedback(**kwargs)#

Get feedback for an anomaly group.

See also: AWS API Documentation

Request Syntax

response = client.get_feedback(
    AnomalyDetectorArn='string',
    AnomalyGroupTimeSeriesFeedback={
        'AnomalyGroupId': 'string',
        'TimeSeriesId': 'string'
    },
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • AnomalyDetectorArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the anomaly detector.

  • AnomalyGroupTimeSeriesFeedback (dict) –

    [REQUIRED]

    The anomalous metric and group ID.

    • AnomalyGroupId (string) – [REQUIRED]

      The ID of the anomaly group.

    • TimeSeriesId (string) –

      The ID of the metric.

  • 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.

Return type:

dict

Returns:

Response Syntax

{
    'AnomalyGroupTimeSeriesFeedback': [
        {
            'TimeSeriesId': 'string',
            'IsAnomaly': True|False
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • AnomalyGroupTimeSeriesFeedback (list) –

      Feedback for an anomalous metric.

      • (dict) –

        Details about feedback submitted for an anomalous metric.

        • TimeSeriesId (string) –

          The ID of the metric.

        • IsAnomaly (boolean) –

          Feedback on whether the metric is a legitimate anomaly.

    • NextToken (string) –

      The pagination token that’s included if more results are available.

Exceptions