Package ch.mobi.mobitor.metric
Class DefaultCollectorMetricService
- java.lang.Object
-
- ch.mobi.mobitor.metric.DefaultCollectorMetricService
-
- All Implemented Interfaces:
ch.mobi.mobitor.plugins.api.service.CollectorMetricService
@Component public class DefaultCollectorMetricService extends Object implements ch.mobi.mobitor.plugins.api.service.CollectorMetricService
-
-
Constructor Summary
Constructors Constructor Description DefaultCollectorMetricService(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Date>getCollectorLastRun()voidsubmitCollectorDuration(@NotNull String collectorName, long durationInMs)voidupdateLastRunCompleted(String infoType)
-
-
-
Method Detail
-
submitCollectorDuration
public void submitCollectorDuration(@NotNull @NotNull String collectorName, long durationInMs)- Specified by:
submitCollectorDurationin interfacech.mobi.mobitor.plugins.api.service.CollectorMetricService
-
updateLastRunCompleted
public void updateLastRunCompleted(String infoType)
- Specified by:
updateLastRunCompletedin interfacech.mobi.mobitor.plugins.api.service.CollectorMetricService
-
-