diff --git a/app/vmalert/alerting.go b/app/vmalert/alerting.go index 978fafa3e..c4b12a327 100644 --- a/app/vmalert/alerting.go +++ b/app/vmalert/alerting.go @@ -148,7 +148,7 @@ func (ar *AlertingRule) toTimeSeries(timestamp time.Time) []prompbmarshal.TimeSe return tss } -// copy all significant fields. +// UpdateWith copies all significant fields. // alerts state isn't copied since // it should be updated in next 2 Execs func (ar *AlertingRule) UpdateWith(r Rule) error { diff --git a/app/vmalert/recording.go b/app/vmalert/recording.go index 348041d22..df5b691ce 100644 --- a/app/vmalert/recording.go +++ b/app/vmalert/recording.go @@ -118,7 +118,7 @@ func (rr *RecordingRule) toTimeSeries(m datasource.Metric, timestamp time.Time) return newTimeSeries(m.Value, labels, timestamp) } -// copy all significant fields. +// UpdateWith copies all significant fields. // alerts state isn't copied since // it should be updated in next 2 Execs func (rr *RecordingRule) UpdateWith(r Rule) error {