Interface CreateMetricSetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateMetricSetRequest.Builder,
,CreateMetricSetRequest> LookoutMetricsRequest.Builder
,SdkBuilder<CreateMetricSetRequest.Builder,
,CreateMetricSetRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateMetricSetRequest
-
Method Summary
Modifier and TypeMethodDescriptionanomalyDetectorArn
(String anomalyDetectorArn) The ARN of the anomaly detector that will use the dataset.dimensionFilterList
(Collection<MetricSetDimensionFilter> dimensionFilterList) A list of filters that specify which data is kept for anomaly detection.dimensionFilterList
(Consumer<MetricSetDimensionFilter.Builder>... dimensionFilterList) A list of filters that specify which data is kept for anomaly detection.dimensionFilterList
(MetricSetDimensionFilter... dimensionFilterList) A list of filters that specify which data is kept for anomaly detection.dimensionList
(String... dimensionList) A list of the fields you want to treat as dimensions.dimensionList
(Collection<String> dimensionList) A list of the fields you want to treat as dimensions.metricList
(Collection<Metric> metricList) A list of metrics that the dataset will contain.metricList
(Consumer<Metric.Builder>... metricList) A list of metrics that the dataset will contain.metricList
(Metric... metricList) A list of metrics that the dataset will contain.metricSetDescription
(String metricSetDescription) A description of the dataset you are creating.metricSetFrequency
(String metricSetFrequency) The frequency with which the source data will be analyzed for anomalies.metricSetFrequency
(Frequency metricSetFrequency) The frequency with which the source data will be analyzed for anomalies.metricSetName
(String metricSetName) The name of the dataset.default CreateMetricSetRequest.Builder
metricSource
(Consumer<MetricSource.Builder> metricSource) Contains information about how the source data should be interpreted.metricSource
(MetricSource metricSource) Contains information about how the source data should be interpreted.After an interval ends, the amount of seconds that the detector waits before importing data.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A list of tags to apply to the dataset.default CreateMetricSetRequest.Builder
timestampColumn
(Consumer<TimestampColumn.Builder> timestampColumn) Contains information about the column used for tracking time in your source data.timestampColumn
(TimestampColumn timestampColumn) Contains information about the column used for tracking time in your source data.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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
A list of metrics that the dataset will contain.
This is a convenience method that creates an instance of theMetric.Builder
avoiding the need to create one manually viaMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricList(List<Metric>)
.- 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:
-
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
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.Builder
avoiding the need to create one manually viaTimestampColumn.builder()
.When the
Consumer
completes,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:
-
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
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
The frequency with which the source data will be analyzed for anomalies.
- Parameters:
metricSetFrequency
- The frequency with which the source data will be analyzed for anomalies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricSetFrequency
The frequency with which the source data will be analyzed for anomalies.
- Parameters:
metricSetFrequency
- The frequency with which the source data will be analyzed for anomalies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
Contains information about how the source data should be interpreted.
This is a convenience method that creates an instance of theMetricSource.Builder
avoiding the need to create one manually viaMetricSource.builder()
.When the
Consumer
completes,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:
-
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
-
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
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.Builder
avoiding the need to create one manually viaMetricSetDimensionFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensionFilterList(List<MetricSetDimensionFilter>)
.- 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:
-
overrideConfiguration
CreateMetricSetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateMetricSetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-