AwsCloudwatchMetricFilterArgs
interface AwsCloudwatchMetricFilterArgs extends Omit<aws.cloudwatch.LogMetricFilterArgs, 'logGroupName' | 'name'> {
applyOnTransformedLogs?: Input<boolean | undefined>;
logGroup: AwsCloudwatchLogGroupReference;
metricTransformation: Input<LogMetricFilterMetricTransformation>;
name: string;
pattern: Input<string>;
region?: Input<string | undefined>;
}Input arguments for the CloudWatch metric-filter capability.
Example
const metricFilter: AwsCloudwatchMetricFilterArgs = {
name: 'ordersErrors',
logGroup: 'ordersApplicationLogs',
pattern: '{ $.level = "ERROR" }',
metricTransformation: {
name: 'OrdersErrorCount',
namespace: 'Jobcloud/Application',
value: '1',
},
};Hierarchy
LogMetricFilterArgs, "logGroupName" | "name">AwsCloudwatchMetricFilterArgs
Properties
applyOnTransformedLogs: Input<boolean | undefined>
Inherited from applyOnTransformedLogs
Whether the metric filter will be applied on the transformed version of the log events instead of the original ingested log events. Defaults to false. Valid only for log groups that have an active log transformer.
logGroup: AwsCloudwatchLogGroupReference
Log group input or reference exposing a log-group name.
metricTransformation: Input<LogMetricFilterMetricTransformation>
Inherited from metricTransformation
A block defining collection of information needed to define how metric data gets emitted. See below.
name: string
Required metric-filter purpose name used as the Pulumi logical identity source.
Remarks
Must be a synchronous plain string available at preview time. The AWS provider metric-filter name is derived separately from this value using the AWS naming style.
pattern: Input<string>
Inherited from pattern
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
region: Input<string | undefined>
Inherited from region
Region where this resource will be managed. Defaults to the Region set in the provider configuration.