mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
939c8b8372
vmalert: support unit tests See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2945 --------- Signed-off-by: hagen1778 <roman@victoriametrics.com> Co-authored-by: hagen1778 <roman@victoriametrics.com>
13 lines
385 B
Go
13 lines
385 B
Go
package remotewrite
|
|
|
|
import (
|
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/prompbmarshal"
|
|
)
|
|
|
|
// RWClient represents an HTTP client for pushing data via remote write protocol
|
|
type RWClient interface {
|
|
// Push pushes the give time series to remote storage
|
|
Push(s prompbmarshal.TimeSeries) error
|
|
// Close stops the client. Client can't be reused after Close call.
|
|
Close() error
|
|
}
|