app/vmalert: add missing comment for ErrStateRestore

This commit is contained in:
Aliaksandr Valialkin 2021-05-08 15:59:04 +03:00
parent d6439490f5
commit 237e9f9fd7

View file

@ -405,6 +405,7 @@ func alertForToTimeSeries(name string, a *notifier.Alert, timestamp time.Time) p
return newTimeSeries(float64(a.Start.Unix()), labels, timestamp)
}
// ErrStateRestore indicates that the vmalert state failed to restore during startup.
var ErrStateRestore = errors.New("failed to restore the state")
// Restore restores the state of active alerts basing on previously written timeseries.