MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / getEmptyBreakdown

Function getEmptyBreakdown

console/src/platform/billing/utils.ts:282–303  ·  view source on GitHub ↗
(days: number)

Source from the content-addressed store, hash-verified

280}
281
282function getEmptyBreakdown(days: number) {
283 return {
284 compute: {
285 total: {
286 usageValue: 0,
287 usageUnits: costUnits.compute,
288 usagePoints: Array(days).fill(0),
289 totalCost: 0,
290 },
291 resources: new Map(),
292 },
293 storage: {
294 total: {
295 usageValue: 0,
296 usageUnits: costUnits.storage,
297 usagePoints: Array(days).fill(0),
298 totalCost: 0,
299 },
300 resources: new Map(),
301 },
302 };
303}
304
305export function getIsUpgradedPlan(
306 planType: components["schemas"]["PlanType"] | undefined,

Callers 1

summarizeDayCostFunction · 0.85

Calls 1

ArrayClass · 0.85

Tested by

no test coverage detected