Resources / SKU

SKU

A price list entry: the price of one kind of resource per hour of existence, or per unit of what it uses (CPU-seconds, GiB-seconds of storage). Managed by the platform.

Overview

APIbilling.etorm.com/v1alpha1
Resourceskus (cluster-scoped inside its cluster)
Short namesnone
Available inthe platform only
Statusnone: the object is configuration only

Minimal example

apiVersion: billing.etorm.com/v1alpha1
kind: SKU
metadata:
  name: example
spec:
  resource:
    group: "<group>"
    plural: "<plural>"
  priceMicros: 0

Spec

FieldTypeRequiredDefaultAllowedDescription
displayNamestringup to 128 charactersHuman-readable name.
resourceobjectyesThe kind of resource this price applies to.
resource.groupstringyes
resource.versionstring"v1alpha1"
resource.pluralstringyes
meterstring (one of)"count"count, gauge, counter, owner-cpuHow usage is measured: count (resources in phase Ready, per hour), gauge (bytes in each resource's status, integrated over time as GiB-seconds), counter (the increase of an ever-growing number in each resource's status, such as tokens served) or owner-cpu (the CPU time of the platform processes that work for a customer's resource of the SKU's ownerKind).
ownerKindstringup to 63 charactersFor owner-cpu: the kind of the customer's resource whose platform processes are metered, for example Database.
fieldstringup to 128 charactersFor gauge and counter: the path of the number in the resource's status, for example usage.storageBytes or usage.inputTokens.
unitstring (one of)"hour"hour, cpu-second, gib-second, token, requestThe unit the price is per.
priceMicrosintegeryesat least 0Price in millionths of the currency, per `per` units.
perinteger1at least 1How many units the price is for (1 000 000 for a price per million CPU-seconds).
currencystring (one of)"USD"USD, EURCurrency of the price.

Columns in listings

ColumnFrom
Resource.spec.resource.plural
Unit.spec.unit
Price-Micros.spec.priceMicros
Currency.spec.currency

All resources