Harshit
Harshit

Reputation: 1217

How to add two different fields using timelion

.es(metric='sum:completed','sum:cancelled')

I have value in 2 different fields completed and cancelled, now I am trying to add values in above . What is the right way ?

I tried above but it fails .

Upvotes: 1

Views: 3139

Answers (1)

Harshit
Harshit

Reputation: 1217

.es(metric='sum:completed').sum(.es(metric='sum:cancelled'))

Upvotes: 3

Related Questions