Package io.camunda.spring.client.metrics
Interface MetricsRecorder
- All Known Implementing Classes:
DefaultNoopMetricsRecorder,MicrometerMetricsRecorder,SimpleMetricsRecorder
public interface MetricsRecorder
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteWithTimer(String metricName, String jobType, Runnable methodToExecute) Execute the given runnable and measure the execution timedefault voidIncrease the counter for the given metric name, action and typevoidIncrease the counter for the given metric name, action and type
-
Field Details
-
METRIC_NAME_JOB
- See Also:
-
ACTION_ACTIVATED
- See Also:
-
ACTION_COMPLETED
- See Also:
-
ACTION_FAILED
- See Also:
-
ACTION_BPMN_ERROR
- See Also:
-
-
Method Details
-
increase
Increase the counter for the given metric name, action and type- Parameters:
metricName- - the name of the metricaction- - event type within the metric, e.g. activated, completed, failed, bpmn-errortype- - type of the job the metric is for
-
increase
Increase the counter for the given metric name, action and type- Parameters:
metricName- - the name of the metricaction- - event type within the metric, e.g. activated, completed, failed, bpmn-errortype- - type of the job the metric is forcount- - the amount to increase the metric by
-
executeWithTimer
Execute the given runnable and measure the execution timeNote: the provided runnable is executed synchronously
- Parameters:
metricName- - the name of the metricjobType- - type of the job the metric is formethodToExecute- - the method to execute
-