Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/client/env/reports.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down