Metrics
Total Summer
Sums all amounts called on this metric..
Basic usage
Increments the value of stub.metrics.counters.summer.sum_field
by 1 starting at 10.
Parameters
required string
metrictype Metric type to be used.
required string
params.amount_field_name This is the fieldname to which the data will be written to in stub.metrics
.
optional string
params.category This is a grouping of metric within the stub.metrics
root.
string
params.operator Type of arithmetic to perform.
Options: addition
subtraction
Default: addition
integer
params.default_amount This is the default value to use if the field is non-existent.
Default: 0
Example
Decrements the value of _ stub.metrics.counters.sum_field
_ by 1 starting at 10.