MDAA TS Docs
    Preparing search index...

    Configuration for CloudWatch metric transformations defining log-to-metric conversion.

    Specifies how to extract metric values from Lambda function logs and publish them to CloudWatch Metrics with dimensions and units.

    Use cases: Error rate metrics; Performance metrics; Business metrics; Custom monitoring

    AWS: CloudWatch metric transformation for log-to-metric conversion and custom metric publishing

    Validation: metricName and metricNamespace required; metricValue must be valid extraction pattern

    interface MetricTransformationProps {
        defaultValue?: number;
        dimensions?: { [key: string]: string };
        metricName: string;
        metricNamespace: string;
        metricValue: string;
        unit?: string;
    }
    Index

    Properties

    defaultValue?: number

    Default value when filter pattern does not match.

    dimensions?: { [key: string]: string }

    Metric dimensions for segmentation and filtering.

    metricName: string

    CloudWatch metric name for the transformed metric.

    metricNamespace: string

    CloudWatch metric namespace for metric organization.

    metricValue: string

    Metric value extraction pattern (constant like "1" or field reference like "$duration").

    unit?: string

    CloudWatch metric unit (e.g., Count, Milliseconds).