test

package
v1.101.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

func PopulateTimeTpl(b []byte, tGlobal time.Time) []byte

PopulateTimeTpl substitutes {TIME_*} with tGlobal in b and returns the result.

func PopulateTimeTplString

func PopulateTimeTplString(s string, t time.Time) string

PopulateTimeTplString substitutes {TIME_*} with t in s 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) Marshal added in v1.32.8

func (m *Label) Marshal() (dAtA []byte, err error)

Marshal marshals m.

func (*Label) MarshalTo added in v1.32.8

func (m *Label) MarshalTo(dAtA []byte) (int, error)

MarshalTo marshals m to dAtA.

func (*Label) MarshalToSizedBuffer added in v1.32.8

func (m *Label) MarshalToSizedBuffer(dAtA []byte) (int, error)

MarshalToSizedBuffer marshals m to dAtA.

func (*Label) Reset added in v1.32.8

func (m *Label) Reset()

Reset resets m.

func (*Label) Size added in v1.32.8

func (m *Label) Size() (n int)

Size returns the size of marshaled m.

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) Marshal added in v1.32.8

func (m *Labels) Marshal() (dAtA []byte, err error)

Marshal marshals m.

func (*Labels) MarshalTo added in v1.32.8

func (m *Labels) MarshalTo(dAtA []byte) (int, error)

MarshalTo marshals m to dAtA.

func (*Labels) MarshalToSizedBuffer added in v1.32.8

func (m *Labels) MarshalToSizedBuffer(dAtA []byte) (int, error)

MarshalToSizedBuffer marshals m to dAtA.

func (*Labels) Reset added in v1.32.8

func (m *Labels) Reset()

Reset resets m.

func (*Labels) Size added in v1.32.8

func (m *Labels) Size() (n int)

Size returns the size of marshaled m.

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) Marshal added in v1.32.8

func (m *Sample) Marshal() (dAtA []byte, err error)

Marshal marshals m.

func (*Sample) MarshalTo added in v1.32.8

func (m *Sample) MarshalTo(dAtA []byte) (int, error)

MarshalTo marshals m to dAtA.

func (*Sample) MarshalToSizedBuffer added in v1.32.8

func (m *Sample) MarshalToSizedBuffer(dAtA []byte) (int, error)

MarshalToSizedBuffer marshals m to dAtA.

func (*Sample) Reset added in v1.32.8

func (m *Sample) Reset()

Reset resets m.

func (*Sample) Size added in v1.32.8

func (m *Sample) Size() (n int)

Size returns the size of marshaled m.

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) Reset added in v1.32.8

func (m *TimeSeries) Reset()

Reset resets m.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL