Skip to content

Commit

Permalink
Update packages/@aws-cdk/aws-cloudwatch/lib/metric.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Kendra Neil <53584728+TheRealAmazonKendra@users.noreply.github.com>
  • Loading branch information
rigwild and TheRealAmazonKendra committed Feb 20, 2023
1 parent 699261d commit 05a16a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-cloudwatch/lib/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class Metric implements IMetric {
if (parsedStat.type === 'generic') {
// Unrecognized statistic, do not throw, just warn
// There may be a new statistic that this lib does not support yet
const label = props.label ? ` label "${props.label}"`: '';
const label = props.label ? `, label "${props.label}"`: '';
this.warnings = [
`Unrecognized statistic "${props.statistic}" for metric with namespace "${props.namespace}"${label} and metric name "${props.metricName}".` +
' Preferably use the `aws_cloudwatch.Stats` helper class to specify a statistic.' +
Expand Down

0 comments on commit 05a16a8

Please sign in to comment.