AGGREGATION_TEMPORALITY_DELTA constant
AggregationTemporality
const AGGREGATION_TEMPORALITY_DELTA
DELTA is an AggregationTemporality for a metric aggregator which reports changes since last report time. Successive metrics contain aggregation of values from continuous and non-overlapping intervals.
The values for a DELTA metric are based only on the time interval associated with one measurement cycle. There is no dependency on previous measurements like is the case for CUMULATIVE metrics.
For example, consider a system measuring the number of requests that it receives and reports the sum of these requests every second as a DELTA metric:
- The system starts receiving at time=t_0.
- A request is received, the system measures 1 request.
- A request is received, the system measures 1 request.
- A request is received, the system measures 1 request.
- The 1 second collection cycle ends. A metric is exported for the number of requests received over the interval of time t_0 to t_0+1 with a value of 3.
- A request is received, the system measures 1 request.
- A request is received, the system measures 1 request.
- The 1 second collection cycle ends. A metric is exported for the number of requests received over the interval of time t_0+1 to t_0+2 with a value of 2.
Implementation
static const AggregationTemporality AGGREGATION_TEMPORALITY_DELTA =
AggregationTemporality._(
1, _omitEnumNames ? '' : 'AGGREGATION_TEMPORALITY_DELTA');