Package org.alfresco.event.outbox
Interface MetricsAdapter
public interface MetricsAdapter
Integration point, allowing to integrate with the host system monitoring implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classRepresents a metric identifier which consists of its name and optional tags (key-value). -
Method Summary
Modifier and TypeMethodDescriptiondefault voidreport(MetricsAdapter.MetricId metricId, long number) It's used to report a single value based metric.default voidreport(MetricsAdapter.MetricId metricId, Duration duration) It's used to report an execution of some action with its duration.
-
Method Details
-
report
It's used to report a single value based metric.- Parameters:
metricId- a metric identifiernumber- a metric value
-
report
It's used to report an execution of some action with its duration.- Parameters:
metricId- a metric identifierduration- an action's duration
-