Package ch.rswk.meta.engine
Class AlertRegistry.TimerHealthCheck
java.lang.Object
com.codahale.metrics.health.HealthCheck
ch.rswk.meta.engine.AlertRegistry.TimerHealthCheck
- Enclosing class:
AlertRegistry
private static class AlertRegistry.TimerHealthCheck
extends com.codahale.metrics.health.HealthCheck
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codahale.metrics.health.HealthCheck
com.codahale.metrics.health.HealthCheck.Result, com.codahale.metrics.health.HealthCheck.ResultBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
private final double
private static final String
private final com.codahale.metrics.Timer
-
Constructor Summary
ConstructorsConstructorDescriptionTimerHealthCheck
(double high, double meanHigh, com.codahale.metrics.Timer timer) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.codahale.metrics.health.HealthCheck.Result
check()
Methods inherited from class com.codahale.metrics.health.HealthCheck
clock, execute
-
Field Details
-
MESSAGE_FORMAT
- See Also:
-
high
private final double high -
meanHigh
private final double meanHigh -
timer
private final com.codahale.metrics.Timer timer
-
-
Constructor Details
-
TimerHealthCheck
public TimerHealthCheck(double high, double meanHigh, com.codahale.metrics.Timer timer)
-
-
Method Details
-
check
protected com.codahale.metrics.health.HealthCheck.Result check()- Specified by:
check
in classcom.codahale.metrics.health.HealthCheck
-