Enum MetricType

java.lang.Object
java.lang.Enum<MetricType>
software.amazon.awscdk.services.lambda.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());
 
  • Enum Constant Details

    • EVENT_COUNT

      @Stability(Stable) public static final MetricType 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

      public static MetricType[] 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

      public static MetricType valueOf(String name)
      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 name
      NullPointerException - if the argument is null