1. Metrics
  2. Total Summer

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.

loading...

Parameters

metrictype
required
string

Metric type to be used.


params.amount_field_name
required
string

This is the fieldname to which the data will be written to in stub.metrics.


params.category
optional
string

This is a grouping of metric within the stub.metrics root.


params.operator
string

Type of arithmetic to perform.

Options: addition subtraction

Default: addition


params.default_amount
integer

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.

loading...