Interface Gauge

All Superinterfaces:
Metric, Serializable
All Known Implementing Classes:
DelegatingGauge, GaugeImpl

public interface Gauge extends Metric
A metric that reports the latest value out of reported values.

Since metrics are collected from many workers the value may not be the absolute last, but one of the latest values.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    set(long value)
    Set current value for this gauge.

    Methods inherited from interface org.apache.beam.sdk.metrics.Metric

    getName
  • Method Details

    • set

      void set(long value)
      Set current value for this gauge.