Package com.cockroachlabs.data.metrics
Interface CockroachDBMetrics
- All Known Implementing Classes:
CockroachDBMetrics.InMemory,CockroachDBMetrics.Noop,MicrometerCockroachDBMetrics
public interface CockroachDBMetrics
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptiondoublelongdefault longlonglongdefault voidrecordFollowerRead(long startNanos, boolean success) voidrecordTransaction(long startNanos, int retries, boolean success)
-
Method Details
-
recordTransaction
void recordTransaction(long startNanos, int retries, boolean success) -
getTransactionCount
long getTransactionCount() -
getRetryCount
long getRetryCount() -
getFailureCount
long getFailureCount() -
getAverageDurationMs
double getAverageDurationMs() -
recordFollowerRead
default void recordFollowerRead(long startNanos, boolean success) -
getFollowerReadCount
default long getFollowerReadCount()
-