Header menu logo FsCDK

CloudWatchMetricFilterConfig Type

Configuration for CloudWatch Metric Filter. Extracts metrics from log events based on pattern matching. **Use Cases:** - Extract custom business metrics from application logs - Monitor error patterns and frequencies - Track specific application events - Create alarms on log-based metrics **Best Practices:** - Use structured logging (JSON) for easier pattern matching - Test filter patterns with CloudWatch Logs Insights - Set appropriate metric units - Use metric namespaces to organize custom metrics

Record fields

Record Field Description

ConstructId

Full Usage: ConstructId

Field type: string option
Field type: string option

DefaultValue

Full Usage: DefaultValue

Field type: float option
Field type: float option

FilterName

Full Usage: FilterName

Field type: string
Field type: string

FilterPattern

Full Usage: FilterPattern

Field type: IFilterPattern option
Field type: IFilterPattern option

LogGroup

Full Usage: LogGroup

Field type: LogGroup option
Field type: LogGroup option

LogGroupResource

Full Usage: LogGroupResource

Field type: CloudWatchLogGroupSpec option
Field type: CloudWatchLogGroupSpec option

MetricName

Full Usage: MetricName

Field type: string option
Field type: string option

MetricNamespace

Full Usage: MetricNamespace

Field type: string option
Field type: string option

MetricValue

Full Usage: MetricValue

Field type: string option
Field type: string option

Unit

Full Usage: Unit

Field type: Unit voption
Field type: Unit voption

Type something to start searching.