【问题标题】:Is there a way to Ignore values by range when displaying in composer?在作曲家中显示时,有没有办法按范围忽略值?
【发布时间】:2013-01-28 14:36:28
【问题描述】:

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

【问题讨论】:

    标签: graphite


    【解决方案1】:

    相信您可以查看removeAboveValueremoveBelowValue 函数。

    例如,要排除小于 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))
    

    【讨论】:

      猜你喜欢
      • 2015-06-14
      • 1970-01-01
      • 1970-01-01
      • 2020-07-02
      • 2020-01-08
      • 2016-12-27
      • 2013-12-03
      • 1970-01-01
      • 2015-04-17
      相关资源
      最近更新 更多