MCPcopy Index your code
hub / github.com/cortexproject/cortex / Append

Method Append

pkg/ruler/compat.go:68–75  ·  view source on GitHub ↗
(_ storage.SeriesRef, l labels.Labels, t int64, v float64)

Source from the content-addressed store, hash-verified

66}
67
68func (a *PusherAppender) Append(_ storage.SeriesRef, l labels.Labels, t int64, v float64) (storage.SeriesRef, error) {
69 a.labels = append(a.labels, l)
70 a.samples = append(a.samples, cortexpb.Sample{
71 TimestampMs: t,
72 Value: v,
73 })
74 return 0, nil
75}
76
77func (a *PusherAppender) SetOptions(opts *storage.AppendOptions) {
78 a.opts = opts

Callers 15

CreateBlockFunction · 0.80
generateStorageBlockFunction · 0.80
mockTSDBFunction · 0.80
generateBenchmarkBlockFunction · 0.80
QueryStreamMethod · 0.80
createTSDBBlockFunction · 0.80
mockSeriesResponseFunction · 0.80
ConvertToChunksFunction · 0.80
PushMethod · 0.80
mockWriteRequestFunction · 0.80
CreateBlockFunction · 0.80

Calls

no outgoing calls

Tested by 15

generateStorageBlockFunction · 0.64
mockTSDBFunction · 0.64
generateBenchmarkBlockFunction · 0.64
QueryStreamMethod · 0.64
createTSDBBlockFunction · 0.64
mockSeriesResponseFunction · 0.64
mockWriteRequestFunction · 0.64
CreateBlockFunction · 0.64
TestPusherAppendableFunction · 0.64
TestPusherErrorsFunction · 0.64
testMemcacheFunction · 0.64