Skip to content

Commit dc4f063

Browse files
chesleypappasChesley Pappas
andauthored
fix(cloudwatch): use correct metric statistic for IncomingLogEvents (#589)
Fixes #588 --- _By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license_ Co-authored-by: Chesley Pappas <[email protected]>
1 parent 1eff500 commit dc4f063

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/monitoring/aws-cloudwatch/CloudWatchLogsMetricFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class CloudWatchLogsMetricFactory extends BaseMetricFactory<CloudWatchLog
3434
metricIncomingLogEvents() {
3535
return this.metricFactory.createMetric(
3636
"IncomingLogEvents",
37-
MetricStatistic.N,
37+
MetricStatistic.SUM,
3838
"Logs",
3939
this.dimensionsMap,
4040
undefined,

test/monitoring/aws-cloudwatch/__snapshots__/LogMonitoring.test.ts.snap

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)