public static final class CfnAnomalyDetector.MetricSetProperty.Builder
extends java.lang.Object
CfnAnomalyDetector.MetricSetProperty
Constructor and Description |
---|
Builder() |
public CfnAnomalyDetector.MetricSetProperty.Builder metricList(IResolvable metricList)
CfnAnomalyDetector.MetricSetProperty.getMetricList()
metricList
- A list of metrics that the dataset will contain. This parameter is required.this
public CfnAnomalyDetector.MetricSetProperty.Builder metricList(java.util.List<? extends java.lang.Object> metricList)
CfnAnomalyDetector.MetricSetProperty.getMetricList()
metricList
- A list of metrics that the dataset will contain. This parameter is required.this
public CfnAnomalyDetector.MetricSetProperty.Builder metricSetName(java.lang.String metricSetName)
CfnAnomalyDetector.MetricSetProperty.getMetricSetName()
metricSetName
- The name of the dataset. This parameter is required.this
public CfnAnomalyDetector.MetricSetProperty.Builder metricSource(IResolvable metricSource)
CfnAnomalyDetector.MetricSetProperty.getMetricSource()
metricSource
- Contains information about how the source data should be interpreted. This parameter is required.this
public CfnAnomalyDetector.MetricSetProperty.Builder metricSource(CfnAnomalyDetector.MetricSourceProperty metricSource)
CfnAnomalyDetector.MetricSetProperty.getMetricSource()
metricSource
- Contains information about how the source data should be interpreted. This parameter is required.this
public CfnAnomalyDetector.MetricSetProperty.Builder dimensionList(java.util.List<java.lang.String> dimensionList)
CfnAnomalyDetector.MetricSetProperty.getDimensionList()
dimensionList
- A list of the fields you want to treat as dimensions.this
public CfnAnomalyDetector.MetricSetProperty.Builder metricSetDescription(java.lang.String metricSetDescription)
CfnAnomalyDetector.MetricSetProperty.getMetricSetDescription()
metricSetDescription
- A description of the dataset you are creating.this
public CfnAnomalyDetector.MetricSetProperty.Builder metricSetFrequency(java.lang.String metricSetFrequency)
CfnAnomalyDetector.MetricSetProperty.getMetricSetFrequency()
metricSetFrequency
- The frequency with which the source data will be analyzed for anomalies.this
public CfnAnomalyDetector.MetricSetProperty.Builder offset(java.lang.Number offset)
CfnAnomalyDetector.MetricSetProperty.getOffset()
offset
- 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.this
public CfnAnomalyDetector.MetricSetProperty.Builder timestampColumn(IResolvable timestampColumn)
CfnAnomalyDetector.MetricSetProperty.getTimestampColumn()
timestampColumn
- Contains information about the column used for tracking time in your source data.this
public CfnAnomalyDetector.MetricSetProperty.Builder timestampColumn(CfnAnomalyDetector.TimestampColumnProperty timestampColumn)
CfnAnomalyDetector.MetricSetProperty.getTimestampColumn()
timestampColumn
- Contains information about the column used for tracking time in your source data.this
public CfnAnomalyDetector.MetricSetProperty.Builder timezone(java.lang.String timezone)
CfnAnomalyDetector.MetricSetProperty.getTimezone()
timezone
- The time zone in which your source data was recorded.this
public CfnAnomalyDetector.MetricSetProperty build()
CfnAnomalyDetector.MetricSetProperty
java.lang.NullPointerException
- if any required attribute was not provided