Skip to content

Commit

Permalink
add pattern to integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Steinke committed Jul 3, 2024
1 parent 16113ed commit 93ddc8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/aws-cdk-lib/aws-logs/test/integ.metricfilter.lit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ class MetricFilterIntegStack extends Stack {
logGroup,
metricNamespace: 'MyApp',
metricName: 'Latency',
filterPattern: FilterPattern.exists('$.latency'),
filterPattern: FilterPattern.all(
FilterPattern.exists('$.latency'),
FilterPattern.regexValue('$.message', '==', 'bind: address already in use'),
),
metricValue: '$.latency',
});
/// !hide
Expand Down

0 comments on commit 93ddc8e

Please sign in to comment.