Interface CreateMetricSetRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateMetricSetRequest.Builder,CreateMetricSetRequest>,LookoutMetricsRequest.Builder,SdkBuilder<CreateMetricSetRequest.Builder,CreateMetricSetRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateMetricSetRequest
public static interface CreateMetricSetRequest.Builder extends LookoutMetricsRequest.Builder, SdkPojo, CopyableBuilder<CreateMetricSetRequest.Builder,CreateMetricSetRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateMetricSetRequest.BuilderanomalyDetectorArn(String anomalyDetectorArn)The ARN of the anomaly detector that will use the dataset.CreateMetricSetRequest.BuilderdimensionFilterList(Collection<MetricSetDimensionFilter> dimensionFilterList)A list of filters that specify which data is kept for anomaly detection.CreateMetricSetRequest.BuilderdimensionFilterList(Consumer<MetricSetDimensionFilter.Builder>... dimensionFilterList)A list of filters that specify which data is kept for anomaly detection.CreateMetricSetRequest.BuilderdimensionFilterList(MetricSetDimensionFilter... dimensionFilterList)A list of filters that specify which data is kept for anomaly detection.CreateMetricSetRequest.BuilderdimensionList(String... dimensionList)A list of the fields you want to treat as dimensions.CreateMetricSetRequest.BuilderdimensionList(Collection<String> dimensionList)A list of the fields you want to treat as dimensions.CreateMetricSetRequest.BuildermetricList(Collection<Metric> metricList)A list of metrics that the dataset will contain.CreateMetricSetRequest.BuildermetricList(Consumer<Metric.Builder>... metricList)A list of metrics that the dataset will contain.CreateMetricSetRequest.BuildermetricList(Metric... metricList)A list of metrics that the dataset will contain.CreateMetricSetRequest.BuildermetricSetDescription(String metricSetDescription)A description of the dataset you are creating.CreateMetricSetRequest.BuildermetricSetFrequency(String metricSetFrequency)The frequency with which the source data will be analyzed for anomalies.CreateMetricSetRequest.BuildermetricSetFrequency(Frequency metricSetFrequency)The frequency with which the source data will be analyzed for anomalies.CreateMetricSetRequest.BuildermetricSetName(String metricSetName)The name of the dataset.default CreateMetricSetRequest.BuildermetricSource(Consumer<MetricSource.Builder> metricSource)Contains information about how the source data should be interpreted.CreateMetricSetRequest.BuildermetricSource(MetricSource metricSource)Contains information about how the source data should be interpreted.CreateMetricSetRequest.Builderoffset(Integer offset)After an interval ends, the amount of seconds that the detector waits before importing data.CreateMetricSetRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateMetricSetRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateMetricSetRequest.Buildertags(Map<String,String> tags)A list of tags to apply to the dataset.default CreateMetricSetRequest.BuildertimestampColumn(Consumer<TimestampColumn.Builder> timestampColumn)Contains information about the column used for tracking time in your source data.CreateMetricSetRequest.BuildertimestampColumn(TimestampColumn timestampColumn)Contains information about the column used for tracking time in your source data.CreateMetricSetRequest.Buildertimezone(String timezone)The time zone in which your source data was recorded.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lookoutmetrics.model.LookoutMetricsRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
anomalyDetectorArn
CreateMetricSetRequest.Builder anomalyDetectorArn(String anomalyDetectorArn)
The ARN of the anomaly detector that will use the dataset.
- Parameters:
anomalyDetectorArn- The ARN of the anomaly detector that will use the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSetName
CreateMetricSetRequest.Builder metricSetName(String metricSetName)
The name of the dataset.
- Parameters:
metricSetName- The name of the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSetDescription
CreateMetricSetRequest.Builder metricSetDescription(String metricSetDescription)
A description of the dataset you are creating.
- Parameters:
metricSetDescription- A description of the dataset you are creating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricList
CreateMetricSetRequest.Builder metricList(Collection<Metric> metricList)
A list of metrics that the dataset will contain.
- Parameters:
metricList- A list of metrics that the dataset will contain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricList
CreateMetricSetRequest.Builder metricList(Metric... metricList)
A list of metrics that the dataset will contain.
- Parameters:
metricList- A list of metrics that the dataset will contain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricList
CreateMetricSetRequest.Builder metricList(Consumer<Metric.Builder>... metricList)
A list of metrics that the dataset will contain.
This is a convenience method that creates an instance of theMetric.Builderavoiding the need to create one manually viaMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metricList(List.) - Parameters:
metricList- a consumer that will call methods onMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metricList(java.util.Collection)
-
offset
CreateMetricSetRequest.Builder offset(Integer 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestampColumn
CreateMetricSetRequest.Builder timestampColumn(TimestampColumn timestampColumn)
Contains information about the column used for tracking time in your source data.
- Parameters:
timestampColumn- Contains information about the column used for tracking time in your source data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestampColumn
default CreateMetricSetRequest.Builder timestampColumn(Consumer<TimestampColumn.Builder> timestampColumn)
Contains information about the column used for tracking time in your source data.
This is a convenience method that creates an instance of theTimestampColumn.Builderavoiding the need to create one manually viaTimestampColumn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimestampColumn(TimestampColumn).- Parameters:
timestampColumn- a consumer that will call methods onTimestampColumn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timestampColumn(TimestampColumn)
-
dimensionList
CreateMetricSetRequest.Builder dimensionList(Collection<String> dimensionList)
A list of the fields you want to treat as dimensions.
- Parameters:
dimensionList- A list of the fields you want to treat as dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionList
CreateMetricSetRequest.Builder dimensionList(String... dimensionList)
A list of the fields you want to treat as dimensions.
- Parameters:
dimensionList- A list of the fields you want to treat as dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSetFrequency
CreateMetricSetRequest.Builder metricSetFrequency(String metricSetFrequency)
The frequency with which the source data will be analyzed for anomalies.
-
metricSetFrequency
CreateMetricSetRequest.Builder metricSetFrequency(Frequency metricSetFrequency)
The frequency with which the source data will be analyzed for anomalies.
-
metricSource
CreateMetricSetRequest.Builder metricSource(MetricSource metricSource)
Contains information about how the source data should be interpreted.
- Parameters:
metricSource- Contains information about how the source data should be interpreted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSource
default CreateMetricSetRequest.Builder metricSource(Consumer<MetricSource.Builder> metricSource)
Contains information about how the source data should be interpreted.
This is a convenience method that creates an instance of theMetricSource.Builderavoiding the need to create one manually viaMetricSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricSource(MetricSource).- Parameters:
metricSource- a consumer that will call methods onMetricSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
metricSource(MetricSource)
-
timezone
CreateMetricSetRequest.Builder timezone(String timezone)
The time zone in which your source data was recorded.
- Parameters:
timezone- The time zone in which your source data was recorded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateMetricSetRequest.Builder tags(Map<String,String> tags)
A list of tags to apply to the dataset.
- Parameters:
tags- A list of tags to apply to the dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionFilterList
CreateMetricSetRequest.Builder dimensionFilterList(Collection<MetricSetDimensionFilter> dimensionFilterList)
A list of filters that specify which data is kept for anomaly detection.
- Parameters:
dimensionFilterList- A list of filters that specify which data is kept for anomaly detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionFilterList
CreateMetricSetRequest.Builder dimensionFilterList(MetricSetDimensionFilter... dimensionFilterList)
A list of filters that specify which data is kept for anomaly detection.
- Parameters:
dimensionFilterList- A list of filters that specify which data is kept for anomaly detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionFilterList
CreateMetricSetRequest.Builder dimensionFilterList(Consumer<MetricSetDimensionFilter.Builder>... dimensionFilterList)
A list of filters that specify which data is kept for anomaly detection.
This is a convenience method that creates an instance of theMetricSetDimensionFilter.Builderavoiding the need to create one manually viaMetricSetDimensionFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dimensionFilterList(List.) - Parameters:
dimensionFilterList- a consumer that will call methods onMetricSetDimensionFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dimensionFilterList(java.util.Collection)
-
overrideConfiguration
CreateMetricSetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateMetricSetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-