{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-cluster-hadoop-node-consumption-schema.json",
  "title": "cluster.hadoop.NodeConsumption",
  "description": "Detailed information on a node consumption of a Hadoop Cluster",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-cluster-hadoop-openapi.yml#/components/schemas/cluster.hadoop.NodeConsumption",
  "type": "object",
  "properties": {
    "hostname": {
      "type": "string",
      "description": "Hostname of the consumed resource"
    },
    "nodeProfile": {
      "allOf": [
        {
          "$ref": "#/$defs/cluster.hadoop.BillingNameEnum"
        }
      ],
      "description": "Name of the node profile for the consumptions"
    },
    "quantity": {
      "allOf": [
        {
          "$ref": "#/$defs/complexType.UnitAndValue_long"
        }
      ],
      "description": "Number of hours consummed"
    }
  },
  "$defs": {
    "cluster.hadoop.BillingNameEnum": {
      "type": "string",
      "description": "All billing profile names",
      "enum": [
        "100-small",
        "200-cpu-1",
        "220-cpu-3",
        "300-disk-1",
        "310-disk-3",
        "900-vm-1"
      ]
    },
    "complexType.UnitAndValue_long": {
      "type": "object",
      "description": "A numeric value tagged with its unit",
      "properties": {
        "unit": {
          "type": "string"
        },
        "value": {
          "type": "integer"
        }
      }
    }
  }
}