Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sample ¶
type Sample struct { // Value is sample value. Value float64 // Timestamp is unix timestamp for the sample in milliseconds. Timestamp int64 }
Sample is a timeseries sample.
type TimeSeries ¶
type TimeSeries struct { // Labels is a list of labels for the given TimeSeries Labels []Label // Samples is a list of samples for the given TimeSeries Samples []Sample }
TimeSeries is a timeseries.
type WriteRequest ¶
type WriteRequest struct { // Timeseries is a list of time series in the given WriteRequest Timeseries []TimeSeries // contains filtered or unexported fields }
WriteRequest represents Prometheus remote write API request.
func (*WriteRequest) UnmarshalProtobuf ¶ added in v1.97.0
func (wr *WriteRequest) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf unmarshals wr from src.
src mustn't change while wr is in use, since wr points to src.
Click to show internal directories.
Click to hide internal directories.