MCPcopy Create free account
hub / github.com/cortexproject/cortex / Less

Function Less

integration/e2e/metrics.go:122–129  ·  view source on GitHub ↗

Less is an isExpected function for WaitSumMetrics that returns true if given single sum is less than given value.

(value float64)

Source from the content-addressed store, hash-verified

120
121// Less is an isExpected function for WaitSumMetrics that returns true if given single sum is less than given value.
122func Less(value float64) func(sums ...float64) bool {
123 return func(sums ...float64) bool {
124 if len(sums) != 1 {
125 panic("less: expected one value")
126 }
127 return sums[0] < value
128 }
129}
130
131// LessOrEqual is an isExpected function for WaitSumMetrics that returns true if given single sum is less or equal than given value.
132func LessOrEqual(value float64) func(sums ...float64) bool {

Calls

no outgoing calls