{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/turbonomic/json-schema/turbonomic-stat-snapshot-schema.json",
  "title": "StatSnapshot",
  "description": "A statistical snapshot for a resource metric",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/turbonomic-entities-api-openapi.yml#/components/schemas/StatSnapshot",
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of the statistic"
    },
    "statistics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the statistic (e.g., CPU, Mem, StorageAmount)"
          },
          "value": {
            "type": "number",
            "description": "Metric value"
          },
          "units": {
            "type": "string",
            "description": "Units for the value"
          }
        }
      }
    }
  }
}