(res: http.ServerResponse, url: URL)
| 650 | } |
| 651 | |
| 652 | private serveMetrics(res: http.ServerResponse, url: URL): void { |
| 653 | const days = Math.min(90, Math.max(7, Number(url.searchParams.get("days")) || 30)); |
| 654 | const data = this.store.getMetrics(days); |
| 655 | this.jsonResponse(res, data); |
| 656 | } |
| 657 | |
| 658 | private serveToolMetrics(res: http.ServerResponse, url: URL): void { |
| 659 | const fromParam = url.searchParams.get("from"); |
no test coverage detected