From 6a8afdab89f8f15232e1618ed2ad55c5b59b5e4b Mon Sep 17 00:00:00 2001 From: Michelle Wang Date: Wed, 25 Sep 2024 10:28:45 -0700 Subject: [PATCH] update --- packages/aws-cdk-lib/aws-logs/lib/log-group.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/aws-cdk-lib/aws-logs/lib/log-group.ts b/packages/aws-cdk-lib/aws-logs/lib/log-group.ts index df5f42a88a2f3..d9ba52ef30ae5 100644 --- a/packages/aws-cdk-lib/aws-logs/lib/log-group.ts +++ b/packages/aws-cdk-lib/aws-logs/lib/log-group.ts @@ -335,12 +335,12 @@ abstract class LogGroupBase extends Resource implements ILogGroup { * - 'IncomingLogEvents': The number of log events ingested into the log group. * ``` */ - public metric(_metricName: string, _props?: cloudwatch.MetricOptions): cloudwatch.Metric { + public metric(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric { return new cloudwatch.Metric({ namespace: 'AWS/Logs', - metricName: _metricName, + metricName, statistic: 'Sum', - ..._props, + ...props, }).attachTo(this); } }