IBase.StatsSample
val new_sample : time:int option -> sample
Create an empty sample with given creation timestamp. If time is not specified, corresponds to current timestamp.
Set a new integer field and its value to the sample. Overwrites if a field with this name was already set.
Set a new string field and its value to the sample. Overwrites if a field with this name was already set.
val sample_to_json : sample -> Yojson.t