(labels: { provider: string; tool: string; key: string })
| 141 | |
| 142 | export const hostedKeyMetrics = { |
| 143 | recordUsed(labels: { provider: string; tool: string; key: string }) { |
| 144 | enqueue('Used', 1, StandardUnit.Count, { |
| 145 | Provider: labels.provider, |
| 146 | Tool: labels.tool, |
| 147 | Key: labels.key, |
| 148 | }) |
| 149 | }, |
| 150 | recordFailed(labels: { provider: string; tool: string; key: string; reason: FailureReason }) { |
| 151 | enqueue('Failed', 1, StandardUnit.Count, { |
| 152 | Provider: labels.provider, |