Package io.split.engine.metrics
Interface Metrics
- All Known Implementing Classes:
CachedMetrics,FireAndForgetMetrics,HttpMetrics,Metrics.NoopMetrics
public interface Metrics
This interface is a briefer version of StatsD interface
- Author:
- adil
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMetrics.NoopMetrics -
Method Summary
-
Method Details
-
count
Adjusts the specified counter by a given delta.This method is is non-blocking and is guaranteed not to throw an exception.
- Parameters:
counter- the name of the counter to adjustdelta- the amount to adjust the counter by
-
time
Records an execution time in milliseconds for the specified named operation.This method is non-blocking and is guaranteed not to throw an exception.
- Parameters:
operation- the name of the timed operationtimeInMs- the time in milliseconds
-