Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

create_anomaly_detector

create_anomaly_detector(**kwargs)

Creates an anomaly detector.

See also: AWS API Documentation

Request Syntax

response = client.create_anomaly_detector(
    AnomalyDetectorName='string',
    AnomalyDetectorDescription='string',
    AnomalyDetectorConfig={
        'AnomalyDetectorFrequency': 'P1D'|'PT1H'|'PT10M'|'PT5M'
    },
    KmsKeyArn='string',
    Tags={
        'string': 'string'
    }
)
Parameters
  • AnomalyDetectorName (string) --

    [REQUIRED]

    The name of the detector.

  • AnomalyDetectorDescription (string) -- A description of the detector.
  • AnomalyDetectorConfig (dict) --

    [REQUIRED]

    Contains information about the configuration of the anomaly detector.

    • AnomalyDetectorFrequency (string) --

      The frequency at which the detector analyzes its source data.

  • KmsKeyArn (string) -- The ARN of the KMS key to use to encrypt your data.
  • Tags (dict) --

    A list of tags to apply to the anomaly detector.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{
    'AnomalyDetectorArn': 'string'
}

Response Structure

  • (dict) --

    • AnomalyDetectorArn (string) --

      The ARN of the detector.

Exceptions

  • LookoutMetrics.Client.exceptions.ConflictException
  • LookoutMetrics.Client.exceptions.ValidationException
  • LookoutMetrics.Client.exceptions.ServiceQuotaExceededException
  • LookoutMetrics.Client.exceptions.ConflictException
  • LookoutMetrics.Client.exceptions.AccessDeniedException
  • LookoutMetrics.Client.exceptions.TooManyRequestsException
  • LookoutMetrics.Client.exceptions.InternalServerException