MCPcopy
hub / github.com/prometheus/prometheus / MockSeries

Function MockSeries

storage/interface.go:625–632  ·  view source on GitHub ↗

MockSeries returns a series with custom start timestamp, timestamps, values, and labelSet. Start timestamps is optional, pass nil or empty slice to indicate no start timestamps.

(startTimestamps, timestamps []int64, values []float64, labelSet []string)

Source from the content-addressed store, hash-verified

623// Start timestamps is optional, pass nil or empty slice to indicate no start
624// timestamps.
625func MockSeries(startTimestamps, timestamps []int64, values []float64, labelSet []string) Series {
626 return mockSeries{
627 startTimestamps: startTimestamps,
628 timestamps: timestamps,
629 values: values,
630 labelSet: labelSet,
631 }
632}
633
634// ChunkSeriesSet contains a set of chunked series.
635type ChunkSeriesSet interface {

Callers 3

TestMockSeriesFunction · 0.92
TestMockSeriesWithSTFunction · 0.92
TestQueryForStateSeriesFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestMockSeriesFunction · 0.74
TestMockSeriesWithSTFunction · 0.74
TestQueryForStateSeriesFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…