Sample

data class Sample(val sequenceId: Long, val time: Instant, val value: Double) : Comparable<DownsampledInstantaneousMetricData.Sample>

A single metric sample at a specific point in time.

The sequence ID serves as a tie-breaker for samples with identical timestamps, ensuring they are treated as distinct in the sorted set and don't accidentally overwrite each other.

Constructors

Link copied to clipboard
constructor(sequenceId: Long, time: Instant, value: Double)

Properties

Link copied to clipboard

unique identifier assigning this sample a position in the overall sequence

Link copied to clipboard

the simulation time at which this sample was recorded

Link copied to clipboard

the numeric value of the metric at this time

Functions

Link copied to clipboard
open operator override fun compareTo(other: DownsampledInstantaneousMetricData.Sample): Int