Class EndpointMetricScheduler

java.lang.Object
org.easypeelsecurity.springdog.manager.statistics.EndpointMetricScheduler

@Component @EnableScheduling public class EndpointMetricScheduler extends Object
This class is responsible for scheduling tasks to store endpoint metrics in the database such as average response times, number of failures, etc. It retrieves response times from RequestTimingInterceptor and processes them at regular intervals.
  • Constructor Details

    • EndpointMetricScheduler

      public EndpointMetricScheduler(org.easypeelsecurity.springdog.domain.statistics.StatisticsService statisticsService)
      Constructor.
  • Method Details

    • saveEndpointStatistics

      @Scheduled(fixedRateString="${springdog.endpointMetricScheduler.fixedRate:10000}") public void saveEndpointStatistics()
      Scheduled task that saves the endpoint statistics in the database.