{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://uwmd.org/schemas/section-dc-power.schema.json",
  "title": "Power Economics",
  "type": "object",
  "required": [
    "utility_rate_per_kwh",
    "billing"
  ],
  "properties": {
    "utility_rate_per_kwh": {
      "type": "number",
      "minimum": 0,
      "description": "Blended $/kWh, all charges."
    },
    "billing": {
      "type": "string",
      "enum": [
        "metered_pass_through",
        "all_in",
        "breakered"
      ],
      "description": "How power is billed to tenants."
    },
    "power_margin": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "description": "Landlord margin on power as a FRACTION of cost; meaningful only under all_in / breakered billing."
    },
    "stated_annual_power_cost": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "description": "The operator's stated annual utility bill, when known. Takes precedence over the computed figure, except under metered_pass_through, where the landlord's power cost is zero."
    },
    "metered_annual_kwh": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "description": "Metered or measured annual facility consumption, in kWh. When stated it is the energy the power-cost metrics use; never inferred."
    },
    "draw_factor": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 1,
      "description": "Average share of contracted IT load the tenants draw, a FRACTION. Required to compute power cost without metered kWh; the metrics never assume full draw."
    }
  }
}
