{
 "openapi": "3.1.0",
 "info": {
  "title": "Observability Brothers API",
  "version": "2026.11.24",
  "summary": "List-price estimates for observability vendors, computed by code from an open dataset.",
  "description": "Estimates the monthly LIST-price bill for one telemetry workload across observability vendors. A price is a number only when the vendor's own page states it; an unpriced component is never zero, and a total that depends on one is a floor ('at least', floor=true). A costing that prices only part of the standard deployment is listed apart and never ranked. Not a quote. Errors are always JSON. Dataset: CC BY 4.0. Code: Apache-2.0. Nothing about callers is stored.",
  "license": {
   "name": "CC BY 4.0 (data), Apache-2.0 (code)",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 },
 "externalDocs": {
  "description": "Human-readable guide with client setup, example requests, responses and errors",
  "url": "https://www.observabilitybrothers.com/agents/"
 },
 "servers": [
  {
   "url": "https://www.observabilitybrothers.com"
  }
 ],
 "paths": {
  "/api/estimate": {
   "post": {
    "operationId": "estimateCost",
    "summary": "Estimate the monthly list-price cost of one workload across vendors",
    "description": "Computed only by the site's pricing engine from the open dataset; no model is involved. Body limit 4096 bytes. Open CORS (no credentials). Rate limited per client and by a shared daily ceiling. Invalid input is refused before any limit is counted.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EstimateRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Estimates, cheapest first, with partial-scope costings apart",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EstimateResponse"
        }
       }
      }
     },
     "400": {
      "description": "The body is not JSON, or fails validation. detail lists every problem.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "examples": {
         "invalid": {
          "summary": "{\"profile\":\"mid\",\"hostz\":3,\"keep\":0}",
          "value": {
           "error": "bad request",
           "detail": [
            "unknown field \"hostz\" (allowed: hosts, host_memory_gib, containers, apm_hosts, log_gb, log_event_bytes, spans_million, span_bytes, metric_series, custom_metric_series, scrape_interval_s, users, rum_sessions_thousand, synthetic_api_runs_thousand, synthetic_browser_runs_thousand, rum_page_views_per_session, rum_events_per_session, profile, vendors, keep, where)",
            "keep must be a number above 0 and at most 1 (share of spans kept)"
           ]
          }
         },
         "notJson": {
          "summary": "Body is not JSON",
          "value": {
           "error": "bad request",
           "detail": [
            "body is not valid JSON"
           ]
          }
         }
        }
       }
      }
     },
     "405": {
      "description": "Any method but POST (and OPTIONS for CORS preflight)",
      "headers": {
       "Allow": {
        "schema": {
         "type": "string"
        },
        "example": "POST, OPTIONS"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "method not allowed",
         "detail": "POST a JSON body; see /openapi.json"
        }
       }
      }
     },
     "413": {
      "description": "Body over 4096 bytes",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "request too large",
         "detail": "at most 4096 bytes"
        }
       }
      }
     },
     "429": {
      "description": "Per-client rate limit reached. Wait Retry-After seconds.",
      "headers": {
       "Retry-After": {
        "description": "Seconds to wait before retrying",
        "schema": {
         "type": "integer"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "slow down",
         "detail": "rate limit reached; retry in a minute"
        }
       }
      }
     },
     "503": {
      "description": "The shared daily request ceiling for /api/estimate and /mcp together is reached. Retry after 00:00 UTC, or read the static /data/ files, which have no limit.",
      "headers": {
       "Retry-After": {
        "description": "Seconds to wait before retrying",
        "schema": {
         "type": "integer"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "daily limit reached",
         "detail": "this free API has a shared daily request ceiling; try again after 00:00 UTC, or use the open dataset under /data/"
        }
       }
      }
     }
    }
   }
  },
  "/api/llm-estimate": {
   "post": {
    "operationId": "estimateLlmCost",
    "summary": "Estimate the monthly list-price cost of one LLM agent workload across LLM-observability vendors",
    "description": "Computed only by the site's LLM pricing engine from the open dataset; no model is involved. A separate workload from /api/estimate (agent runs, calls, spans and payload per run, eval scores, retention, seats); never rank these totals against it. Ranked as the dataset's research harness ranks: complete totals cheapest first, then floors, then quote only, then self-hosted only. Body limit 4096 bytes. Same CORS, rate limit and shared daily ceiling as /api/estimate.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LlmEstimateRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "LLM estimates, ranked",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LlmEstimateResponse"
        }
       }
      }
     },
     "400": {
      "description": "The body is not JSON, or fails validation. detail lists every problem.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "examples": {
         "invalid": {
          "summary": "{\"profile\":\"llm-mid\",\"runz\":3,\"users\":2.5}",
          "value": {
           "error": "bad request",
           "detail": [
            "unknown field \"runz\" (allowed: runs_thousand, llm_calls_per_run, tool_calls_per_run, spans_per_run, payload_bytes_per_run, span_overhead_bytes, scores_per_run, retention_days, users, profile, vendors)",
            "users must be a whole number"
           ]
          }
         },
         "notJson": {
          "summary": "Body is not JSON",
          "value": {
           "error": "bad request",
           "detail": [
            "body is not valid JSON"
           ]
          }
         }
        }
       }
      }
     },
     "405": {
      "description": "Any method but POST (and OPTIONS for CORS preflight)",
      "headers": {
       "Allow": {
        "schema": {
         "type": "string"
        },
        "example": "POST, OPTIONS"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "method not allowed",
         "detail": "POST a JSON body; see /openapi.json"
        }
       }
      }
     },
     "413": {
      "description": "Body over 4096 bytes",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "request too large",
         "detail": "at most 4096 bytes"
        }
       }
      }
     },
     "429": {
      "description": "Per-client rate limit reached. Wait Retry-After seconds.",
      "headers": {
       "Retry-After": {
        "description": "Seconds to wait before retrying",
        "schema": {
         "type": "integer"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "slow down",
         "detail": "rate limit reached; retry in a minute"
        }
       }
      }
     },
     "503": {
      "description": "The shared daily request ceiling for /api/estimate and /mcp together is reached. Retry after 00:00 UTC, or read the static /data/ files, which have no limit.",
      "headers": {
       "Retry-After": {
        "description": "Seconds to wait before retrying",
        "schema": {
         "type": "integer"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "daily limit reached",
         "detail": "this free API has a shared daily request ceiling; try again after 00:00 UTC, or use the open dataset under /data/"
        }
       }
      }
     }
    }
   }
  },
  "/api/health": {
   "get": {
    "operationId": "getHealth",
    "summary": "Liveness; 'available' reports the optional describe-your-workload box, not this API",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "type": "boolean"
          },
          "available": {
           "type": "boolean"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/mcp": {
   "post": {
    "operationId": "mcp",
    "summary": "Model Context Protocol endpoint (Streamable HTTP, stateless, JSON replies only). Tools: estimate_cost, estimate_llm_cost, list_vendors, get_vendor",
    "description": "JSON-RPC 2.0. Methods: initialize, ping, tools/list, tools/call; notifications get 202. A batch (array) is answered up to 20 messages. Invalid tool arguments come back as a tool result with isError: true and the same detail list as a 400 from /api/estimate; an unknown method is JSON-RPC error -32601, an unknown tool -32602. Limits are HTTP errors, not JSON-RPC errors.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "oneOf": [
         {
          "type": "object",
          "required": [
           "jsonrpc",
           "method"
          ],
          "properties": {
           "jsonrpc": {
            "const": "2.0"
           },
           "id": {
            "type": [
             "string",
             "integer"
            ],
            "description": "Omit for a notification, which gets 202 and no body"
           },
           "method": {
            "type": "string",
            "examples": [
             "initialize",
             "notifications/initialized",
             "ping",
             "tools/list",
             "tools/call"
            ]
           },
           "params": {
            "type": "object"
           }
          }
         },
         {
          "type": "array",
          "items": {
           "type": "object",
           "required": [
            "jsonrpc",
            "method"
           ],
           "properties": {
            "jsonrpc": {
             "const": "2.0"
            },
            "id": {
             "type": [
              "string",
              "integer"
             ],
             "description": "Omit for a notification, which gets 202 and no body"
            },
            "method": {
             "type": "string",
             "examples": [
              "initialize",
              "notifications/initialized",
              "ping",
              "tools/list",
              "tools/call"
             ]
            },
            "params": {
             "type": "object"
            }
           }
          },
          "maxItems": 20
         }
        ]
       },
       "example": {
        "jsonrpc": "2.0",
        "id": 1,
        "method": "tools/call",
        "params": {
         "name": "estimate_cost",
         "arguments": {
          "profile": "small",
          "vendors": [
           "datadog",
           "signoz"
          ]
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "JSON-RPC response (or array of them, for a batch)",
      "content": {
       "application/json": {
        "schema": {
         "type": [
          "object",
          "array"
         ]
        }
       }
      }
     },
     "202": {
      "description": "Notification accepted; no body"
     },
     "400": {
      "description": "Body is not JSON: JSON-RPC parse error",
      "content": {
       "application/json": {
        "example": {
         "jsonrpc": "2.0",
         "id": null,
         "error": {
          "code": -32700,
          "message": "parse error"
         }
        }
       }
      }
     },
     "405": {
      "description": "Any method but POST (and OPTIONS for CORS preflight)",
      "headers": {
       "Allow": {
        "schema": {
         "type": "string"
        },
        "example": "POST, OPTIONS"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "method not allowed",
         "detail": "POST JSON-RPC messages"
        }
       }
      }
     },
     "413": {
      "description": "Body over 8192 characters",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "request too large",
         "detail": "at most 8192 characters"
        }
       }
      }
     },
     "429": {
      "description": "Per-client rate limit reached. Wait Retry-After seconds.",
      "headers": {
       "Retry-After": {
        "description": "Seconds to wait before retrying",
        "schema": {
         "type": "integer"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "slow down",
         "detail": "rate limit reached; retry in a minute"
        }
       }
      }
     },
     "503": {
      "description": "The shared daily request ceiling for /api/estimate and /mcp together is reached. Retry after 00:00 UTC, or read the static /data/ files, which have no limit.",
      "headers": {
       "Retry-After": {
        "description": "Seconds to wait before retrying",
        "schema": {
         "type": "integer"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        },
        "example": {
         "error": "daily limit reached",
         "detail": "this free API has a shared daily request ceiling; try again after 00:00 UTC, or use the open dataset under /data/"
        }
       }
      }
     }
    }
   }
  },
  "/vendors/summaries.json": {
   "get": {
    "operationId": "getVendorSummaries",
    "summary": "Every vendor's plain-English summary (the same text as the top of its page and get_vendor's summary)",
    "description": "Static, rebuilt with each dataset. Built by code from the dataset and the pricing engine's results for the site's example workloads; no model writes it.",
    "responses": {
     "200": {
      "description": "Summaries, one per vendor",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "dataset_version",
          "note",
          "vendors"
         ],
         "properties": {
          "dataset_version": {
           "type": "string"
          },
          "note": {
           "type": "string"
          },
          "vendors": {
           "type": "array",
           "items": {
            "type": "object",
            "required": [
             "slug",
             "name",
             "summary"
            ],
            "properties": {
             "slug": {
              "type": "string"
             },
             "name": {
              "type": "string"
             },
             "summary": {
              "type": "string"
             }
            }
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/data/vendors.json": {
   "get": {
    "operationId": "getVendors",
    "summary": "Vendors, with line items (list prices), capabilities and sources",
    "description": "JSON Schema: https://www.observabilitybrothers.com/data/schema/vendors.schema.json. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "vendors.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "array"
        }
       }
      }
     }
    }
   }
  },
  "/data/costings.json": {
   "get": {
    "operationId": "getCostings",
    "summary": "Per-vendor pricing formulas in a small arithmetic language, with as_of, confidence and sampling flags",
    "description": "JSON Schema: https://www.observabilitybrothers.com/data/schema/costings.schema.json. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "costings.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "array"
        }
       }
      }
     }
    }
   }
  },
  "/data/taxonomy.json": {
   "get": {
    "operationId": "getTaxonomy",
    "summary": "Categories, capabilities, workload variables and confidence levels",
    "description": "JSON Schema: https://www.observabilitybrothers.com/data/schema/taxonomy.schema.json. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "taxonomy.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/data/profiles.json": {
   "get": {
    "operationId": "getProfiles",
    "summary": "Named example workloads (starter, small, mid, large)",
    "description": "JSON Schema: https://www.observabilitybrothers.com/data/schema/profiles.schema.json. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "profiles.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "array"
        }
       }
      }
     }
    }
   }
  },
  "/data/llm_costings.json": {
   "get": {
    "operationId": "getLlmCostings",
    "summary": "LLM-observability pricing formulas over the LLM workload variables, with as_of, confidence, quote_only and self_hosted_only",
    "description": "JSON Schema: https://www.observabilitybrothers.com/data/schema/llm_costings.schema.json. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "llm_costings.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "array"
        }
       }
      }
     }
    }
   }
  },
  "/data/llm_profiles.json": {
   "get": {
    "operationId": "getLlmProfiles",
    "summary": "Named example LLM agent workloads (llm-starter, llm-small, llm-mid, llm-large)",
    "description": "JSON Schema: https://www.observabilitybrothers.com/data/schema/llm_profiles.schema.json. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "llm_profiles.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "array"
        }
       }
      }
     }
    }
   }
  },
  "/data/plans.json": {
   "get": {
    "operationId": "getPlans",
    "summary": "Free plans, startup programmes, billing terms and discount kinds, each with a source link",
    "description": "JSON Schema: https://www.observabilitybrothers.com/data/schema/plans.schema.json. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "plans.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "array"
        }
       }
      }
     }
    }
   }
  },
  "/data/MANIFEST.json": {
   "get": {
    "operationId": "getManifest",
    "summary": "Dataset version, export date, licence, counts and the pricing rules",
    "description": "JSON Schema: https://www.observabilitybrothers.com/data/schema/manifest.schema.json. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "MANIFEST.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/test/golden/vectors.json": {
   "get": {
    "operationId": "getGoldenVectors",
    "summary": "Golden vectors: every costing × workload × sampling scenario with its expected result",
    "description": "Static test vectors for the pricing engine. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "vectors.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/test/golden/llm_vectors.json": {
   "get": {
    "operationId": "getLlmGoldenVectors",
    "summary": "LLM golden vectors: every LLM costing × LLM workload with its expected result",
    "description": "Static test vectors for the pricing engine. Licence CC BY 4.0.",
    "responses": {
     "200": {
      "description": "llm_vectors.json",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "EstimateRequest": {
    "type": "object",
    "description": "Give the eleven required workload variables, or a profile to fill them in (explicit variables override the profile). custom_metric_series and the RUM and synthetics inputs are optional and default as their descriptions say.",
    "additionalProperties": false,
    "properties": {
     "hosts": {
      "type": "number",
      "description": "Hosts or nodes monitored for infrastructure metrics",
      "minimum": 0,
      "maximum": 1000000
     },
     "host_memory_gib": {
      "type": "number",
      "description": "Memory per host, GiB (for vendors that price by memory)",
      "minimum": 0,
      "maximum": 4096
     },
     "containers": {
      "type": "number",
      "description": "Average running containers",
      "minimum": 0,
      "maximum": 10000000
     },
     "apm_hosts": {
      "type": "number",
      "description": "Hosts running traced (APM) services; cannot exceed hosts (lowered to hosts, with a note)",
      "minimum": 0,
      "maximum": 1000000
     },
     "log_gb": {
      "type": "number",
      "description": "Log volume ingested per month, GB uncompressed",
      "minimum": 0,
      "maximum": 1000000000
     },
     "log_event_bytes": {
      "type": "number",
      "description": "Average log event size, bytes",
      "exclusiveMinimum": 0,
      "maximum": 10000000
     },
     "spans_million": {
      "type": "number",
      "description": "Spans ingested per month, millions",
      "minimum": 0,
      "maximum": 1000000000
     },
     "span_bytes": {
      "type": "number",
      "description": "Average span size, bytes",
      "minimum": 0,
      "maximum": 10000000
     },
     "metric_series": {
      "type": "number",
      "description": "Active metric time series",
      "minimum": 0,
      "maximum": 10000000000
     },
     "custom_metric_series": {
      "type": "number",
      "description": "Of metric_series, the series a vendor bills as custom (application metrics, generic Prometheus scrapes). Optional: absent means every series; lowered to metric_series if larger (with a note)",
      "minimum": 0,
      "maximum": 10000000000
     },
     "scrape_interval_s": {
      "type": "number",
      "description": "Metric collection interval, seconds",
      "exclusiveMinimum": 0,
      "maximum": 86400
     },
     "users": {
      "type": "number",
      "description": "People who use the UI (dashboards, queries)",
      "minimum": 0,
      "maximum": 1000000
     },
     "rum_sessions_thousand": {
      "type": "number",
      "description": "Real-user monitoring sessions a month, thousands. Optional: absent means 0",
      "minimum": 0,
      "maximum": 1000000000
     },
     "synthetic_api_runs_thousand": {
      "type": "number",
      "description": "Synthetic API/HTTP/uptime check runs a month, thousands. Optional: absent means 0",
      "minimum": 0,
      "maximum": 1000000000
     },
     "synthetic_browser_runs_thousand": {
      "type": "number",
      "description": "Synthetic browser test runs a month, thousands. Optional: absent means 0",
      "minimum": 0,
      "maximum": 1000000000
     },
     "rum_page_views_per_session": {
      "type": "number",
      "description": "Page views per RUM session. Optional: absent means 5",
      "minimum": 0,
      "maximum": 10000
     },
     "rum_events_per_session": {
      "type": "number",
      "description": "Events per RUM session. Optional: absent means 20",
      "minimum": 0,
      "maximum": 100000
     },
     "profile": {
      "type": "string",
      "enum": [
       "starter",
       "small",
       "mid",
       "large"
      ],
      "description": "Starting workload from /data/profiles.json"
     },
     "vendors": {
      "type": "array",
      "minItems": 1,
      "maxItems": 40,
      "items": {
       "type": "string"
      },
      "description": "Vendor slugs from /data/vendors.json (repeats are ignored; an unknown slug is a 400). Default: every vendor that has a costing."
     },
     "keep": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1,
      "default": 1,
      "description": "Share of spans kept after sampling"
     },
     "where": {
      "type": "string",
      "enum": [
       "collector",
       "vendor"
      ],
      "default": "collector",
      "description": "Where spans are sampled. 'vendor' is priced only for vendors with vendor_side_sampling = yes; others are listed in 'skipped'."
     }
    },
    "examples": [
     {
      "profile": "small",
      "vendors": [
       "datadog",
       "grafana-labs"
      ]
     },
     {
      "hosts": 50,
      "host_memory_gib": 16,
      "containers": 200,
      "apm_hosts": 20,
      "log_gb": 2000,
      "log_event_bytes": 500,
      "spans_million": 5000,
      "span_bytes": 1000,
      "metric_series": 100000,
      "scrape_interval_s": 30,
      "users": 25
     }
    ]
   },
   "Error": {
    "type": "object",
    "required": [
     "error"
    ],
    "properties": {
     "error": {
      "type": "string",
      "description": "Short, stable error name"
     },
     "detail": {
      "oneOf": [
       {
        "type": "string"
       },
       {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      ],
      "description": "For a 400, every problem found, so one retry can fix them all"
     }
    }
   },
   "EstimateResponse": {
    "type": "object",
    "required": [
     "currency",
     "period",
     "dataset",
     "workload",
     "profile",
     "sampling",
     "notes",
     "estimates",
     "partial_scope_estimates",
     "skipped"
    ],
    "additionalProperties": false,
    "properties": {
     "currency": {
      "const": "USD"
     },
     "period": {
      "const": "month"
     },
     "dataset": {
      "type": "object",
      "required": [
       "version",
       "exported",
       "licence"
      ],
      "properties": {
       "version": {
        "type": "string"
       },
       "exported": {
        "type": "string",
        "format": "date"
       },
       "licence": {
        "type": "string"
       }
      }
     },
     "workload": {
      "type": "object",
      "description": "The workload actually priced: the profile's values, your overrides, and the defaults for optional inputs. apm_hosts and custom_metric_series may have been lowered (see notes).",
      "required": [
       "hosts",
       "host_memory_gib",
       "containers",
       "apm_hosts",
       "log_gb",
       "log_event_bytes",
       "spans_million",
       "span_bytes",
       "metric_series",
       "custom_metric_series",
       "scrape_interval_s",
       "users",
       "rum_sessions_thousand",
       "synthetic_api_runs_thousand",
       "synthetic_browser_runs_thousand",
       "rum_page_views_per_session",
       "rum_events_per_session"
      ],
      "properties": {
       "hosts": {
        "type": "number"
       },
       "host_memory_gib": {
        "type": "number"
       },
       "containers": {
        "type": "number"
       },
       "apm_hosts": {
        "type": "number"
       },
       "log_gb": {
        "type": "number"
       },
       "log_event_bytes": {
        "type": "number"
       },
       "spans_million": {
        "type": "number"
       },
       "span_bytes": {
        "type": "number"
       },
       "metric_series": {
        "type": "number"
       },
       "custom_metric_series": {
        "type": "number"
       },
       "scrape_interval_s": {
        "type": "number"
       },
       "users": {
        "type": "number"
       },
       "rum_sessions_thousand": {
        "type": "number"
       },
       "synthetic_api_runs_thousand": {
        "type": "number"
       },
       "synthetic_browser_runs_thousand": {
        "type": "number"
       },
       "rum_page_views_per_session": {
        "type": "number"
       },
       "rum_events_per_session": {
        "type": "number"
       }
      }
     },
     "profile": {
      "type": [
       "string",
       "null"
      ],
      "description": "The profile you named, or null"
     },
     "sampling": {
      "type": "object",
      "required": [
       "keep",
       "where"
      ],
      "properties": {
       "keep": {
        "type": "number"
       },
       "where": {
        "enum": [
         "collector",
         "vendor"
        ]
       }
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Plain-English notes: any input that was adjusted, the list-price caveat, and any vendors listed apart"
     },
     "estimates": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "slug",
        "name",
        "total",
        "floor",
        "quote_only",
        "unpriced_components",
        "usage_total",
        "minimum_monthly",
        "minimum_applied",
        "lines",
        "costing_as_of",
        "vendor_as_of",
        "confidence",
        "confidence_reason",
        "vendor_side_sampling",
        "partial_scope",
        "sources"
       ],
       "additionalProperties": false,
       "properties": {
        "slug": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "total": {
         "type": [
          "number",
          "null"
         ],
         "description": "Monthly list-price USD (usage_total, or minimum_monthly if higher); null when the vendor sells by quote only"
        },
        "floor": {
         "type": "boolean",
         "description": "true: total is 'at least' this, because a used component has no price listed. An unpriced component is never zero."
        },
        "quote_only": {
         "type": "boolean",
         "description": "true: the vendor publishes no prices; total is null"
        },
        "unpriced_components": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Labels of the used components with no stated price; non-empty exactly when floor is true"
        },
        "usage_total": {
         "type": [
          "number",
          "null"
         ],
         "description": "Sum of the priced lines, before any monthly minimum"
        },
        "minimum_monthly": {
         "type": [
          "number",
          "null"
         ],
         "description": "The vendor's monthly minimum, if it has one"
        },
        "minimum_applied": {
         "type": "boolean",
         "description": "true: the monthly minimum was higher than usage_total, so total is the minimum"
        },
        "lines": {
         "type": "array",
         "items": {
          "type": "object",
          "description": "One billed line item. unit_price and cost are null when the vendor states no price: never read that as zero.",
          "required": [
           "label",
           "sku",
           "unit",
           "commitment",
           "qty",
           "free",
           "billable",
           "unit_price",
           "cost"
          ],
          "additionalProperties": false,
          "properties": {
           "label": {
            "type": "string"
           },
           "sku": {
            "type": "string"
           },
           "unit": {
            "type": "string"
           },
           "commitment": {
            "type": "string"
           },
           "qty": {
            "type": "number",
            "description": "Units this workload uses"
           },
           "free": {
            "type": "number",
            "description": "Units included free"
           },
           "billable": {
            "type": "number",
            "description": "qty minus free, at least 0"
           },
           "unit_price": {
            "type": [
             "number",
             "null"
            ],
            "description": "USD per unit; null when the vendor does not state it"
           },
           "cost": {
            "type": [
             "number",
             "null"
            ],
            "description": "USD a month; null when unit_price is null"
           }
          }
         }
        },
        "costing_as_of": {
         "type": "string",
         "format": "date"
        },
        "vendor_as_of": {
         "type": "string",
         "format": "date"
        },
        "confidence": {
         "enum": [
          "high",
          "medium",
          "low",
          null
         ]
        },
        "confidence_reason": {
         "type": [
          "string",
          "null"
         ]
        },
        "vendor_side_sampling": {
         "type": "string",
         "description": "'yes' when the vendor publishes what its own sampling drops cost"
        },
        "partial_scope": {
         "type": [
          "string",
          "null"
         ],
         "description": "What a costing that prices only part of the standard deployment covers; null for the others. Such a costing is in partial_scope_estimates and never ranked."
        },
        "sources": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Source ids; see /data/sources.csv"
        }
       }
      },
      "description": "Costings of the standard deployment, cheapest first; quote-only vendors last. Read floor before comparing totals."
     },
     "partial_scope_estimates": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "slug",
        "name",
        "total",
        "floor",
        "quote_only",
        "unpriced_components",
        "usage_total",
        "minimum_monthly",
        "minimum_applied",
        "lines",
        "costing_as_of",
        "vendor_as_of",
        "confidence",
        "confidence_reason",
        "vendor_side_sampling",
        "partial_scope",
        "sources"
       ],
       "additionalProperties": false,
       "properties": {
        "slug": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "total": {
         "type": [
          "number",
          "null"
         ],
         "description": "Monthly list-price USD (usage_total, or minimum_monthly if higher); null when the vendor sells by quote only"
        },
        "floor": {
         "type": "boolean",
         "description": "true: total is 'at least' this, because a used component has no price listed. An unpriced component is never zero."
        },
        "quote_only": {
         "type": "boolean",
         "description": "true: the vendor publishes no prices; total is null"
        },
        "unpriced_components": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Labels of the used components with no stated price; non-empty exactly when floor is true"
        },
        "usage_total": {
         "type": [
          "number",
          "null"
         ],
         "description": "Sum of the priced lines, before any monthly minimum"
        },
        "minimum_monthly": {
         "type": [
          "number",
          "null"
         ],
         "description": "The vendor's monthly minimum, if it has one"
        },
        "minimum_applied": {
         "type": "boolean",
         "description": "true: the monthly minimum was higher than usage_total, so total is the minimum"
        },
        "lines": {
         "type": "array",
         "items": {
          "type": "object",
          "description": "One billed line item. unit_price and cost are null when the vendor states no price: never read that as zero.",
          "required": [
           "label",
           "sku",
           "unit",
           "commitment",
           "qty",
           "free",
           "billable",
           "unit_price",
           "cost"
          ],
          "additionalProperties": false,
          "properties": {
           "label": {
            "type": "string"
           },
           "sku": {
            "type": "string"
           },
           "unit": {
            "type": "string"
           },
           "commitment": {
            "type": "string"
           },
           "qty": {
            "type": "number",
            "description": "Units this workload uses"
           },
           "free": {
            "type": "number",
            "description": "Units included free"
           },
           "billable": {
            "type": "number",
            "description": "qty minus free, at least 0"
           },
           "unit_price": {
            "type": [
             "number",
             "null"
            ],
            "description": "USD per unit; null when the vendor does not state it"
           },
           "cost": {
            "type": [
             "number",
             "null"
            ],
            "description": "USD a month; null when unit_price is null"
           }
          }
         }
        },
        "costing_as_of": {
         "type": "string",
         "format": "date"
        },
        "vendor_as_of": {
         "type": "string",
         "format": "date"
        },
        "confidence": {
         "enum": [
          "high",
          "medium",
          "low",
          null
         ]
        },
        "confidence_reason": {
         "type": [
          "string",
          "null"
         ]
        },
        "vendor_side_sampling": {
         "type": "string",
         "description": "'yes' when the vendor publishes what its own sampling drops cost"
        },
        "partial_scope": {
         "type": [
          "string",
          "null"
         ],
         "description": "What a costing that prices only part of the standard deployment covers; null for the others. Such a costing is in partial_scope_estimates and never ranked."
        },
        "sources": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Source ids; see /data/sources.csv"
        }
       }
      },
      "description": "Costings that price only part of the standard deployment (partial_scope says which part), by name. Never rank them against estimates."
     },
     "skipped": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "slug",
        "name",
        "reason"
       ],
       "properties": {
        "slug": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "reason": {
         "type": "string"
        }
       }
      },
      "description": "Vendors asked for (or costed) that could not be priced for this request, with the reason"
     }
    }
   },
   "VendorEstimate": {
    "type": "object",
    "required": [
     "slug",
     "name",
     "total",
     "floor",
     "quote_only",
     "unpriced_components",
     "usage_total",
     "minimum_monthly",
     "minimum_applied",
     "lines",
     "costing_as_of",
     "vendor_as_of",
     "confidence",
     "confidence_reason",
     "vendor_side_sampling",
     "partial_scope",
     "sources"
    ],
    "additionalProperties": false,
    "properties": {
     "slug": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "total": {
      "type": [
       "number",
       "null"
      ],
      "description": "Monthly list-price USD (usage_total, or minimum_monthly if higher); null when the vendor sells by quote only"
     },
     "floor": {
      "type": "boolean",
      "description": "true: total is 'at least' this, because a used component has no price listed. An unpriced component is never zero."
     },
     "quote_only": {
      "type": "boolean",
      "description": "true: the vendor publishes no prices; total is null"
     },
     "unpriced_components": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Labels of the used components with no stated price; non-empty exactly when floor is true"
     },
     "usage_total": {
      "type": [
       "number",
       "null"
      ],
      "description": "Sum of the priced lines, before any monthly minimum"
     },
     "minimum_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "The vendor's monthly minimum, if it has one"
     },
     "minimum_applied": {
      "type": "boolean",
      "description": "true: the monthly minimum was higher than usage_total, so total is the minimum"
     },
     "lines": {
      "type": "array",
      "items": {
       "type": "object",
       "description": "One billed line item. unit_price and cost are null when the vendor states no price: never read that as zero.",
       "required": [
        "label",
        "sku",
        "unit",
        "commitment",
        "qty",
        "free",
        "billable",
        "unit_price",
        "cost"
       ],
       "additionalProperties": false,
       "properties": {
        "label": {
         "type": "string"
        },
        "sku": {
         "type": "string"
        },
        "unit": {
         "type": "string"
        },
        "commitment": {
         "type": "string"
        },
        "qty": {
         "type": "number",
         "description": "Units this workload uses"
        },
        "free": {
         "type": "number",
         "description": "Units included free"
        },
        "billable": {
         "type": "number",
         "description": "qty minus free, at least 0"
        },
        "unit_price": {
         "type": [
          "number",
          "null"
         ],
         "description": "USD per unit; null when the vendor does not state it"
        },
        "cost": {
         "type": [
          "number",
          "null"
         ],
         "description": "USD a month; null when unit_price is null"
        }
       }
      }
     },
     "costing_as_of": {
      "type": "string",
      "format": "date"
     },
     "vendor_as_of": {
      "type": "string",
      "format": "date"
     },
     "confidence": {
      "enum": [
       "high",
       "medium",
       "low",
       null
      ]
     },
     "confidence_reason": {
      "type": [
       "string",
       "null"
      ]
     },
     "vendor_side_sampling": {
      "type": "string",
      "description": "'yes' when the vendor publishes what its own sampling drops cost"
     },
     "partial_scope": {
      "type": [
       "string",
       "null"
      ],
      "description": "What a costing that prices only part of the standard deployment covers; null for the others. Such a costing is in partial_scope_estimates and never ranked."
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Source ids; see /data/sources.csv"
     }
    }
   },
   "LlmEstimateRequest": {
    "type": "object",
    "description": "An LLM agent workload: give the nine variables, or a profile to fill them in (explicit variables override the profile). Never compare the result with /api/estimate's infrastructure totals.",
    "additionalProperties": false,
    "properties": {
     "runs_thousand": {
      "type": "number",
      "description": "Agent runs (traces) a month, thousands: one user request handled end to end",
      "minimum": 0,
      "maximum": 10000000
     },
     "llm_calls_per_run": {
      "type": "number",
      "description": "LLM calls (generations) per run",
      "minimum": 0,
      "maximum": 10000
     },
     "tool_calls_per_run": {
      "type": "number",
      "description": "Tool calls per run",
      "minimum": 0,
      "maximum": 10000
     },
     "spans_per_run": {
      "type": "number",
      "description": "Spans (observations) per run: workflow, agent steps, LLM calls, tools",
      "minimum": 0,
      "maximum": 100000
     },
     "payload_bytes_per_run": {
      "type": "number",
      "description": "Prompt + completion bytes per run, all LLM calls together (tokens are counted at 4 bytes each)",
      "minimum": 0,
      "maximum": 1000000000
     },
     "span_overhead_bytes": {
      "type": "number",
      "description": "Bytes per span besides the payload: ids, timings, attributes",
      "minimum": 0,
      "maximum": 10000000
     },
     "scores_per_run": {
      "type": "number",
      "description": "Online eval scores per run (LLM-as-judge or code scorers)",
      "minimum": 0,
      "maximum": 10000
     },
     "retention_days": {
      "type": "number",
      "description": "Days traces stay searchable",
      "minimum": 0,
      "maximum": 3650
     },
     "users": {
      "type": "integer",
      "description": "People with access (seats); a whole number",
      "minimum": 0,
      "maximum": 1000000
     },
     "profile": {
      "type": "string",
      "enum": [
       "llm-starter",
       "llm-small",
       "llm-mid",
       "llm-large"
      ],
      "description": "Starting workload from /data/llm_profiles.json"
     },
     "vendors": {
      "type": "array",
      "minItems": 1,
      "maxItems": 40,
      "items": {
       "type": "string"
      },
      "description": "Vendor slugs from /data/vendors.json (repeats are ignored; an unknown slug is a 400). Default: every vendor that has an LLM costing."
     }
    },
    "examples": [
     {
      "profile": "llm-mid"
     },
     {
      "profile": "llm-small",
      "vendors": [
       "langfuse",
       "langsmith",
       "datadog"
      ]
     },
     {
      "runs_thousand": 250,
      "llm_calls_per_run": 3,
      "tool_calls_per_run": 2,
      "spans_per_run": 12,
      "payload_bytes_per_run": 8000,
      "span_overhead_bytes": 6000,
      "scores_per_run": 0,
      "retention_days": 30,
      "users": 8
     }
    ]
   },
   "LlmEstimateResponse": {
    "type": "object",
    "required": [
     "currency",
     "period",
     "dataset",
     "workload",
     "profile",
     "notes",
     "estimates",
     "skipped"
    ],
    "additionalProperties": false,
    "properties": {
     "currency": {
      "const": "USD"
     },
     "period": {
      "const": "month"
     },
     "dataset": {
      "type": "object",
      "required": [
       "version",
       "exported",
       "licence"
      ],
      "properties": {
       "version": {
        "type": "string"
       },
       "exported": {
        "type": "string",
        "format": "date"
       },
       "licence": {
        "type": "string"
       }
      }
     },
     "workload": {
      "type": "object",
      "description": "The LLM workload actually priced",
      "required": [
       "runs_thousand",
       "llm_calls_per_run",
       "tool_calls_per_run",
       "spans_per_run",
       "payload_bytes_per_run",
       "span_overhead_bytes",
       "scores_per_run",
       "retention_days",
       "users"
      ],
      "properties": {
       "runs_thousand": {
        "type": "number"
       },
       "llm_calls_per_run": {
        "type": "number"
       },
       "tool_calls_per_run": {
        "type": "number"
       },
       "spans_per_run": {
        "type": "number"
       },
       "payload_bytes_per_run": {
        "type": "number"
       },
       "span_overhead_bytes": {
        "type": "number"
       },
       "scores_per_run": {
        "type": "number"
       },
       "retention_days": {
        "type": "number"
       },
       "users": {
        "type": "number"
       }
      }
     },
     "profile": {
      "type": [
       "string",
       "null"
      ],
      "description": "The profile you named, or null"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "The list-price caveat, the ranking rule, and that these never rank against /api/estimate"
     },
     "estimates": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "slug",
        "name",
        "rank",
        "total",
        "floor",
        "quote_only",
        "self_hosted_only",
        "unpriced_components",
        "usage_total",
        "minimum_monthly",
        "minimum_applied",
        "bills_on",
        "lines",
        "costing_as_of",
        "vendor_as_of",
        "confidence",
        "sources"
       ],
       "additionalProperties": false,
       "properties": {
        "slug": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "rank": {
         "type": [
          "integer",
          "null"
         ],
         "description": "1, 2, ... for complete totals in ranked order; null for floors, quote only and self-hosted only, which are never ranked among them"
        },
        "total": {
         "type": [
          "number",
          "null"
         ],
         "description": "Monthly list-price USD; null when quote only or self-hosted only"
        },
        "floor": {
         "type": "boolean",
         "description": "true: total is 'at least' this, because a used component has no price listed. An unpriced component is never zero."
        },
        "quote_only": {
         "type": "boolean",
         "description": "true: the vendor publishes nothing priceable for this workload; total is null"
        },
        "self_hosted_only": {
         "type": "boolean",
         "description": "true: there is no hosted service to price; total is null. Not the same as free."
        },
        "unpriced_components": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Labels of the used components with no stated price; non-empty exactly when floor is true"
        },
        "usage_total": {
         "type": [
          "number",
          "null"
         ],
         "description": "Sum of the priced lines, before any monthly minimum"
        },
        "minimum_monthly": {
         "type": [
          "number",
          "null"
         ],
         "description": "The vendor's monthly minimum, if it has one"
        },
        "minimum_applied": {
         "type": "boolean",
         "description": "true: the monthly minimum was higher than usage_total"
        },
        "bills_on": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "What the vendor bills on, from its line items' units; 'a unit of its own' where the dataset does not name the unit"
        },
        "lines": {
         "type": "array",
         "items": {
          "type": "object",
          "description": "One billed line item. unit_price and cost are null when the vendor states no price: never read that as zero.",
          "required": [
           "label",
           "sku",
           "unit",
           "commitment",
           "qty",
           "free",
           "billable",
           "unit_price",
           "cost"
          ],
          "additionalProperties": false,
          "properties": {
           "label": {
            "type": "string"
           },
           "sku": {
            "type": "string"
           },
           "unit": {
            "type": "string"
           },
           "commitment": {
            "type": "string"
           },
           "qty": {
            "type": "number",
            "description": "Units this workload uses"
           },
           "free": {
            "type": "number",
            "description": "Units included free"
           },
           "billable": {
            "type": "number",
            "description": "qty minus free, at least 0"
           },
           "unit_price": {
            "type": [
             "number",
             "null"
            ],
            "description": "USD per unit; null when the vendor does not state it"
           },
           "cost": {
            "type": [
             "number",
             "null"
            ],
            "description": "USD a month; null when unit_price is null"
           }
          }
         }
        },
        "costing_as_of": {
         "type": "string",
         "format": "date"
        },
        "vendor_as_of": {
         "type": "string",
         "format": "date"
        },
        "confidence": {
         "enum": [
          "high",
          "medium",
          "low",
          null
         ]
        },
        "sources": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Source ids; see /data/sources.csv"
        }
       }
      },
      "description": "Ranked: complete totals cheapest first, then floors above $0, then floors of $0, then quote only, then self-hosted only; ties by name"
     },
     "skipped": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "slug",
        "name",
        "reason"
       ],
       "properties": {
        "slug": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "reason": {
         "type": "string"
        }
       }
      },
      "description": "Vendors asked for that have no LLM costing, with the reason"
     }
    }
   },
   "LlmVendorEstimate": {
    "type": "object",
    "required": [
     "slug",
     "name",
     "rank",
     "total",
     "floor",
     "quote_only",
     "self_hosted_only",
     "unpriced_components",
     "usage_total",
     "minimum_monthly",
     "minimum_applied",
     "bills_on",
     "lines",
     "costing_as_of",
     "vendor_as_of",
     "confidence",
     "sources"
    ],
    "additionalProperties": false,
    "properties": {
     "slug": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "rank": {
      "type": [
       "integer",
       "null"
      ],
      "description": "1, 2, ... for complete totals in ranked order; null for floors, quote only and self-hosted only, which are never ranked among them"
     },
     "total": {
      "type": [
       "number",
       "null"
      ],
      "description": "Monthly list-price USD; null when quote only or self-hosted only"
     },
     "floor": {
      "type": "boolean",
      "description": "true: total is 'at least' this, because a used component has no price listed. An unpriced component is never zero."
     },
     "quote_only": {
      "type": "boolean",
      "description": "true: the vendor publishes nothing priceable for this workload; total is null"
     },
     "self_hosted_only": {
      "type": "boolean",
      "description": "true: there is no hosted service to price; total is null. Not the same as free."
     },
     "unpriced_components": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Labels of the used components with no stated price; non-empty exactly when floor is true"
     },
     "usage_total": {
      "type": [
       "number",
       "null"
      ],
      "description": "Sum of the priced lines, before any monthly minimum"
     },
     "minimum_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "The vendor's monthly minimum, if it has one"
     },
     "minimum_applied": {
      "type": "boolean",
      "description": "true: the monthly minimum was higher than usage_total"
     },
     "bills_on": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "What the vendor bills on, from its line items' units; 'a unit of its own' where the dataset does not name the unit"
     },
     "lines": {
      "type": "array",
      "items": {
       "type": "object",
       "description": "One billed line item. unit_price and cost are null when the vendor states no price: never read that as zero.",
       "required": [
        "label",
        "sku",
        "unit",
        "commitment",
        "qty",
        "free",
        "billable",
        "unit_price",
        "cost"
       ],
       "additionalProperties": false,
       "properties": {
        "label": {
         "type": "string"
        },
        "sku": {
         "type": "string"
        },
        "unit": {
         "type": "string"
        },
        "commitment": {
         "type": "string"
        },
        "qty": {
         "type": "number",
         "description": "Units this workload uses"
        },
        "free": {
         "type": "number",
         "description": "Units included free"
        },
        "billable": {
         "type": "number",
         "description": "qty minus free, at least 0"
        },
        "unit_price": {
         "type": [
          "number",
          "null"
         ],
         "description": "USD per unit; null when the vendor does not state it"
        },
        "cost": {
         "type": [
          "number",
          "null"
         ],
         "description": "USD a month; null when unit_price is null"
        }
       }
      }
     },
     "costing_as_of": {
      "type": "string",
      "format": "date"
     },
     "vendor_as_of": {
      "type": "string",
      "format": "date"
     },
     "confidence": {
      "enum": [
       "high",
       "medium",
       "low",
       null
      ]
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Source ids; see /data/sources.csv"
     }
    }
   },
   "Line": {
    "type": "object",
    "description": "One billed line item. unit_price and cost are null when the vendor states no price: never read that as zero.",
    "required": [
     "label",
     "sku",
     "unit",
     "commitment",
     "qty",
     "free",
     "billable",
     "unit_price",
     "cost"
    ],
    "additionalProperties": false,
    "properties": {
     "label": {
      "type": "string"
     },
     "sku": {
      "type": "string"
     },
     "unit": {
      "type": "string"
     },
     "commitment": {
      "type": "string"
     },
     "qty": {
      "type": "number",
      "description": "Units this workload uses"
     },
     "free": {
      "type": "number",
      "description": "Units included free"
     },
     "billable": {
      "type": "number",
      "description": "qty minus free, at least 0"
     },
     "unit_price": {
      "type": [
       "number",
       "null"
      ],
      "description": "USD per unit; null when the vendor does not state it"
     },
     "cost": {
      "type": [
       "number",
       "null"
      ],
      "description": "USD a month; null when unit_price is null"
     }
    }
   }
  }
 }
}
