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
priceBands: [RateCardBandType!]
}

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 pooled monthly trial budget per (player, app). 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.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 per app per calendar month: each GB is charged at the band the app's month-to-date total has reached, and priceCents is the first band's price.

Returned By​

meteredRateCard query