(labels: Record<string, string | undefined>)
| 84 | } |
| 85 | |
| 86 | function buildDimensions(labels: Record<string, string | undefined>) { |
| 87 | const dimensions = [{ Name: 'Environment', Value: ENVIRONMENT }] |
| 88 | for (const [Name, Value] of Object.entries(labels)) { |
| 89 | if (Value) dimensions.push({ Name, Value }) |
| 90 | } |
| 91 | return dimensions |
| 92 | } |
| 93 | |
| 94 | function enqueue( |
| 95 | MetricName: string, |