Package com.mendix.metrics
Interface Timers
-
public interface TimersTimers measure the amount of time an operation took to complete, in milliseconds.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidrecordExecutionTime(java.lang.String bucket, long timeInMs)Records an execution time in milliseconds for the specified named operation.voidrecordExecutionTime(java.lang.String bucket, long timeInMs, double sampleRate)Records an execution time in milliseconds for the specified named operation.voidrecordExecutionTime(java.lang.String bucket, long timeInMs, double sampleRate, java.util.Map<java.lang.String,java.lang.String> tags)Records an execution time in milliseconds for the specified named operation.voidrecordExecutionTime(java.lang.String bucket, long timeInMs, java.util.Map<java.lang.String,java.lang.String> tags)Records an execution time in milliseconds for the specified named operation.default voidtime(java.lang.String bucket, long timeInMs)Convenience method equivalent torecordExecutionTime(String, long).default voidtime(java.lang.String bucket, long timeInMs, double sampleRate)Convenience method equivalent torecordExecutionTime(String, long, double).default voidtime(java.lang.String bucket, long timeInMs, double sampleRate, java.util.Map<java.lang.String,java.lang.String> tags)Convenience method equivalent torecordExecutionTime(String, long, double, Map).default voidtime(java.lang.String bucket, long timeInMs, java.util.Map<java.lang.String,java.lang.String> tags)Convenience method equivalent torecordExecutionTime(String, long, Map).
-
-
-
Method Detail
-
recordExecutionTime
void recordExecutionTime(java.lang.String bucket, long timeInMs)Records an execution time in milliseconds for the specified named operation.- Parameters:
bucket- name of the timed operationtimeInMs- time in milliseconds
-
recordExecutionTime
void recordExecutionTime(java.lang.String bucket, long timeInMs, double sampleRate)Records an execution time in milliseconds for the specified named operation.- Parameters:
bucket- name of the timed operationtimeInMs- time in millisecondssampleRate- percentage of time metric to be sent
-
recordExecutionTime
void recordExecutionTime(java.lang.String bucket, long timeInMs, java.util.Map<java.lang.String,java.lang.String> tags)Records an execution time in milliseconds for the specified named operation.- Parameters:
bucket- name of the timed operationtimeInMs- time in millisecondstags- map of tags to be added to the data
-
recordExecutionTime
void recordExecutionTime(java.lang.String bucket, long timeInMs, double sampleRate, java.util.Map<java.lang.String,java.lang.String> tags)Records an execution time in milliseconds for the specified named operation.- Parameters:
bucket- name of the timed operationtimeInMs- time in millisecondssampleRate- percentage of time metric to be senttags- map of tags to be added to the data
-
time
default void time(java.lang.String bucket, long timeInMs)Convenience method equivalent torecordExecutionTime(String, long). Records an execution time in milliseconds for the specified named operation.- Parameters:
bucket- name of the timed operationtimeInMs- time in milliseconds
-
time
default void time(java.lang.String bucket, long timeInMs, double sampleRate)Convenience method equivalent torecordExecutionTime(String, long, double). Records an execution time in milliseconds for the specified named operation.- Parameters:
bucket- name of the timed operationtimeInMs- time in millisecondssampleRate- percentage of time metric to be sent
-
time
default void time(java.lang.String bucket, long timeInMs, java.util.Map<java.lang.String,java.lang.String> tags)Convenience method equivalent torecordExecutionTime(String, long, Map). Records an execution time in milliseconds for the specified named operation.- Parameters:
bucket- name of the timed operationtimeInMs- time in millisecondstags- map of tags to be added to the data
-
time
default void time(java.lang.String bucket, long timeInMs, double sampleRate, java.util.Map<java.lang.String,java.lang.String> tags)Convenience method equivalent torecordExecutionTime(String, long, double, Map). Records an execution time in milliseconds for the specified named operation.- Parameters:
bucket- name of the timed operationtimeInMs- time in millisecondssampleRate- percentage of time metric to be senttags- map of tags to be added to the data
-
-