libZSservicesZSamazonka-lookoutmetricsZSamazonka-lookoutmetrics
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LookoutMetrics.Lens

Description

 
Synopsis

Operations

GetFeedback

getFeedback_nextToken :: Lens' GetFeedback (Maybe Text) Source #

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

getFeedback_maxResults :: Lens' GetFeedback (Maybe Natural) Source #

The maximum number of results to return.

getFeedback_anomalyDetectorArn :: Lens' GetFeedback Text Source #

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

getFeedbackResponse_nextToken :: Lens' GetFeedbackResponse (Maybe Text) Source #

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

ListAlerts

listAlerts_anomalyDetectorArn :: Lens' ListAlerts (Maybe Text) Source #

The ARN of the alert's detector.

listAlerts_nextToken :: Lens' ListAlerts (Maybe Text) Source #

If the result of the previous request is truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.

listAlerts_maxResults :: Lens' ListAlerts (Maybe Natural) Source #

The maximum number of results that will be displayed by the request.

listAlertsResponse_nextToken :: Lens' ListAlertsResponse (Maybe Text) Source #

If the response is truncated, the service returns this token. To retrieve the next set of results, use this token in the next request.

ListMetricSets

listMetricSets_anomalyDetectorArn :: Lens' ListMetricSets (Maybe Text) Source #

The ARN of the anomaly detector containing the metrics sets to list.

listMetricSets_nextToken :: Lens' ListMetricSets (Maybe Text) Source #

If the result of the previous request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.

listMetricSets_maxResults :: Lens' ListMetricSets (Maybe Natural) Source #

The maximum number of results to return.

listMetricSetsResponse_nextToken :: Lens' ListMetricSetsResponse (Maybe Text) Source #

If the response is truncated, the list call returns this token. To retrieve the next set of results, use the token in the next list request.

listMetricSetsResponse_metricSetSummaryList :: Lens' ListMetricSetsResponse (Maybe [MetricSetSummary]) Source #

A list of the datasets in the AWS Region, with configuration details for each.

DeleteAnomalyDetector

UpdateAnomalyDetector

updateAnomalyDetector_kmsKeyArn :: Lens' UpdateAnomalyDetector (Maybe Text) Source #

The Amazon Resource Name (ARN) of an AWS KMS encryption key.

updateAnomalyDetector_anomalyDetectorConfig :: Lens' UpdateAnomalyDetector (Maybe AnomalyDetectorConfig) Source #

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

ListAnomalyDetectors

listAnomalyDetectors_nextToken :: Lens' ListAnomalyDetectors (Maybe Text) Source #

If the result of the previous request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.

listAnomalyDetectors_maxResults :: Lens' ListAnomalyDetectors (Maybe Natural) Source #

The maximum number of results to return.

listAnomalyDetectorsResponse_nextToken :: Lens' ListAnomalyDetectorsResponse (Maybe Text) Source #

If the response is truncated, the service returns this token. To retrieve the next set of results, use the token in the next request.

DescribeAnomalyDetectionExecutions

describeAnomalyDetectionExecutions_nextToken :: Lens' DescribeAnomalyDetectionExecutions (Maybe Text) Source #

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

describeAnomalyDetectionExecutionsResponse_nextToken :: Lens' DescribeAnomalyDetectionExecutionsResponse (Maybe Text) Source #

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

CreateMetricSet

createMetricSet_dimensionList :: Lens' CreateMetricSet (Maybe (NonEmpty Text)) Source #

A list of the fields you want to treat as dimensions.

createMetricSet_offset :: Lens' CreateMetricSet (Maybe Natural) Source #

After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only supported for S3 and Redshift datasources.

createMetricSet_timestampColumn :: Lens' CreateMetricSet (Maybe TimestampColumn) Source #

Contains information about the column used for tracking time in your source data.

createMetricSet_metricSetFrequency :: Lens' CreateMetricSet (Maybe Frequency) Source #

The frequency with which the source data will be analyzed for anomalies.

createMetricSet_metricSetDescription :: Lens' CreateMetricSet (Maybe Text) Source #

A description of the dataset you are creating.

createMetricSet_timezone :: Lens' CreateMetricSet (Maybe Text) Source #

The time zone in which your source data was recorded.

createMetricSet_tags :: Lens' CreateMetricSet (Maybe (HashMap Text Text)) Source #

A list of tags to apply to the dataset.

createMetricSet_anomalyDetectorArn :: Lens' CreateMetricSet Text Source #

The ARN of the anomaly detector that will use the dataset.

createMetricSet_metricList :: Lens' CreateMetricSet (NonEmpty Metric) Source #

A list of metrics that the dataset will contain.

createMetricSet_metricSource :: Lens' CreateMetricSet MetricSource Source #

Contains information about how the source data should be interpreted.

ListTagsForResource

listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #

The resource's Amazon Resource Name (ARN).

CreateAlert

createAlert_tags :: Lens' CreateAlert (Maybe (HashMap Text Text)) Source #

A list of tags to apply to the alert.

createAlert_alertSensitivityThreshold :: Lens' CreateAlert Natural Source #

An integer from 0 to 100 specifying the alert sensitivity threshold.

createAlert_anomalyDetectorArn :: Lens' CreateAlert Text Source #

The ARN of the detector to which the alert is attached.

createAlert_action :: Lens' CreateAlert Action Source #

Action that will be triggered when there is an alert.

GetAnomalyGroup

getAnomalyGroup_anomalyDetectorArn :: Lens' GetAnomalyGroup Text Source #

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

PutFeedback

putFeedback_anomalyDetectorArn :: Lens' PutFeedback Text Source #

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

BackTestAnomalyDetector

backTestAnomalyDetector_anomalyDetectorArn :: Lens' BackTestAnomalyDetector Text Source #

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

DeleteAlert

deleteAlert_alertArn :: Lens' DeleteAlert Text Source #

The ARN of the alert to delete.

CreateAnomalyDetector

createAnomalyDetector_kmsKeyArn :: Lens' CreateAnomalyDetector (Maybe Text) Source #

The ARN of the KMS key to use to encrypt your data.

createAnomalyDetector_tags :: Lens' CreateAnomalyDetector (Maybe (HashMap Text Text)) Source #

A list of tags to apply to the anomaly detector.

createAnomalyDetector_anomalyDetectorConfig :: Lens' CreateAnomalyDetector AnomalyDetectorConfig Source #

Contains information about the configuration of the anomaly detector.

UpdateMetricSet

updateMetricSet_offset :: Lens' UpdateMetricSet (Maybe Natural) Source #

After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only supported for S3 and Redshift datasources.

updateMetricSet_metricSetArn :: Lens' UpdateMetricSet Text Source #

The ARN of the dataset to update.

ActivateAnomalyDetector

ListAnomalyGroupTimeSeries

listAnomalyGroupTimeSeries_nextToken :: Lens' ListAnomalyGroupTimeSeries (Maybe Text) Source #

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

listAnomalyGroupTimeSeries_anomalyDetectorArn :: Lens' ListAnomalyGroupTimeSeries Text Source #

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

listAnomalyGroupTimeSeriesResponse_nextToken :: Lens' ListAnomalyGroupTimeSeriesResponse (Maybe Text) Source #

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

GetSampleData

getSampleDataResponse_headerValues :: Lens' GetSampleDataResponse (Maybe [Text]) Source #

A list of header labels for the records.

TagResource

tagResource_resourceArn :: Lens' TagResource Text Source #

The resource's Amazon Resource Name (ARN).

tagResource_tags :: Lens' TagResource (HashMap Text Text) Source #

Tags to apply to the resource. Tag keys and values can contain letters, numbers, spaces, and the following symbols: _.:/=+@-

DescribeMetricSet

describeMetricSetResponse_offset :: Lens' DescribeMetricSetResponse (Maybe Natural) Source #

The offset in seconds. Only supported for S3 and Redshift datasources.

describeMetricSetResponse_timestampColumn :: Lens' DescribeMetricSetResponse (Maybe TimestampColumn) Source #

Contains information about the column used for tracking time in your source data.

describeMetricSetResponse_anomalyDetectorArn :: Lens' DescribeMetricSetResponse (Maybe Text) Source #

The ARN of the detector that contains the dataset.

describeMetricSetResponse_metricSource :: Lens' DescribeMetricSetResponse (Maybe MetricSource) Source #

Contains information about the dataset's source data.

describeMetricSetResponse_metricSetFrequency :: Lens' DescribeMetricSetResponse (Maybe Frequency) Source #

The interval at which the data will be analyzed for anomalies.

describeMetricSetResponse_timezone :: Lens' DescribeMetricSetResponse (Maybe Text) Source #

The time zone in which the dataset's data was recorded.

UntagResource

untagResource_resourceArn :: Lens' UntagResource Text Source #

The resource's Amazon Resource Name (ARN).

untagResource_tagKeys :: Lens' UntagResource (NonEmpty Text) Source #

Keys to remove from the resource's tags.

DescribeAlert

describeAlert_alertArn :: Lens' DescribeAlert Text Source #

The ARN of the alert to describe.

describeAlertResponse_alert :: Lens' DescribeAlertResponse (Maybe Alert) Source #

Contains information about an alert.

ListAnomalyGroupSummaries

listAnomalyGroupSummaries_nextToken :: Lens' ListAnomalyGroupSummaries (Maybe Text) Source #

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

listAnomalyGroupSummaries_anomalyDetectorArn :: Lens' ListAnomalyGroupSummaries Text Source #

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

listAnomalyGroupSummaries_sensitivityThreshold :: Lens' ListAnomalyGroupSummaries Natural Source #

The minimum severity score for inclusion in the output.

listAnomalyGroupSummariesResponse_nextToken :: Lens' ListAnomalyGroupSummariesResponse (Maybe Text) Source #

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

DescribeAnomalyDetector

describeAnomalyDetectorResponse_kmsKeyArn :: Lens' DescribeAnomalyDetectorResponse (Maybe Text) Source #

The ARN of the KMS key to use to encrypt your data.

Types

Action

action_lambdaConfiguration :: Lens' Action (Maybe LambdaConfiguration) Source #

A configuration for an AWS Lambda channel.

action_sNSConfiguration :: Lens' Action (Maybe SNSConfiguration) Source #

A configuration for an Amazon SNS channel.

Alert

alert_creationTime :: Lens' Alert (Maybe UTCTime) Source #

The time at which the alert was created.

alert_action :: Lens' Alert (Maybe Action) Source #

Action that will be triggered when there is an alert.

alert_anomalyDetectorArn :: Lens' Alert (Maybe Text) Source #

The ARN of the detector to which the alert is attached.

alert_alertName :: Lens' Alert (Maybe Text) Source #

The name of the alert.

alert_alertSensitivityThreshold :: Lens' Alert (Maybe Natural) Source #

The minimum severity for an anomaly to trigger the alert.

alert_alertStatus :: Lens' Alert (Maybe AlertStatus) Source #

The status of the alert.

alert_alertDescription :: Lens' Alert (Maybe Text) Source #

A description of the alert.

alert_alertArn :: Lens' Alert (Maybe Text) Source #

The ARN of the alert.

alert_alertType :: Lens' Alert (Maybe AlertType) Source #

The type of the alert.

alert_lastModificationTime :: Lens' Alert (Maybe UTCTime) Source #

The time at which the alert was last modified.

AlertSummary

alertSummary_creationTime :: Lens' AlertSummary (Maybe UTCTime) Source #

The time at which the alert was created.

alertSummary_anomalyDetectorArn :: Lens' AlertSummary (Maybe Text) Source #

The ARN of the detector to which the alert is attached.

alertSummary_alertSensitivityThreshold :: Lens' AlertSummary (Maybe Natural) Source #

The minimum severity for an anomaly to trigger the alert.

alertSummary_lastModificationTime :: Lens' AlertSummary (Maybe UTCTime) Source #

The time at which the alert was last modified.

AnomalyDetectorConfig

anomalyDetectorConfig_anomalyDetectorFrequency :: Lens' AnomalyDetectorConfig (Maybe Frequency) Source #

The frequency at which the detector analyzes its source data.

AnomalyDetectorConfigSummary

AnomalyDetectorSummary

anomalyDetectorSummary_creationTime :: Lens' AnomalyDetectorSummary (Maybe UTCTime) Source #

The time at which the detector was created.

anomalyDetectorSummary_lastModificationTime :: Lens' AnomalyDetectorSummary (Maybe UTCTime) Source #

The time at which the detector was last modified.

AnomalyGroup

anomalyGroup_metricLevelImpactList :: Lens' AnomalyGroup (Maybe [MetricLevelImpact]) Source #

A list of measures affected by the anomaly.

anomalyGroup_startTime :: Lens' AnomalyGroup (Maybe Text) Source #

The start time for the group.

anomalyGroup_primaryMetricName :: Lens' AnomalyGroup (Maybe Text) Source #

The name of the primary affected measure for the group.

anomalyGroup_endTime :: Lens' AnomalyGroup (Maybe Text) Source #

The end time for the group.

AnomalyGroupStatistics

anomalyGroupStatistics_evaluationStartDate :: Lens' AnomalyGroupStatistics (Maybe Text) Source #

The start of the time range that was searched.

AnomalyGroupSummary

anomalyGroupSummary_primaryMetricName :: Lens' AnomalyGroupSummary (Maybe Text) Source #

The name of the primary affected measure for the group.

AnomalyGroupTimeSeries

AnomalyGroupTimeSeriesFeedback

anomalyGroupTimeSeriesFeedback_isAnomaly :: Lens' AnomalyGroupTimeSeriesFeedback Bool Source #

Feedback on whether the metric is a legitimate anomaly.

AppFlowConfig

appFlowConfig_roleArn :: Lens' AppFlowConfig Text Source #

An IAM role that gives Amazon Lookout for Metrics permission to access the flow.

CloudWatchConfig

cloudWatchConfig_roleArn :: Lens' CloudWatchConfig Text Source #

An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.

ContributionMatrix

CsvFormatDescriptor

csvFormatDescriptor_quoteSymbol :: Lens' CsvFormatDescriptor (Maybe Text) Source #

The character used as a quote character.

csvFormatDescriptor_containsHeader :: Lens' CsvFormatDescriptor (Maybe Bool) Source #

Whether or not the source CSV file contains a header.

csvFormatDescriptor_charset :: Lens' CsvFormatDescriptor (Maybe Text) Source #

The character set in which the source CSV file is written.

csvFormatDescriptor_headerList :: Lens' CsvFormatDescriptor (Maybe [Text]) Source #

A list of the source CSV file's headers, if any.

csvFormatDescriptor_delimiter :: Lens' CsvFormatDescriptor (Maybe Text) Source #

The character used to delimit the source CSV file.

DimensionContribution

DimensionNameValue

DimensionValueContribution

ExecutionStatus

executionStatus_failureReason :: Lens' ExecutionStatus (Maybe Text) Source #

The reason that the run failed, if applicable.

FileFormatDescriptor

fileFormatDescriptor_jsonFormatDescriptor :: Lens' FileFormatDescriptor (Maybe JsonFormatDescriptor) Source #

Contains information about how a source JSON data file should be analyzed.

fileFormatDescriptor_csvFormatDescriptor :: Lens' FileFormatDescriptor (Maybe CsvFormatDescriptor) Source #

Contains information about how a source CSV data file should be analyzed.

ItemizedMetricStats

itemizedMetricStats_occurrenceCount :: Lens' ItemizedMetricStats (Maybe Int) Source #

The number of times that the measure appears.

JsonFormatDescriptor

jsonFormatDescriptor_charset :: Lens' JsonFormatDescriptor (Maybe Text) Source #

The character set in which the source JSON file is written.

LambdaConfiguration

lambdaConfiguration_roleArn :: Lens' LambdaConfiguration Text Source #

The ARN of an IAM role that has permission to invoke the Lambda function.

Metric

metric_namespace :: Lens' Metric (Maybe Text) Source #

The namespace for the metric.

metric_metricName :: Lens' Metric Text Source #

The name of the metric.

metric_aggregationFunction :: Lens' Metric AggregationFunction Source #

The function with which the metric is calculated.

MetricLevelImpact

metricLevelImpact_contributionMatrix :: Lens' MetricLevelImpact (Maybe ContributionMatrix) Source #

Details about the dimensions that contributed to the anomaly.

metricLevelImpact_numTimeSeries :: Lens' MetricLevelImpact (Maybe Int) Source #

The number of anomalous metrics for the measure.

MetricSetSummary

metricSetSummary_creationTime :: Lens' MetricSetSummary (Maybe UTCTime) Source #

The time at which the dataset was created.

metricSetSummary_anomalyDetectorArn :: Lens' MetricSetSummary (Maybe Text) Source #

The ARN of the detector to which the dataset belongs.

metricSetSummary_lastModificationTime :: Lens' MetricSetSummary (Maybe UTCTime) Source #

The time at which the dataset was last modified.

MetricSource

metricSource_redshiftSourceConfig :: Lens' MetricSource (Maybe RedshiftSourceConfig) Source #

An object containing information about the Amazon Redshift database configuration.

metricSource_rDSSourceConfig :: Lens' MetricSource (Maybe RDSSourceConfig) Source #

An object containing information about the Amazon Relational Database Service (RDS) configuration.

metricSource_appFlowConfig :: Lens' MetricSource (Maybe AppFlowConfig) Source #

An object containing information about the AppFlow configuration.

metricSource_cloudWatchConfig :: Lens' MetricSource (Maybe CloudWatchConfig) Source #

An object containing information about the Amazon CloudWatch monitoring configuration.

RDSSourceConfig

rDSSourceConfig_dbInstanceIdentifier :: Lens' RDSSourceConfig Text Source #

A string identifying the database instance.

rDSSourceConfig_databasePort :: Lens' RDSSourceConfig Natural Source #

The port number where the database can be accessed.

rDSSourceConfig_secretManagerArn :: Lens' RDSSourceConfig Text Source #

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

rDSSourceConfig_tableName :: Lens' RDSSourceConfig Text Source #

The name of the table in the database.

rDSSourceConfig_roleArn :: Lens' RDSSourceConfig Text Source #

The Amazon Resource Name (ARN) of the role.

rDSSourceConfig_vpcConfiguration :: Lens' RDSSourceConfig VpcConfiguration Source #

An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.

RedshiftSourceConfig

redshiftSourceConfig_clusterIdentifier :: Lens' RedshiftSourceConfig Text Source #

A string identifying the Redshift cluster.

redshiftSourceConfig_databasePort :: Lens' RedshiftSourceConfig Natural Source #

The port number where the database can be accessed.

redshiftSourceConfig_secretManagerArn :: Lens' RedshiftSourceConfig Text Source #

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

redshiftSourceConfig_tableName :: Lens' RedshiftSourceConfig Text Source #

The table name of the Redshift database.

redshiftSourceConfig_roleArn :: Lens' RedshiftSourceConfig Text Source #

The Amazon Resource Name (ARN) of the role providing access to the database.

redshiftSourceConfig_vpcConfiguration :: Lens' RedshiftSourceConfig VpcConfiguration Source #

Contains information about the Amazon Virtual Private Cloud (VPC) configuration.

S3SourceConfig

s3SourceConfig_templatedPathList :: Lens' S3SourceConfig (Maybe (NonEmpty Text)) Source #

A list of templated paths to the source files.

s3SourceConfig_historicalDataPathList :: Lens' S3SourceConfig (Maybe (NonEmpty Text)) Source #

A list of paths to the historical data files.

s3SourceConfig_fileFormatDescriptor :: Lens' S3SourceConfig (Maybe FileFormatDescriptor) Source #

Contains information about a source file's formatting.

s3SourceConfig_roleArn :: Lens' S3SourceConfig Text Source #

The ARN of an IAM role that has read and write access permissions to the source S3 bucket.

SNSConfiguration

sNSConfiguration_roleArn :: Lens' SNSConfiguration Text Source #

The ARN of the IAM role that has access to the target SNS topic.

sNSConfiguration_snsTopicArn :: Lens' SNSConfiguration Text Source #

The ARN of the target SNS topic.

SampleDataS3SourceConfig

sampleDataS3SourceConfig_templatedPathList :: Lens' SampleDataS3SourceConfig (Maybe (NonEmpty Text)) Source #

An array of strings containing the list of templated paths.

sampleDataS3SourceConfig_historicalDataPathList :: Lens' SampleDataS3SourceConfig (Maybe (NonEmpty Text)) Source #

An array of strings containing the historical set of data paths.

sampleDataS3SourceConfig_roleArn :: Lens' SampleDataS3SourceConfig Text Source #

The Amazon Resource Name (ARN) of the role.

TimeSeries

timeSeries_metricValueList :: Lens' TimeSeries [Double] Source #

The values for the metric.

TimeSeriesFeedback

timeSeriesFeedback_isAnomaly :: Lens' TimeSeriesFeedback (Maybe Bool) Source #

Feedback on whether the metric is a legitimate anomaly.

TimestampColumn

timestampColumn_columnFormat :: Lens' TimestampColumn (Maybe Text) Source #

The format of the timestamp column.

timestampColumn_columnName :: Lens' TimestampColumn (Maybe Text) Source #

The name of the timestamp column.

VpcConfiguration

vpcConfiguration_subnetIdList :: Lens' VpcConfiguration [Text] Source #

An array of strings containing the Amazon VPC subnet IDs (e.g., subnet-0bb1c79de3EXAMPLE.

vpcConfiguration_securityGroupIdList :: Lens' VpcConfiguration [Text] Source #

An array of strings containing the list of security groups.