MetricCollector.record

void record(T value, SysTime timestamp = Clock.currTime())

Records a metric value with an optional timestamp.

Parameters

valueThe metric value to record.
timestampThe timestamp for this value (default: current time). Example:
collector.record(42.5);
collector.record(38.2, Clock.currTime() - 30.seconds);