Creates a Sample object.
This constructor function creates a sample (data point) with a value and timestamp.
The numeric value of the sample
Timestamp in milliseconds
A Sample object
import remote from 'k6/x/remotewrite';const sample1 = remote.Sample(42, Date.now());const sample2 = remote.Sample(100.5, 1643235433000); Copy
import remote from 'k6/x/remotewrite';const sample1 = remote.Sample(42, Date.now());const sample2 = remote.Sample(100.5, 1643235433000);
Creates a Sample object.
This constructor function creates a sample (data point) with a value and timestamp.