Package org.apache.iceberg.metrics
Class CommitMetrics
- java.lang.Object
-
- org.apache.iceberg.metrics.CommitMetrics
-
@Immutable public abstract class CommitMetrics extends java.lang.Object
Carries all metrics for a particular commit
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTEMPTS
static java.lang.String
TOTAL_DURATION
-
Constructor Summary
Constructors Constructor Description CommitMetrics()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Counter
attempts()
abstract MetricsContext
metricsContext()
static CommitMetrics
noop()
static CommitMetrics
of(MetricsContext metricsContext)
Timer
totalDuration()
-
-
-
Field Detail
-
TOTAL_DURATION
public static final java.lang.String TOTAL_DURATION
- See Also:
- Constant Field Values
-
ATTEMPTS
public static final java.lang.String ATTEMPTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
noop
public static CommitMetrics noop()
-
metricsContext
public abstract MetricsContext metricsContext()
-
totalDuration
@Derived public Timer totalDuration()
-
attempts
@Derived public Counter attempts()
-
of
public static CommitMetrics of(MetricsContext metricsContext)
-
-