A sample (data point) with value and optional timestamp.
Each sample represents a single measurement at a specific point in time. If no timestamp is provided, the current time will be used automatically.
{ value: 42.5 }{ value: 100, timestamp: Date.now() }{ value: Math.random() * 100, timestamp: 1643235433000 } Copy
{ value: 42.5 }{ value: 100, timestamp: Date.now() }{ value: Math.random() * 100, timestamp: 1643235433000 }
Optional
Optional timestamp in milliseconds. If not provided, the current time is used.
The numeric value of the sample.
A sample (data point) with value and optional timestamp.
Each sample represents a single measurement at a specific point in time. If no timestamp is provided, the current time will be used automatically.
Example