Class SubmissionControllerMonitor
- java.lang.Object
-
- app.coronawarn.server.services.submission.monitoring.SubmissionControllerMonitor
-
@Component @ConfigurationProperties(prefix="services.submission.monitoring") public class SubmissionControllerMonitor extends Object
Provides functionality for monitoring the application logic of theSubmissionController
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SubmissionControllerMonitor(io.micrometer.core.instrument.MeterRegistry meterRegistry, SubmissionServiceConfig submissionServiceConfig)
Constructor forSubmissionControllerMonitor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
incrementFakeRequestCounter()
void
incrementInvalidTanRequestCounter()
void
incrementRealRequestCounter()
void
incrementRequestCounter()
void
initializeGauges(SubmissionController submissionController)
Initializes the gauges for theSubmissionController
that is being monitored.
-
-
-
Constructor Detail
-
SubmissionControllerMonitor
protected SubmissionControllerMonitor(io.micrometer.core.instrument.MeterRegistry meterRegistry, SubmissionServiceConfig submissionServiceConfig)
Constructor forSubmissionControllerMonitor
. Initializes all counters to 0 upon being called.- Parameters:
meterRegistry
- the meterRegistry
-
-
Method Detail
-
initializeGauges
public void initializeGauges(SubmissionController submissionController)
Initializes the gauges for theSubmissionController
that is being monitored. Currently, only the delay time of fake requests is measured.- Parameters:
submissionController
- the submission controller for which the gauges shall be initialized
-
incrementRequestCounter
public void incrementRequestCounter()
-
incrementRealRequestCounter
public void incrementRealRequestCounter()
-
incrementFakeRequestCounter
public void incrementFakeRequestCounter()
-
incrementInvalidTanRequestCounter
public void incrementInvalidTanRequestCounter()
-
-