refactor(alerting): rename P95_LATENCY_MS → AVG_DURATION_MS to match what stats_1m_route exposes

The evaluator mapped P95_LATENCY_MS to ExecutionStats.avgDurationMs because
stats_1m_route has no p95 column. Exposing the old name implied p95 semantics
operators did not get. Rename to AVG_DURATION_MS makes the contract honest.
Updated RouteMetric enum (with javadoc), evaluator switch, and admin guide.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-20 07:36:43 +02:00
parent 144915563c
commit f1abca3a45
3 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
package com.cameleer.server.core.alerting;
public enum RouteMetric { ERROR_RATE, P95_LATENCY_MS, P99_LATENCY_MS, THROUGHPUT, ERROR_COUNT }
public enum RouteMetric {
ERROR_RATE,
/** Average execution duration — maps to stats_1m_route.avgDurationMs. */
AVG_DURATION_MS,
P99_LATENCY_MS,
THROUGHPUT,
ERROR_COUNT
}