From b1f9fee9ea1d38da6ef8e5739510d38bc936d497 Mon Sep 17 00:00:00 2001 From: saiflayouni Date: Tue, 30 Jun 2026 20:26:51 +0100 Subject: [PATCH] fix: include (not set) proxy type calls in standard and total counts When proxy_deployment_type is (not set), calls were added to totalApiCalls but not to totalStandard, making them invisible in --proxy-type billing reports. Also ensures EXTENSIBLE and STANDARD calls contribute to totalApiCalls so the total count is accurate across all deployment types. Fixes #714 --- internal/client/env/reports.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/client/env/reports.go b/internal/client/env/reports.go index df43b6568..be9af2b82 100644 --- a/internal/client/env/reports.go +++ b/internal/client/env/reports.go @@ -120,16 +120,19 @@ func totalAPICallsInMonth(dimension bool, environment string, month int, year in for _, m := range d.Metrics { calls, _ := strconv.Atoi(m.Values[0]) totalExtensible = totalExtensible + calls + totalApiCalls = totalApiCalls + calls } } else if d.Name == "STANDARD" { for _, m := range d.Metrics { calls, _ := strconv.Atoi(m.Values[0]) totalStandard = totalStandard + calls + totalApiCalls = totalApiCalls + calls } } else if d.Name == "(not set)" { for _, m := range d.Metrics { calls, _ := strconv.Atoi(m.Values[0]) totalApiCalls = totalApiCalls + calls + totalStandard = totalStandard + calls } } } else {