Move failed count and avg duration from page-derived to backend stats
Some checks failed
CI / build (push) Successful in 1m11s
CI / deploy (push) Has been cancelled
CI / docker (push) Has been cancelled

All stat card values now come from the /search/stats endpoint which
queries the full time window, not just the current page of results.
Consolidated into a single ClickHouse query for efficiency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-13 22:51:43 +01:00
parent 4cdf2ac012
commit 393d19e3f4
5 changed files with 30 additions and 22 deletions

View File

@@ -1049,6 +1049,14 @@
"ExecutionStats": {
"type": "object",
"properties": {
"failedCount": {
"type": "integer",
"format": "int64"
},
"avgDurationMs": {
"type": "integer",
"format": "int64"
},
"p99LatencyMs": {
"type": "integer",
"format": "int64"

View File

@@ -217,6 +217,8 @@ export interface ProcessorNode {
export type ProcessorSnapshot = Record<string, string>;
export interface ExecutionStats {
failedCount: number;
avgDurationMs: number;
p99LatencyMs: number;
activeCount: number;
}