Skip to main content

CostSample

A single cost data point containing an amount and its currency.

Both amount and currency are nullable. A null amount means Massdriver has no cost data for the requested period -- this is normal for newly provisioned resources or when cloud provider billing data has not yet been ingested. When data is present, amount is always a positive float and currency is an ISO 4217 code (e.g., USD, EUR).

type CostSample {
amount: Float
currency: String
}

Fields

CostSample.amount ● Float scalar {#amount}

The cost in the given currency. Null when no billing data is available for this period.

CostSample.currency ● String scalar {#currency}

ISO 4217 currency code (e.g., USD). Null when no billing data is available.

Member Of

CostSummary object