Class 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 Detail

      • DefaultCollectorMetricService

        @Autowired
        public DefaultCollectorMetricService​(io.micrometer.core.instrument.MeterRegistry meterRegistry)
    • Method Detail

      • submitCollectorDuration

        public void submitCollectorDuration​(@NotNull
                                            @NotNull String collectorName,
                                            long durationInMs)
        Specified by:
        submitCollectorDuration in interface ch.mobi.mobitor.plugins.api.service.CollectorMetricService
      • updateLastRunCompleted

        public void updateLastRunCompleted​(String infoType)
        Specified by:
        updateLastRunCompleted in interface ch.mobi.mobitor.plugins.api.service.CollectorMetricService
      • getCollectorLastRun

        public Map<String,​Date> getCollectorLastRun()
        Specified by:
        getCollectorLastRun in interface ch.mobi.mobitor.plugins.api.service.CollectorMetricService