信号列表以显示百分比

问题描述 投票:0回答:0
A = data('some.request.property', filter=filter('type', 'ABC'), rollup='sum', extrapolation='zero').sum(by=['property']).publish(label='A')

,例如,如果有6个事件为:

(type: ABC , property:cat)

(type: ABC , property:cat)
  1. (type: ABC , property:dog)
  2. (type: ABC , property:mouse)
  3. (type: ABC , property:mouse)
  4. (type: LMN , property:cat)
  5. 我希望列表为:
  6. 40 cat 40 mouse 20 dog
  7. 	
  8. 这工作:

T = data('some.request.property.count', filter=filter('type', 'ABC'), rollup='sum', extrapolation='zero').sum(over=Args.get('ui.dashboard_window', '15m')).sum().publish(label='total', enable=False) C = data('some.request.property.count', filter=filter('type', 'ABC'), rollup='sum', extrapolation='zero').sum(over=Args.get('ui.dashboard_window', '15m')).publish(label='eachProperty', enable=False) U = ((C/T)*100).ceil().publish(label='Percentage')

	
signalfx
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.