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)
(type: ABC , property:dog)
(type: ABC , property:mouse)
(type: ABC , property:mouse)
(type: LMN , property:cat)
我希望列表为:
40 cat
40 mouse
20 dog
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')