public createKinesisMetric()

in lib/template/pattern/cloudwatch-pattern.ts [155:167]


    public createKinesisMetric(streamName: string, metricName: string, options: cloudwatch.MetricOptions = {}): cloudwatch.Metric {
        return new cloudwatch.Metric({
            metricName,
            namespace: 'AWS/Kinesis',
            dimensions: {
                StreamName: streamName
            },
            unit: cloudwatch.Unit.COUNT,
            period: this.props.period,
            label: options.label != undefined ? options.label : metricName,
            ...options
        });
    }