Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶ added in v1.32.8
func Compress(wr WriteRequest) ([]byte, error)
Compress marshals and compresses wr.
func PopulateTimeTpl ¶
PopulateTimeTpl substitutes {TIME_*} with tGlobal in b and returns the result.
Types ¶
type Label ¶ added in v1.32.8
type Label struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
Label is time series label.
func (*Label) MarshalToSizedBuffer ¶ added in v1.32.8
MarshalToSizedBuffer marshals m to dAtA.
type Labels ¶ added in v1.32.8
type Labels struct {
Labels []Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"`
}
Labels is a set of labels.
func (*Labels) MarshalToSizedBuffer ¶ added in v1.32.8
MarshalToSizedBuffer marshals m to dAtA.
type Sample ¶ added in v1.32.8
type Sample struct { Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
Sample is time series sample.
func (*Sample) MarshalToSizedBuffer ¶ added in v1.32.8
MarshalToSizedBuffer marshals m to dAtA.
type TimeSeries ¶ added in v1.32.8
type TimeSeries struct { Labels []Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"` Samples []Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples"` }
TimeSeries represents samples and labels for a single time series.
func (*TimeSeries) Marshal ¶ added in v1.32.8
func (m *TimeSeries) Marshal() (dAtA []byte, err error)
Marshal marshals m.
func (*TimeSeries) MarshalTo ¶ added in v1.32.8
func (m *TimeSeries) MarshalTo(dAtA []byte) (int, error)
MarshalTo marshals m to dAtA.
func (*TimeSeries) MarshalToSizedBuffer ¶ added in v1.32.8
func (m *TimeSeries) MarshalToSizedBuffer(dAtA []byte) (int, error)
MarshalToSizedBuffer marshals m to dAtA.
func (*TimeSeries) Size ¶ added in v1.32.8
func (m *TimeSeries) Size() (n int)
Size returns the size of marshaled m.
type WriteRequest ¶ added in v1.32.8
type WriteRequest struct {
Timeseries []TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries"`
}
WriteRequest is write request
func (*WriteRequest) Marshal ¶ added in v1.32.8
func (m *WriteRequest) Marshal() (dAtA []byte, err error)
Marshal marshals m.
func (*WriteRequest) MarshalTo ¶ added in v1.32.8
func (m *WriteRequest) MarshalTo(dAtA []byte) (int, error)
MarshalTo marshals m to dAtA
func (*WriteRequest) MarshalToSizedBuffer ¶ added in v1.32.8
func (m *WriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
MarshalToSizedBuffer marshals m to dAtA.
func (*WriteRequest) Size ¶ added in v1.32.8
func (m *WriteRequest) Size() (n int)
Size returns m size in bytes after marshaling.