diff --git a/src/Gemstone.Timeseries/ImmediateMeasurements.cs b/src/Gemstone.Timeseries/ImmediateMeasurements.cs index a6204f4f1..d7e43053a 100644 --- a/src/Gemstone.Timeseries/ImmediateMeasurements.cs +++ b/src/Gemstone.Timeseries/ImmediateMeasurements.cs @@ -508,6 +508,18 @@ public void ClearMeasurementCache() m_measurements.Clear(); } + /// + /// Determines whether the specified exists in the current collection of immediate measurements. + /// + /// The to locate in the collection. + /// + /// true if the specified exists in the collection; otherwise, false. + /// + public bool HasMeasurementID(MeasurementKey key) + { + return m_measurements?.ContainsKey(key) ?? false; + } + /// /// Defines tagged measurements from a data table. ///