(ms: number)
| 52 | } |
| 53 | |
| 54 | export function bucketDuration(ms: number): '<10s' | '10-60s' | '1-5m' | '5m+' { |
| 55 | if (ms < 10_000) return '<10s'; |
| 56 | if (ms < 60_000) return '10-60s'; |
| 57 | if (ms < 300_000) return '1-5m'; |
| 58 | return '5m+'; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Shared "a full index completed" event (CLI init/index + installer local |