Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exemplar ¶
type Exemplar struct { // Optional, can be empty. Labels []Label Value float64 // timestamp is in ms format, see model/timestamp/timestamp.go for // conversion from time.Time to Prometheus timestamp. Timestamp int64 }
func (*Exemplar) MarshalToSizedBuffer ¶
type Sample ¶
func (*Sample) MarshalToSizedBuffer ¶
type TimeSeries ¶
TimeSeries represents samples and labels for a single time series.
func ResetTimeSeries ¶ added in v1.35.4
func ResetTimeSeries(tss []TimeSeries) []TimeSeries
ResetTimeSeries clears all the GC references from tss and returns an empty tss ready for further use.
func (*TimeSeries) MarshalToSizedBuffer ¶
func (m *TimeSeries) MarshalToSizedBuffer(dst []byte) (int, error)
func (*TimeSeries) Size ¶
func (m *TimeSeries) Size() (n int)
type WriteRequest ¶
type WriteRequest struct {
Timeseries []TimeSeries
}
func (*WriteRequest) MarshalProtobuf ¶ added in v1.97.0
func (wr *WriteRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf marshals wr to dst and returns the result.
func (*WriteRequest) MarshalToSizedBuffer ¶
func (m *WriteRequest) MarshalToSizedBuffer(dst []byte) (int, error)
func (*WriteRequest) Size ¶
func (m *WriteRequest) Size() (n int)
Click to show internal directories.
Click to hide internal directories.