Add transcription comparison stats

This commit is contained in:
Grendgi
2026-06-09 14:59:08 +03:00
parent 88e7c86836
commit 35c60f0e0e
3 changed files with 118 additions and 8 deletions

View File

@@ -119,6 +119,22 @@ type ErrorStat struct {
Last24h int64 `json:"last_24h"`
}
type TranscriptionComparisonStat struct {
Provider string `json:"provider"`
Model string `json:"model,omitempty"`
Attempts int64 `json:"attempts"`
Success int64 `json:"success"`
Failed int64 `json:"failed"`
SuccessRate float64 `json:"success_rate"`
Wins int64 `json:"wins"`
Last24hAttempts int64 `json:"last_24h_attempts"`
Last24hSuccess int64 `json:"last_24h_success"`
AvgDurationMS int64 `json:"avg_duration_ms"`
P50DurationMS int64 `json:"p50_duration_ms"`
AvgTextChars int64 `json:"avg_text_chars"`
LastAt *time.Time `json:"last_at,omitempty"`
}
type OwnerStat struct {
OwnerService string `json:"owner_service"`
TaskType string `json:"task_type"`