billing

Get an organization's VM usage

Aggregates the organization's VM-lease usage over the half-open window [from, to) (both ISO-8601 timestamps): resource-seconds per dimension and the total billed cost in cents. Both from and to are required.

get/api/v0/billing/usage/{org}

Request

  • Base URL: https://api.harmont.dev
  • URL: https://api.harmont.dev/api/v0/billing/usage/{org}
  • Auth: HTTP bearer

Path parameters

orgstring required

The organization slug.

Query parameters

fromstring required

Window start (inclusive), ISO-8601.

tostring required

Window end (exclusive), ISO-8601.

Response

The usage aggregates

cpu_secondsinteger required

Σ (cpu_count × duration_seconds) over leases in the window.

disk_gb_secondsinteger required

Σ (disk_gb × duration_seconds) over leases in the window.

memory_gb_secondsinteger required

Σ (memory_gb × duration_seconds) over leases in the window.

total_centsinteger required

Σ rate-card cost of the leases in the window, in cents.

Changes

No recorded changes to this operation across all 1 revision of this API.