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)
| 623 | // Start timestamps is optional, pass nil or empty slice to indicate no start |
| 624 | // timestamps. |
| 625 | func 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. |
| 635 | type ChunkSeriesSet interface { |
no outgoing calls
searching dependent graphs…