Skip to content

Metric

Metrics represent the measure object and is passed as parameters to the .metrics() function.

1
2
3
4
5
// The count metric
var count = cf.Metric()

// Any other
var pricepaid = cf.Metric('pricepaid', 'sum')

The first metric is the count which is returned as default in most of the providers. The other is any measurement field and the operation that the returned value represents, which can beĀ sum, avg, min, max, or unique. You can see an example of the returned data here.