addData method

  1. @protected
void addData(
  1. Datum datum
)
inherited

Add a data point to the data stream.

Implementation

@protected
void addData(Datum datum) {
  // timestamp this sampling
  if (samplingConfiguration is PersistentSamplingConfiguration) {
    (samplingConfiguration as PersistentSamplingConfiguration).lastTime =
        DateTime.now().toUtc();
  }
  controller.add(datum);
}