MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / JSONOutput

Struct JSONOutput

internal/estimate/print.go:66–70  ·  view source on GitHub ↗

JSONOutput is the top-level JSON structure.

Source from the content-addressed store, hash-verified

64
65// JSONOutput is the top-level JSON structure.
66type JSONOutput struct {
67 Resources []JSONResource `json:"resources"`
68 Totals JSONTotals `json:"totals"`
69 Guardrail *GuardrailResult `json:"guardrail,omitempty"`
70}
71
72// ComputeTotals sums the hourly and usage-based costs across all results into a
73// JSONTotals summary. It is the single source of truth for the monthly total,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected