TemporalMeasurementSetValue Method

Sets numeric value and timestamp, as ticks, of this TemporalMeasurement.

Definition

Namespace: Gemstone.Timeseries
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.138 -- Release Build+b4f8847fe309a44734617722bca179874d85b46d
public bool SetValue(
	Ticks currentTime,
	Ticks timestamp,
	double value,
	MeasurementStateFlags flags
)

Parameters

currentTime  Ticks
Timestamp, in ticks, used to constrain TemporalMeasurement (typically set to real-time, i.e. "now").
timestamp  Ticks
New timestamp, in ticks, for TemporalMeasurement.
value  Double
New value for TemporalMeasurement, only stored if timestamp are newer than current Ticks.
flags  MeasurementStateFlags
New flags for TemporalMeasurement.

Return Value

Boolean
true if value was updated; otherwise false.

Remarks

Operation will only store a value that is newer than the cached value.

See Also