Enum MetricType
- All Implemented Interfaces:
Serializable
,Comparable<MetricType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-12T12:32:05.175Z")
@Stability(Stable)
public enum MetricType
extends Enum<MetricType>
Example:
import software.amazon.awscdk.services.lambda.eventsources.*; import software.amazon.awscdk.services.dynamodb.*; Function fn; Table table = Table.Builder.create(this, "Table") .partitionKey(Attribute.builder() .name("id") .type(AttributeType.STRING) .build()) .stream(StreamViewType.NEW_IMAGE) .build(); fn.addEventSource(DynamoEventSource.Builder.create(table) .startingPosition(StartingPosition.LATEST) .metricsConfig(MetricsConfig.builder() .metrics(List.of(MetricType.EVENT_COUNT)) .build()) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEvent Count metrics provide insights into the processing behavior of your event source mapping, including the number of events successfully processed, filtered out, or dropped. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricType
Returns the enum constant of this type with the specified name.static MetricType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EVENT_COUNT
Event Count metrics provide insights into the processing behavior of your event source mapping, including the number of events successfully processed, filtered out, or dropped.These metrics help you monitor the flow and status of events through your event source mapping.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-