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 This is the object that contains the parameters for the metric.
Show child attributes
required string
amount_field_name This is the fieldname to which the data will be written to in stub.metrics
.
optional string
category This is a grouping of metric within the stub.metrics
root.
string
operator Type of arithmetic to perform.
Options: addition
subtraction
Default: addition
integer
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.