(labels: { provider: string; tool: string; key: string; reason: FailureReason })
| 148 | }) |
| 149 | }, |
| 150 | recordFailed(labels: { provider: string; tool: string; key: string; reason: FailureReason }) { |
| 151 | enqueue('Failed', 1, StandardUnit.Count, { |
| 152 | Provider: labels.provider, |
| 153 | Tool: labels.tool, |
| 154 | Key: labels.key, |
| 155 | Reason: labels.reason, |
| 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) |