diff --git a/api.go b/api.go index 935e1e1..6a1c3aa 100644 --- a/api.go +++ b/api.go @@ -19,6 +19,7 @@ type StatsResponse struct { Skipped int `json:"skipped"` Latest int `json:"latest"` Queued int `json:"queued"` + Building int `json:"building"` LastMirrorTimestamp *int64 `json:"last_mirror_timestamp,omitempty"` LTO *struct { Enabled int `json:"enabled"` @@ -73,6 +74,8 @@ func GetStats(w http.ResponseWriter, r *http.Request) { resp.Latest = c.Count case dbpackage.StatusQueued: resp.Queued = c.Count + case dbpackage.StatusBuilding: + resp.Building = c.Count } } diff --git a/openapi_alhp.yaml b/openapi_alhp.yaml index 8756f77..e335266 100644 --- a/openapi_alhp.yaml +++ b/openapi_alhp.yaml @@ -224,6 +224,11 @@ components: format: int64 description: Number of packages currently in the build queue example: 5 + building: + type: integer + format: int64 + description: Number of packages currently building + example: 11 last_mirror_timestamp: type: integer format: int64