Skip to content
Hayonix

API reference · Schema

PodEstimate

  • objectstringrequired

    Always `pod_estimate`: the type of this object

    One ofpod_estimate

  • currencystringrequired

    Always `usd`

    One ofUSD

  • price_book_versioninteger | nullrequired

    Version of the price book the estimate uses; null when none is in force

  • compute_per_secondstringrequired

    Integer nano-USD as a decimal string

    pattern ^-?[0-9]+$

  • running_per_hourstringrequired

    Compute plus the pod volume, while it runs

    pattern ^-?[0-9]+$

  • stopped_per_hourstringrequired

    While stopped: the pod volume only (compute is not billed)

    pattern ^-?[0-9]+$

  • network_volumes_per_hourstringrequired

    Network volumes it would mount; billed whether or not any pod uses them, so not in the totals above

    pattern ^-?[0-9]+$

  • linesarray of objectrequired

    The estimate item by item

    Show 4 fields of lines
    • kindstringrequired

      `compute`: the hardware. `container_disk`: included at no charge. `pod_volume`, `network_volume`: storage.

      One ofcomputecontainer_diskpod_volumenetwork_volume

    • descriptionstringrequired

      Free-text description

    • per_hourstringrequired

      Integer nano-USD as a decimal string

      pattern ^-?[0-9]+$

    • billedstringrequired

      `running`: only while the pod runs. `always`: until the volume is deleted.

      One ofrunningalways

Example
{
  "object": "pod_estimate",
  "currency": "USD",
  "price_book_version": 1,
  "compute_per_second": "1500000000",
  "running_per_hour": "1500000000",
  "stopped_per_hour": "1500000000",
  "network_volumes_per_hour": "1500000000",
  "lines": [
    {
      "kind": "compute",
      "description": "string",
      "per_hour": "1500000000",
      "billed": "running"
    }
  ]
}

Used by