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

@@ -1,9 +1,11 @@
package com.cameleer3.server.core.search;
/**
* Aggregate execution statistics.
* Aggregate execution statistics within a time window.
*
* @param p99LatencyMs 99th percentile duration in milliseconds within the requested time window
* @param activeCount number of currently running executions
* @param failedCount number of failed executions
* @param avgDurationMs average duration in milliseconds
* @param p99LatencyMs 99th percentile duration in milliseconds
* @param activeCount number of currently running executions
*/
public record ExecutionStats(long p99LatencyMs, long activeCount) {}
public record ExecutionStats(long failedCount, long avgDurationMs, long p99LatencyMs, long activeCount) {}