addData method
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);
}