2020-04-27 23:19:27 +02:00
|
|
|
package remotewrite
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/prompbmarshal"
|
|
|
|
)
|
|
|
|
|
2023-10-13 13:54:33 +02:00
|
|
|
// 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
|
2024-06-20 13:20:40 +02:00
|
|
|
// CloseAndReport stops the client and reports dropped rows
|
|
|
|
CloseAndReport() (int64, error)
|
2020-04-27 23:19:27 +02:00
|
|
|
}
|