class Amazonite::Lambda::EventSourceMappingMetricsConfig

Overview

The metrics configuration for your event source. Use this configuration object to define which metrics you want your event source mapping to produce.

Included Modules

Defined in:

lambda/event_source_mapping_metrics_config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(metrics : Array(EventSourceMappingMetric) | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def metrics : Array(EventSourceMappingMetric) | Nil #

The metrics you want your event source mapping to produce, including EventCount, ErrorCount, KafkaMetrics.

  • EventCount to receive metrics related to the number of events processed by your event source mapping.

  • ErrorCount (Amazon MSK and self-managed Apache Kafka) to receive metrics related to the number of errors in your event source mapping processing.

  • KafkaMetrics (Amazon MSK and self-managed Apache Kafka) to receive metrics related to the Kafka consumers from your event source mapping.

For more information about these metrics, see Event source mapping metrics.


[View source]
def metrics=(metrics : Array(EventSourceMappingMetric) | Nil) #

The metrics you want your event source mapping to produce, including EventCount, ErrorCount, KafkaMetrics.

  • EventCount to receive metrics related to the number of events processed by your event source mapping.

  • ErrorCount (Amazon MSK and self-managed Apache Kafka) to receive metrics related to the number of errors in your event source mapping processing.

  • KafkaMetrics (Amazon MSK and self-managed Apache Kafka) to receive metrics related to the Kafka consumers from your event source mapping.

For more information about these metrics, see Event source mapping metrics.


[View source]
def validate! : Nil #

[View source]