Interface PutMetricFilterRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchLogsRequest.Builder,CopyableBuilder<PutMetricFilterRequest.Builder,,PutMetricFilterRequest> SdkBuilder<PutMetricFilterRequest.Builder,,PutMetricFilterRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutMetricFilterRequest
-
Method Summary
Modifier and TypeMethodDescriptionapplyOnTransformedLogs(Boolean applyOnTransformedLogs) This parameter is valid only for log groups that have an active log transformer.emitSystemFieldDimensions(String... emitSystemFieldDimensions) A list of system fields to emit as additional dimensions in the generated metrics.emitSystemFieldDimensions(Collection<String> emitSystemFieldDimensions) A list of system fields to emit as additional dimensions in the generated metrics.fieldSelectionCriteria(String fieldSelectionCriteria) A filter expression that specifies which log events should be processed by this metric filter based on system fields such as source account and source region.filterName(String filterName) A name for the metric filter.filterPattern(String filterPattern) A filter pattern for extracting metric data out of ingested log events.logGroupName(String logGroupName) The name of the log group.metricTransformations(Collection<MetricTransformation> metricTransformations) A collection of information that defines how metric data gets emitted.metricTransformations(Consumer<MetricTransformation.Builder>... metricTransformations) A collection of information that defines how metric data gets emitted.metricTransformations(MetricTransformation... metricTransformations) A collection of information that defines how metric data gets emitted.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest.Builder
buildMethods 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
-
logGroupName
The name of the log group.
- Parameters:
logGroupName- The name of the log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterName
A name for the metric filter.
- Parameters:
filterName- A name for the metric filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterPattern
A filter pattern for extracting metric data out of ingested log events.
- Parameters:
filterPattern- A filter pattern for extracting metric data out of ingested log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricTransformations
PutMetricFilterRequest.Builder metricTransformations(Collection<MetricTransformation> metricTransformations) A collection of information that defines how metric data gets emitted.
- Parameters:
metricTransformations- A collection of information that defines how metric data gets emitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricTransformations
A collection of information that defines how metric data gets emitted.
- Parameters:
metricTransformations- A collection of information that defines how metric data gets emitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricTransformations
PutMetricFilterRequest.Builder metricTransformations(Consumer<MetricTransformation.Builder>... metricTransformations) A collection of information that defines how metric data gets emitted.
This is a convenience method that creates an instance of theMetricTransformation.Builderavoiding the need to create one manually viaMetricTransformation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricTransformations(List<MetricTransformation>).- Parameters:
metricTransformations- a consumer that will call methods onMetricTransformation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
applyOnTransformedLogs
This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.
If the log group uses either a log-group level or account-level transformer, and you specify
true, the metric filter will be applied on the transformed version of the log events instead of the original ingested log events.- Parameters:
applyOnTransformedLogs- This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.If the log group uses either a log-group level or account-level transformer, and you specify
true, the metric filter will be applied on the transformed version of the log events instead of the original ingested log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldSelectionCriteria
A filter expression that specifies which log events should be processed by this metric filter based on system fields such as source account and source region. Uses selection criteria syntax with operators like
=,!=,AND,OR,IN,NOT IN. Example:@aws.region = "us-east-1"or@aws.account IN ["123456789012", "987654321098"]. Maximum length: 2000 characters.- Parameters:
fieldSelectionCriteria- A filter expression that specifies which log events should be processed by this metric filter based on system fields such as source account and source region. Uses selection criteria syntax with operators like=,!=,AND,OR,IN,NOT IN. Example:@aws.region = "us-east-1"or@aws.account IN ["123456789012", "987654321098"]. Maximum length: 2000 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emitSystemFieldDimensions
PutMetricFilterRequest.Builder emitSystemFieldDimensions(Collection<String> emitSystemFieldDimensions) A list of system fields to emit as additional dimensions in the generated metrics. Valid values are
@aws.accountand@aws.region. These dimensions help identify the source of centralized log data and count toward the total dimension limit for metric filters.- Parameters:
emitSystemFieldDimensions- A list of system fields to emit as additional dimensions in the generated metrics. Valid values are@aws.accountand@aws.region. These dimensions help identify the source of centralized log data and count toward the total dimension limit for metric filters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emitSystemFieldDimensions
A list of system fields to emit as additional dimensions in the generated metrics. Valid values are
@aws.accountand@aws.region. These dimensions help identify the source of centralized log data and count toward the total dimension limit for metric filters.- Parameters:
emitSystemFieldDimensions- A list of system fields to emit as additional dimensions in the generated metrics. Valid values are@aws.accountand@aws.region. These dimensions help identify the source of centralized log data and count toward the total dimension limit for metric filters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutMetricFilterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutMetricFilterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-