Optional ReadonlydimensionsDimensions for the metric.
Optional ReadonlyexpressionMetric math expression for calculations across metrics. Example: "m1+m2+m3" to sum multiple metrics. When using expressions, other metrics must have 'id' property set.
Optional ReadonlyidID for the metric (used in expressions)
Optional ReadonlylabelLabel for the metric
Optional ReadonlymetricMetric name. Required for regular metrics, optional for metric math expressions. Can be a direct value or SSM reference with ssm: prefix. Examples:
Optional ReadonlynamespaceMetric namespace. Required for regular metrics, optional for metric math expressions. Can be a direct value or SSM reference with ssm: prefix. Examples:
Optional ReadonlyperiodPeriod for the metric in seconds
Optional ReadonlystatStatistic to apply to the metric
Optional ReadonlyunitUnit of the metric
Properties for a metric in a dashboard widget.
Use cases: CloudWatch metric display; Metric math expressions; SSM-referenced metrics
AWS: CloudWatch metric data queries for dashboard visualization
Validation: For regular metrics namespace and metricName are required; for metric math expression is required