mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 08:23:34 +01:00
app/vmalert: added missing comments for public entities
This commit is contained in:
parent
716bbe79d4
commit
a858b7e393
@ -30,6 +30,7 @@ type Client struct {
|
|||||||
doneCh chan struct{}
|
doneCh chan struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Config is config for remote write.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
// Addr of remote storage
|
// Addr of remote storage
|
||||||
Addr string
|
Addr string
|
||||||
|
@ -218,6 +218,7 @@ const (
|
|||||||
alertStateLabel = "alertstate"
|
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 {
|
func (r *Rule) AlertToTimeSeries(a *notifier.Alert, timestamp time.Time) []prompbmarshal.TimeSeries {
|
||||||
var tss []prompbmarshal.TimeSeries
|
var tss []prompbmarshal.TimeSeries
|
||||||
tss = append(tss, alertToTimeSeries(r.Name, a, timestamp))
|
tss = append(tss, alertToTimeSeries(r.Name, a, timestamp))
|
||||||
|
Loading…
Reference in New Issue
Block a user