Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sample ¶
type Sample struct { Metric string `json:"metric"` Value model.SampleValue `json:"value"` Labels model.LabelSet `json:"labels"` Timestamp time.Time `json:"timestamp"` }
func (*Sample) ConvertTimeSeries ¶
func (sample *Sample) ConvertTimeSeries() prompb.TimeSeries
ConvertTimeSeries converts a prometheus TimeSeries to a Sample
func (*Sample) SetTimestamp ¶
Click to show internal directories.
Click to hide internal directories.