Add service status and usage dashboard, refresh externally published edits

This commit is contained in:
2026-10-09 20:20:44 +01:00
parent 67ac79765f
commit a50e8648f6
31 changed files with 1283 additions and 42 deletions
+25
View File
@@ -0,0 +1,25 @@
package protocol
type RunCounts struct {
Total int `json:"total"`
Succeeded int `json:"succeeded"`
Failed int `json:"failed"`
Canceled int `json:"canceled"`
Interrupted int `json:"interrupted"`
Active int `json:"active"`
AverageSeconds float64 `json:"average_seconds"`
}
type PipelineUsage struct {
PipelineID int64 `json:"pipeline_id"`
Name string `json:"name"`
RunCounts
}
type DailyUsage struct {
Date string `json:"date"`
Runs int `json:"runs"`
}
type UsageStats struct {
RunCounts
Pipelines []PipelineUsage `json:"pipelines"`
Days []DailyUsage `json:"days"`
}