Type object
Schema URL https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-logs-metricfilter.json
Parent schema serverless-framework-configuration
Type: object

Specifies a metric filter that describes how CloudWatch Logs extracts information from logs and transforms it into Amazon CloudWatch metrics.. Source:- https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-logs.git

Properties

FilterPattern string | Aws_CF_FunctionString required

Pattern that Logs follows to interpret each entry in a log.

LogGroupName string | Aws_CF_FunctionString required

Existing log group that you want to associate with this filter.

MetricTransformations MetricTransformation[] required

A collection of information that defines how metric data gets emitted.

minItems=1maxItems=1
FilterName string | Aws_CF_FunctionString

A name for the metric filter.

Definitions

Dimension object

the key-value pairs that further define a metric.

Key string | Aws_CF_FunctionString required

The key of the dimension. Maximum length of 255.

Value string | Aws_CF_FunctionString required

The value of the dimension. Maximum length of 255.

MetricTransformation object
MetricName string | Aws_CF_FunctionString required

The name of the CloudWatch metric. Metric name must be in ASCII format.

MetricNamespace string | Aws_CF_FunctionString required

The namespace of the CloudWatch metric.

MetricValue string | Aws_CF_FunctionString required

The value to publish to the CloudWatch metric when a filter pattern matches a log event.

DefaultValue number

The value to emit when a filter pattern does not match a log event. This value can be null.

Unit string | Aws_CF_FunctionString

The unit to assign to the metric. If you omit this, the unit is set as None.

Dimensions Dimension[]

Dimensions are the key-value pairs that further define a metric

minItems=1maxItems=3uniqueItems=true