JSONOutput is the top-level JSON structure.
| 64 | |
| 65 | // JSONOutput is the top-level JSON structure. |
| 66 | type 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, |
nothing calls this directly
no outgoing calls
no test coverage detected