5

Graphite URL API 中是否有一个函数允许我们忽略某个范围内(或外)的值?

4

1 回答 1

6

相信你可以看看removeAboveValueandremoveBelowValue函数。

例如,要排除低于 2 和高于 10 的值:

http://host/render&target=removeAboveValue(removeBelowValue(a.b.c, 2), 10)

忽略一个范围的值有点困难,但它可能可以通过对先前已过滤掉数据(未经测试)的系列求和来实现:

http://host/render&target=sum(removeAboveValue(a.b.c, 2), removeBelowValue(a.b.c, 10))
于 2013-02-01T08:44:38.710 回答