{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codecarbon/json-schema/codecarbon-emission-schema.json",
  "title": "Emission",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codecarbon-openapi.yml#/components/schemas/Emission",
  "properties": {
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "title": "Timestamp"
    },
    "run_id": {
      "type": "string",
      "format": "uuid",
      "title": "Run Id"
    },
    "duration": {
      "type": "number",
      "exclusiveMinimum": 0.0,
      "title": "Duration",
      "description": "The duration must be greater than zero"
    },
    "emissions_sum": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Emissions Sum",
      "description": "The emissions must be greater than zero"
    },
    "emissions_rate": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Emissions Rate",
      "description": "The emissions rate must be greater than zero"
    },
    "energy_consumed": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Energy Consumed",
      "description": "The energy_consumed must be greater than zero"
    },
    "cpu_power": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Cpu Power",
      "description": "The cpu_power must be greater than zero"
    },
    "gpu_power": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Gpu Power",
      "description": "The gpu_power must be greater than zero"
    },
    "ram_power": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Ram Power",
      "description": "The ram_power must be greater than zero"
    },
    "cpu_energy": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Cpu Energy",
      "description": "The cpu_energy must be greater than zero"
    },
    "gpu_energy": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Gpu Energy",
      "description": "The gpu_energy must be greater than zero"
    },
    "ram_energy": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Ram Energy",
      "description": "The ram_energy must be greater than zero"
    },
    "cpu_utilization_percent": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Cpu Utilization Percent",
      "description": "The CPU utilization must be between 0 and 100"
    },
    "gpu_utilization_percent": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Gpu Utilization Percent",
      "description": "The GPU utilization must be between 0 and 100"
    },
    "ram_utilization_percent": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Ram Utilization Percent",
      "description": "The RAM utilization must be between 0 and 100"
    },
    "wue": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Wue",
      "description": "The WUE (Water Usage Effectiveness) must be greater than or equal to zero",
      "default": 0
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    }
  },
  "type": "object",
  "required": [
    "timestamp",
    "run_id",
    "duration",
    "emissions_sum",
    "emissions_rate",
    "energy_consumed",
    "cpu_power",
    "gpu_power",
    "ram_power",
    "cpu_energy",
    "gpu_energy",
    "ram_energy",
    "id"
  ]
}