in lib/template/pattern/cloudwatch-pattern.ts [257:270]
public createSnsMetric(topicName: string, metricName: string, options: cloudwatch.MetricOptions = {}): cloudwatch.Metric {
return new cloudwatch.Metric({
metricName,
namespace: 'AWS/SNS',
dimensions: {
TopicName: topicName,
},
statistic: options.statistic,
unit: options.unit,
period: this.props.period,
label: options.label != undefined ? options.label : metricName,
...options
});
}