CostSummary
Aggregated cloud-provider cost metrics for a project, environment, or instance.
Cost data is sourced from your cloud provider's billing APIs and refreshed periodically.
Each metric is a CostSample containing an amount and currency. All four metrics are
always present, but their inner amount and currency may be null if billing data has
not yet been ingested.
- last_month -- Total spend for the most recent complete billing cycle.
- monthly_average -- Average monthly spend across all available billing cycles.
- last_day -- Total spend for the most recent 24-hour period.
- daily_average -- Average daily spend over the last 7 days.
Spend in different currencies is never converted or added together. byCurrency lists the
metrics for each currency. The four top-level metrics are the first byCurrency entry: the
currency with the largest last month total.
type CostSummary {
lastMonth: CostSample!
monthlyAverage: CostSample!
lastDay: CostSample!
dailyAverage: CostSample!
byCurrency: [CostCurrencySummary!]!
}
Fields
CostSummary.lastMonth ● CostSample! non-null object {#last-month}
Total cost for the most recent complete billing cycle, in the currency with the largest last month total.
CostSummary.monthlyAverage ● CostSample! non-null object {#monthly-average}
Average monthly cost across all available billing cycles, in the currency with the largest last month total.
CostSummary.lastDay ● CostSample! non-null object {#last-day}
Total cost for the most recent 24-hour period, in the currency with the largest last month total.
CostSummary.dailyAverage ● CostSample! non-null object {#daily-average}
Average daily cost over the last 7 days, in the currency with the largest last month total.
CostSummary.byCurrency ● [CostCurrencySummary!]! non-null object {#by-currency}
Cost metrics for each currency this spend is billed in. Sorted by the largest last month total first, then by currency code. A currency with no last month total sorts after those that have one. Empty when no billing data is available.
Member Of
Environment object ● Instance object ● Project object