Add service status and usage dashboard, refresh externally published edits
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user