Amazon CloudWatch · JSON Structure

Cloudwatch Get Metric Statistics Response Structure

Response from the GetMetricStatistics action

Type: object Properties: 2
CloudWatchMonitoringObservabilityMetricsLogs

GetMetricStatisticsResponse is a JSON Structure definition published by Amazon CloudWatch, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

label datapoints

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-cloudwatch/refs/heads/main/json-structure/cloudwatch-get-metric-statistics-response-structure.json",
  "name": "GetMetricStatisticsResponse",
  "description": "Response from the GetMetricStatistics action",
  "type": "object",
  "properties": {
    "label": {
      "type": "string",
      "description": "A label for the specified metric"
    },
    "datapoints": {
      "type": "array",
      "description": "The data points for the specified metric",
      "items": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "The time stamp for the data point"
          },
          "sampleCount": {
            "type": "number",
            "description": "The number of metric values"
          },
          "average": {
            "type": "number",
            "description": "The average of the metric values"
          },
          "sum": {
            "type": "number",
            "description": "The sum of the metric values"
          },
          "minimum": {
            "type": "number",
            "description": "The minimum metric value"
          },
          "maximum": {
            "type": "number",
            "description": "The maximum metric value"
          },
          "unit": {
            "type": "string",
            "description": "The standard unit for the data point"
          }
        }
      }
    }
  }
}