VictoriaMetrics/app/vmalert/remotewrite/remotewrite.go

14 lines
385 B
Go
Raw Normal View History

2020-04-27 23:19:27 +02:00
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
2020-04-27 23:19:27 +02:00
}