Skip navigation links
Thingworx Platform API
8.5.0
com.thingworx.metrics

Interface IGauge<T>

  • Type Parameters:
    T - the data type stored by this gauge
    All Superinterfaces:
    IMetric


    @ThingworxExtensionApiClass(since={8,1,1})
    public interface IGauge<T>
    extends IMetric
    A metric that stores a single value. Gauges are guaranteed to be updated in a thread-safe manner.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      T get()


      Retrieves the current value of the gauge.
      void set(T value)


      Assigns a new value to the gauge
      void set(T value, boolean persist)


      Assigns a new value to the gauge with optional persistence
      • Methods inherited from interface com.thingworx.metrics.IMetric

        key