MCPcopy
hub / github.com/prometheus/prometheus / SetOutOfOrderTimeWindow

Method SetOutOfOrderTimeWindow

tsdb/head.go:1121–1127  ·  view source on GitHub ↗

SetOutOfOrderTimeWindow updates the out of order related parameters. If the Head already has a WBL set, then the wbl will be ignored.

(oooTimeWindow int64, wbl *wlog.WL)

Source from the content-addressed store, hash-verified

1119// SetOutOfOrderTimeWindow updates the out of order related parameters.
1120// If the Head already has a WBL set, then the wbl will be ignored.
1121func (h *Head) SetOutOfOrderTimeWindow(oooTimeWindow int64, wbl *wlog.WL) {
1122 if oooTimeWindow > 0 && h.wbl == nil {
1123 h.wbl = wbl
1124 }
1125
1126 h.opts.OutOfOrderTimeWindow.Store(oooTimeWindow)
1127}
1128
1129// PostingsCardinalityStats returns highest cardinality stats by label and value names.
1130func (h *Head) PostingsCardinalityStats(statsByLabelName string, limit int) *index.PostingsStats {

Callers 1

ApplyConfigMethod · 0.95

Calls 1

StoreMethod · 0.65

Tested by

no test coverage detected