AWS CloudWatch · Schema

MetricStat

This structure defines the metric to be returned, along with the statistics, period, and units.

AlarmsAwsDashboardsLogsMetricsMonitoringObservability

Properties

Name Type Description
Metric object
Period integer The granularity, in seconds, of the returned data points.
Stat string The statistic to return. It can include any CloudWatch statistic or extended statistic.
Unit object
View JSON Schema on GitHub

JSON Schema

cloudwatch-metricstat-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MetricStat",
  "title": "MetricStat",
  "type": "object",
  "description": "This structure defines the metric to be returned, along with the statistics, period, and units.",
  "required": [
    "Metric",
    "Period",
    "Stat"
  ],
  "properties": {
    "Metric": {
      "$ref": "#/components/schemas/Metric"
    },
    "Period": {
      "type": "integer",
      "minimum": 1,
      "description": "The granularity, in seconds, of the returned data points.",
      "example": 10
    },
    "Stat": {
      "type": "string",
      "description": "The statistic to return. It can include any CloudWatch statistic or extended statistic.",
      "example": "example_value"
    },
    "Unit": {
      "$ref": "#/components/schemas/StandardUnit"
    }
  }
}