Skip to main content

PublicRateCardEntryType

One priced dimension of the public rate card: its rate and its free allowances. A dimension with a price of 0 is metered but not charged.

type PublicRateCardEntryType {
scope: RateScope!
metric: String!
unitLabel: String!
unitQuantity: BigInt!
priceCents: Float!
currency: String!
freePerHour: BigInt
freePerMonth: BigInt
freeUnits: BigInt
freePeriod: AllowancePeriod
allowancePerOrganization: Boolean!
priceBands: [RateCardBandType!]
priceBandBasis: PriceBandBasis
}

Fields​

PublicRateCardEntryType.scope ● RateScope! non-null enum​

Which card this row is on.

PublicRateCardEntryType.metric ● String! non-null scalar​

The metered dimension, e.g. "graphql_recv_ops" or "player_wasm_compute_units". This is the key your usage is aggregated under, so it is what to match a bill line against.

PublicRateCardEntryType.unitLabel ● String! non-null scalar​

Human unit this price is quoted in, e.g. "GiB" or "M units". Display only; the arithmetic uses unitQuantity.

PublicRateCardEntryType.unitQuantity ● BigInt! non-null scalar​

How many raw metric units one priceCents charge covers, as a BigInt decimal string. A price of 19 with unitQuantity 1073741824 is 19 cents per GiB. priceCents and unitQuantity are two halves of one price and mean nothing apart.

PublicRateCardEntryType.priceCents ● Float! non-null scalar​

Cents charged per unitQuantity raw units, above the free allowance. Fractional values are permitted. 0 means metered but not charged.

PublicRateCardEntryType.currency ● String! non-null scalar​

ISO currency code. USD today.

PublicRateCardEntryType.freePerHour ● BigInt scalar​

Raw metric units free per clock hour before anything is charged, as a BigInt decimal string. Null when this dimension has no allowance row, which for a priced dimension means it bills from the first unit.

PublicRateCardEntryType.freePerMonth ● BigInt scalar​

Raw metric units free per UTC calendar month, as a BigInt decimal string. On the PLAYER card this is the monthly trial budget of a player: in each app, or one across the apps of an organization from playerTrialPool.perOrganizationFrom. Null when this dimension has no monthly allowance.

PublicRateCardEntryType.freeUnits ● BigInt scalar​

The allowance as the biller reads it: raw metric units free per freePeriod, as a BigInt decimal string. Null when the dimension has no allowance row.

PublicRateCardEntryType.freePeriod ● AllowancePeriod enum​

The period freeUnits resets on. Every dimension is billed as its period aggregate crosses each whole cent, within about a minute of the usage arriving.

PublicRateCardEntryType.allowancePerOrganization ● Boolean! non-null scalar​

True when freeUnits is already the whole organization's allowance, shared by its apps: wasm_memory_reserved (reserved compute-module memory). False on every other dimension, whose allowance is one app's; in a pooled month an organization's apps share allowancePool.factor times it.

PublicRateCardEntryType.priceBands ● [RateCardBandType!] list object​

The graduated price, band by band, or null when the dimension has one flat price. Egress (aggregate_data_volume) is priced this way. On a RATE schedule each connection's data out is priced minute by minute at the rate it was served at: the part of a minute below the first edge at the first band, the part between the first and second edges at the second, and so on, while data out that belongs to no connection (API responses, module egress) is priced at the first band. On a VOLUME schedule each GB is charged at the band the app's month-to-date total has reached. priceCents is the first band's price, and the free monthly allowance comes out of the first band.

PublicRateCardEntryType.priceBandBasis ● PriceBandBasis enum​

What priceBands' edges measure: RATE (each connection's rate, minute by minute, in bits per second) or VOLUME (the app's running total for the month). Null on a flat row.

Returned By​

meteredRateCard query