Interface CfnAnomalyDetector.MetricSetProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAnomalyDetector.MetricSetProperty.Jsii$Proxy
- Enclosing class:
CfnAnomalyDetector
@Stability(Stable)
public static interface CfnAnomalyDetector.MetricSetProperty
extends software.amazon.jsii.JsiiSerializable
Contains information about a dataset.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lookoutmetrics.*;
MetricSetProperty metricSetProperty = MetricSetProperty.builder()
.metricList(List.of(MetricProperty.builder()
.aggregationFunction("aggregationFunction")
.metricName("metricName")
// the properties below are optional
.namespace("namespace")
.build()))
.metricSetName("metricSetName")
.metricSource(MetricSourceProperty.builder()
.appFlowConfig(AppFlowConfigProperty.builder()
.flowName("flowName")
.roleArn("roleArn")
.build())
.cloudwatchConfig(CloudwatchConfigProperty.builder()
.roleArn("roleArn")
.build())
.rdsSourceConfig(RDSSourceConfigProperty.builder()
.databaseHost("databaseHost")
.databaseName("databaseName")
.databasePort(123)
.dbInstanceIdentifier("dbInstanceIdentifier")
.roleArn("roleArn")
.secretManagerArn("secretManagerArn")
.tableName("tableName")
.vpcConfiguration(VpcConfigurationProperty.builder()
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetIdList(List.of("subnetIdList"))
.build())
.build())
.redshiftSourceConfig(RedshiftSourceConfigProperty.builder()
.clusterIdentifier("clusterIdentifier")
.databaseHost("databaseHost")
.databaseName("databaseName")
.databasePort(123)
.roleArn("roleArn")
.secretManagerArn("secretManagerArn")
.tableName("tableName")
.vpcConfiguration(VpcConfigurationProperty.builder()
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetIdList(List.of("subnetIdList"))
.build())
.build())
.s3SourceConfig(S3SourceConfigProperty.builder()
.fileFormatDescriptor(FileFormatDescriptorProperty.builder()
.csvFormatDescriptor(CsvFormatDescriptorProperty.builder()
.charset("charset")
.containsHeader(false)
.delimiter("delimiter")
.fileCompression("fileCompression")
.headerList(List.of("headerList"))
.quoteSymbol("quoteSymbol")
.build())
.jsonFormatDescriptor(JsonFormatDescriptorProperty.builder()
.charset("charset")
.fileCompression("fileCompression")
.build())
.build())
.roleArn("roleArn")
// the properties below are optional
.historicalDataPathList(List.of("historicalDataPathList"))
.templatedPathList(List.of("templatedPathList"))
.build())
.build())
// the properties below are optional
.dimensionList(List.of("dimensionList"))
.metricSetDescription("metricSetDescription")
.metricSetFrequency("metricSetFrequency")
.offset(123)
.timestampColumn(TimestampColumnProperty.builder()
.columnFormat("columnFormat")
.columnName("columnName")
.build())
.timezone("timezone")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAnomalyDetector.MetricSetPropertystatic final classAn implementation forCfnAnomalyDetector.MetricSetProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A list of the fields you want to treat as dimensions.A list of metrics that the dataset will contain.default StringA description of the dataset you are creating.default StringThe frequency with which the source data will be analyzed for anomalies.The name of the dataset.Contains information about how the source data should be interpreted.default NumberAfter an interval ends, the amount of seconds that the detector waits before importing data.default ObjectContains information about the column used for tracking time in your source data.default StringThe time zone in which your source data was recorded.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricList
A list of metrics that the dataset will contain.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAnomalyDetector.MetricProperty>- See Also:
-
getMetricSetName
The name of the dataset.- See Also:
-
getMetricSource
Contains information about how the source data should be interpreted.Returns union: either
IResolvableorCfnAnomalyDetector.MetricSourceProperty- See Also:
-
getDimensionList
A list of the fields you want to treat as dimensions.- See Also:
-
getMetricSetDescription
A description of the dataset you are creating.- See Also:
-
getMetricSetFrequency
The frequency with which the source data will be analyzed for anomalies.- See Also:
-
getOffset
After an interval ends, the amount of seconds that the detector waits before importing data.Offset is only supported for S3, Redshift, Athena and datasources.
- See Also:
-
getTimestampColumn
Contains information about the column used for tracking time in your source data.Returns union: either
IResolvableorCfnAnomalyDetector.TimestampColumnProperty- See Also:
-
getTimezone
The time zone in which your source data was recorded.- See Also:
-
builder
-