Package com.mendix.metrics
Interface Timers
public interface Timers
Timers measure the amount of time an operation took to complete, in milliseconds.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
recordExecutionTime
(String bucket, long timeInMs) Records an execution time in milliseconds for the specified named operation.void
recordExecutionTime
(String bucket, long timeInMs, double sampleRate) Records an execution time in milliseconds for the specified named operation.void
recordExecutionTime
(String bucket, long timeInMs, double sampleRate, Map<String, String> tags) Records an execution time in milliseconds for the specified named operation.void
recordExecutionTime
(String bucket, long timeInMs, Map<String, String> tags) Records an execution time in milliseconds for the specified named operation.default void
Convenience method equivalent torecordExecutionTime(String, long)
.default void
Convenience method equivalent torecordExecutionTime(String, long, double)
.default void
Convenience method equivalent torecordExecutionTime(String, long, double, Map)
.default void
Convenience method equivalent torecordExecutionTime(String, long, Map)
.
-
Method Details
-
recordExecutionTime
Records an execution time in milliseconds for the specified named operation.- Parameters:
bucket
- name of the timed operationtimeInMs
- time in milliseconds
-
recordExecutionTime
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
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
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
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
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
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
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
-