(costUsd: number, labels: { provider: string; tool: string })
| 156 | }) |
| 157 | }, |
| 158 | recordCostCharged(costUsd: number, labels: { provider: string; tool: string }) { |
| 159 | // Unit None: CloudWatch has no USD unit; value is dollars. |
| 160 | if (costUsd > 0) |
| 161 | enqueue('CostCharged', costUsd, StandardUnit.None, { |
| 162 | Provider: labels.provider, |
| 163 | Tool: labels.tool, |
| 164 | }) |
| 165 | }, |
| 166 | recordThrottled(labels: { provider: string; tool: string; reason: ThrottleReason }) { |
| 167 | enqueue('Throttled', 1, StandardUnit.Count, { |
| 168 | Provider: labels.provider, |