diff --git a/ui/src/components/QueueSizeMetricsChart.tsx b/ui/src/components/QueueSizeMetricsChart.tsx index 4b503b5..ceacedc 100644 --- a/ui/src/components/QueueSizeMetricsChart.tsx +++ b/ui/src/components/QueueSizeMetricsChart.tsx @@ -13,6 +13,10 @@ import { Metrics } from "../api"; interface Props { data: Metrics[]; + + // both startTime and endTime are in unix time (seconds) + startTime: number; + endTime: number; } // interface that rechart understands. @@ -58,9 +62,12 @@ function QueueSizeMetricsChart(props: Props) { new Date(timestamp * 1000).toLocaleTimeString() } + type="number" + scale="time" /> @@ -322,7 +324,15 @@ function MetricsView(props: Props) { Queue Size - +