Optional ReadonlyaccountOptionalapiThe API Gateway API name dimension
OptionalcacheThe ElastiCache cluster ID dimension
OptionalclusterThe ECS cluster name dimension
Optional ReadonlycolorThe hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph.
The Color class has a set of standard colors that can be used here.
OptionaldbThe RDS DB cluster identifier dimension
Optional ReadonlydimensionsDimensions of the metric
OptionaldistributionThe CloudFront distribution ID dimension
OptionaleventThe EventBridge event bus name dimension
OptionalfunctionThe Lambda function name dimension
Optional ReadonlyidUnique identifier for this metric when used in dashboard widgets.
The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
Optional ReadonlylabelLabel for this metric when added to a Graph in a Dashboard
You can use dynamic labels to show summary information about the entire displayed time series in the legend. For example, if you use:
[max: ${MAX}] MyMetric
As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend.
OptionalloadThe ELB load balancer reference dimension
ReadonlymetricName of the metric.
ReadonlynamespaceNamespace of the metric.
Optional ReadonlyperiodThe period over which the specified statistic is applied.
OptionalperiodThe metric period in seconds (defaults to 5 minutes)
Optional ReadonlyregionRegion which this metric comes from.
OptionalruleThe EventBridge rule name dimension
OptionalserviceA custom service identifier dimension
OptionalserviceThe ECS service name dimension
Optional ReadonlystackAccount of the stack this metric is attached to.
Optional ReadonlystackRegion of the stack this metric is attached to.
Whether to append the deployment stage to the metric name and namespace
OptionalstateThe Step Functions state machine ARN dimension
Optional ReadonlystatisticWhat function to use for aggregating.
Use the aws_cloudwatch.Stats helper class to construct valid input strings.
Can be one of the following:
Optional ReadonlyunitUnit used to filter the metric stream
Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units.
The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases.
CloudWatch does not honor this property for graphs.
Optional ReadonlyvisibleWhether this metric should be visible in dashboard graphs.
Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results.
Account which this metric comes from.