Interface MetricDefinition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricDefinition.Builder,,MetricDefinition> SdkBuilder<MetricDefinition.Builder,,MetricDefinition> SdkPojo
- Enclosing class:
MetricDefinition
-
Method Summary
Modifier and TypeMethodDescriptionfilters(Collection<MetricFilter> filters) The predicates selecting which events contribute to the metric.filters(Consumer<MetricFilter.Builder>... filters) The predicates selecting which events contribute to the metric.filters(MetricFilter... filters) The predicates selecting which events contribute to the metric.The aggregation function applied to matching events (SUM, COUNT, or MAX).function(AggregationFunction function) The aggregation function applied to matching events (SUM, COUNT, or MAX).functionField(String functionField) The event property key the aggregation function operates on.The event fields to group aggregated results by.groupBy(Collection<String> groupBy) The event fields to group aggregated results by.The reset or rollup period for the aggregation.period(PeriodType period) The reset or rollup period for the aggregation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
filters
The predicates selecting which events contribute to the metric. Combined with logical AND.
- Parameters:
filters- The predicates selecting which events contribute to the metric. Combined with logical AND.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
The predicates selecting which events contribute to the metric. Combined with logical AND.
- Parameters:
filters- The predicates selecting which events contribute to the metric. Combined with logical AND.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
The predicates selecting which events contribute to the metric. Combined with logical AND.
This is a convenience method that creates an instance of theMetricFilter.Builderavoiding the need to create one manually viaMetricFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilters(List<MetricFilter>).- Parameters:
filters- a consumer that will call methods onMetricFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
function
The aggregation function applied to matching events (SUM, COUNT, or MAX).
- Parameters:
function- The aggregation function applied to matching events (SUM, COUNT, or MAX).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
function
The aggregation function applied to matching events (SUM, COUNT, or MAX).
- Parameters:
function- The aggregation function applied to matching events (SUM, COUNT, or MAX).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
functionField
The event property key the aggregation function operates on. Required for SUM and MAX; ignored for COUNT.
- Parameters:
functionField- The event property key the aggregation function operates on. Required for SUM and MAX; ignored for COUNT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
The event fields to group aggregated results by.
- Parameters:
groupBy- The event fields to group aggregated results by.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
The event fields to group aggregated results by.
- Parameters:
groupBy- The event fields to group aggregated results by.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
period
The reset or rollup period for the aggregation.
- Parameters:
period- The reset or rollup period for the aggregation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
period
The reset or rollup period for the aggregation.
- Parameters:
period- The reset or rollup period for the aggregation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-