API: the "Last apply" check is now "Kernel in sync"
GET /api/v1/status names the check Kernel in sync, the same as the health row in the web interface, which now reads the new name directly. The detail is unchanged: "applied <time>" or the kernel's error.
This commit is contained in:
@@ -353,7 +353,7 @@ func (a *App) status(w http.ResponseWriter, r *http.Request) {
|
||||
d30, u30 := sumPoints(a.stats.series(nil, "30d"))
|
||||
checks := a.kernel.Checks(cfg)
|
||||
last, applyErr := a.recon.Status()
|
||||
ac := Check{Name: "Last apply", OK: applyErr == nil, Detail: "applied " + last.Format(time.RFC3339)}
|
||||
ac := Check{Name: "Kernel in sync", OK: applyErr == nil, Detail: "applied " + last.Format(time.RFC3339)}
|
||||
if applyErr != nil {
|
||||
ac.Detail = applyErr.Error()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user