(metricName, value)
| 1268 | } |
| 1269 | |
| 1270 | function formatThresholdValue(metricName, value) { |
| 1271 | if (!Number.isFinite(value)) { |
| 1272 | return String(value); |
| 1273 | } |
| 1274 | if (metricName.includes("duration")) { |
| 1275 | return formatMs(value); |
| 1276 | } |
| 1277 | if (metricName.includes("failed") || metricName === "checks") { |
| 1278 | return formatPercent(value); |
| 1279 | } |
| 1280 | return formatCompact(value); |
| 1281 | } |
| 1282 | |
| 1283 | function humanizeMetricTags(tags) { |
| 1284 | const parts = []; |
no test coverage detected