app/vmalert: added missing comments for public entities

This commit is contained in:
Aliaksandr Valialkin 2020-04-28 11:19:37 +03:00
parent 20b71acf19
commit 1397612117
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ type Client struct {
doneCh chan struct{}
}
// Config is config for remote write.
type Config struct {
// Addr of remote storage
Addr string

View File

@ -218,6 +218,7 @@ const (
alertStateLabel = "alertstate"
)
// AlertToTimeSeries converts the given alert with the given timestamp to timeseries
func (r *Rule) AlertToTimeSeries(a *notifier.Alert, timestamp time.Time) []prompbmarshal.TimeSeries {
var tss []prompbmarshal.TimeSeries
tss = append(tss, alertToTimeSeries(r.Name, a, timestamp))