Interface Gauge


public interface Gauge
Gauge - A metric that reports a current value from a supplier Gauge - 从供应者报告当前值的指标

Gauges represent a point-in-time value, such as queue size, memory usage, or active thread count.

仪表盘表示某一时刻的值,如队列大小、内存使用量或活跃线程数。

Since:
JDK 25, opencode-base-observability V1.0.3
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    Returns the metric identifier.
    double
    Returns the current gauge value.
  • Method Details

    • value

      double value()
      Returns the current gauge value. 返回当前仪表盘值。
      Returns:
      the current value | 当前值
    • id

      MetricId id()
      Returns the metric identifier. 返回指标标识符。
      Returns:
      the MetricId | 指标 ID