Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Michelle Wang committed Sep 25, 2024
1 parent 06f71d9 commit 6a8afda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/aws-cdk-lib/aws-logs/lib/log-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 6a8afda

Please sign in to comment.