Created
October 16, 2020 16:30
-
-
Save mgjam/9dc02e95ef0490fdc1b83041d8e9953f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { GraphWidget, IWidget, Metric } from "@aws-cdk/aws-cloudwatch"; | |
import { Construct, Duration } from "@aws-cdk/core"; | |
const invocationWidget = new GraphWidget({ | |
width: 24, | |
title: 'title', | |
left: [new Metric({ | |
metricName: 'Count', | |
namespace: 'AWS/ApiGateway', | |
dimensions: {'ApiName': 'apiName'}, | |
statistic: 'sum', | |
label: 'Count', | |
period: Duration.hours(3) | |
})] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment