Options
All
  • Public
  • Public/Protected
  • All
Menu

Base interface for aggregators. Aggregators are responsible for holding aggregated values and taking a snapshot of these values upon export.

Type Parameters

  • T

Hierarchy

  • Aggregator

Implemented by

Index

Properties

The kind of the aggregator.

Methods

  • createAccumulation(startTime: HrTime): T
  • diff(previous: T, current: T): T
  • Returns a new DELTA aggregation by comparing two cumulative measurements.

    Parameters

    • previous: T

      the previously captured accumulation

    • current: T

      the newly captured (cumulative) accumulation

    Returns T

    The resulting delta accumulation

  • merge(previous: T, delta: T): T
  • Returns the result of the merge of the given accumulations.

    This should always assume that the accumulations do not overlap and merge together for a new cumulative report.

    Parameters

    • previous: T

      the previously captured accumulation

    • delta: T

      the newly captured (delta) accumulation

    Returns T

    the result of the merge of the given accumulations

Generated using TypeDoc