LookoutMetrics / Client / update_anomaly_detector

update_anomaly_detector#

LookoutMetrics.Client.update_anomaly_detector(**kwargs)#

Updates a detector. After activation, you can only change a detector’s ingestion delay and description.

See also: AWS API Documentation

Request Syntax

response = client.update_anomaly_detector(
    AnomalyDetectorArn='string',
    KmsKeyArn='string',
    AnomalyDetectorDescription='string',
    AnomalyDetectorConfig={
        'AnomalyDetectorFrequency': 'P1D'|'PT1H'|'PT10M'|'PT5M'
    }
)
Parameters:
  • AnomalyDetectorArn (string) –

    [REQUIRED]

    The ARN of the detector to update.

  • KmsKeyArn (string) – The Amazon Resource Name (ARN) of an AWS KMS encryption key.

  • AnomalyDetectorDescription (string) – The updated detector description.

  • AnomalyDetectorConfig (dict) –

    Contains information about the configuration to which the detector will be updated.

    • AnomalyDetectorFrequency (string) –

      The frequency at which the detector analyzes its source data.

Return type:

dict

Returns:

Response Syntax

{
    'AnomalyDetectorArn': 'string'
}

Response Structure

  • (dict) –

    • AnomalyDetectorArn (string) –

      The ARN of the updated detector.

Exceptions

  • LookoutMetrics.Client.exceptions.ResourceNotFoundException

  • LookoutMetrics.Client.exceptions.ValidationException

  • LookoutMetrics.Client.exceptions.InternalServerException

  • LookoutMetrics.Client.exceptions.AccessDeniedException

  • LookoutMetrics.Client.exceptions.TooManyRequestsException