Class EndpointMetricScheduler
java.lang.Object
org.easypeelsecurity.springdog.manager.statistics.EndpointMetricScheduler
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 Summary
ConstructorsConstructorDescriptionEndpointMetricScheduler(org.easypeelsecurity.springdog.domain.statistics.StatisticsService statisticsService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidScheduled task that saves the endpoint statistics in the database.
-
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.
-