{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-get-container-service-metric-data-result-schema.json",
  "title": "GetContainerServiceMetricDataResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-container-services-api-openapi.yml#/components/schemas/GetContainerServiceMetricDataResult",
  "type": "object",
  "properties": {
    "metricName": {
      "allOf": [
        {
          "$ref": "#/$defs/ContainerServiceMetricName"
        }
      ],
      "description": "The name of the metric returned."
    },
    "metricData": {
      "allOf": [
        {
          "$ref": "#/$defs/MetricDatapointList"
        }
      ],
      "description": "An array of objects that describe the metric data returned."
    }
  },
  "$defs": {
    "ContainerServiceMetricName": {
      "type": "string",
      "enum": [
        "CPUUtilization",
        "MemoryUtilization"
      ]
    },
    "MetricDatapoint": {
      "type": "object",
      "properties": {
        "average": {
          "allOf": [
            {
              "$ref": "#/$defs/double"
            }
          ],
          "description": "The average."
        },
        "maximum": {
          "allOf": [
            {
              "$ref": "#/$defs/double"
            }
          ],
          "description": "The maximum."
        },
        "minimum": {
          "allOf": [
            {
              "$ref": "#/$defs/double"
            }
          ],
          "description": "The minimum."
        },
        "sampleCount": {
          "allOf": [
            {
              "$ref": "#/$defs/double"
            }
          ],
          "description": "The sample count."
        },
        "sum": {
          "allOf": [
            {
              "$ref": "#/$defs/double"
            }
          ],
          "description": "The sum."
        },
        "timestamp": {
          "allOf": [
            {
              "$ref": "#/$defs/timestamp"
            }
          ],
          "description": "The timestamp ( 1479816991.349 )."
        },
        "unit": {
          "allOf": [
            {
              "$ref": "#/$defs/MetricUnit"
            }
          ],
          "description": "The unit."
        }
      },
      "description": "Describes the metric data point."
    },
    "MetricDatapointList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MetricDatapoint"
      }
    },
    "MetricUnit": {
      "type": "string",
      "enum": [
        "Seconds",
        "Microseconds",
        "Milliseconds",
        "Bytes",
        "Kilobytes",
        "Megabytes",
        "Gigabytes",
        "Terabytes",
        "Bits",
        "Kilobits",
        "Megabits",
        "Gigabits",
        "Terabits",
        "Percent",
        "Count",
        "Bytes/Second",
        "Kilobytes/Second",
        "Megabytes/Second",
        "Gigabytes/Second",
        "Terabytes/Second",
        "Bits/Second",
        "Kilobits/Second",
        "Megabits/Second",
        "Gigabits/Second",
        "Terabits/Second",
        "Count/Second",
        "None"
      ]
    },
    "double": {
      "type": "number"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    }
  }
}