@@ -83,10 +90,9 @@ function TotalCostMath({
))}
Total: {formatCost(total)}
- {`Each guardrail's cost is its units per policy × that policy's per-unit price from the cost map, added up${
- unpriced ? `; ${unpriced} had no known price and are left out` : ""
- }. Open a guardrail for its per-policy math.`}
+ {`Each guardrail's cost is its units per counter × that counter's per-unit price from the cost map, added up. Open a guardrail for its per-counter math.`}
+
);
}
@@ -135,7 +141,7 @@ export function GuardrailsOverview({
: 0,
count: activeData.length,
totalCost: guardrailsData.totalCost,
- unpriced: unpricedSummary(guardrailsData.totalUntrackedUsageUnits),
+ untracked: guardrailsData.totalUntrackedUsageUnits,
};
}, [guardrailsData, activeData]);
const chartData = guardrailsData?.chart;
@@ -318,8 +324,8 @@ export function GuardrailsOverview({
value={formatCost(metrics.totalCost)}
valueColor={metrics.totalCost != null ? "text-foreground" : "text-muted-foreground"}
icon={