Package ch.rswk.meta.engine
Class AlertRegistry.CounterHealthCheck
java.lang.Object
com.codahale.metrics.health.HealthCheck
ch.rswk.meta.engine.AlertRegistry.CounterHealthCheck
- Enclosing class:
AlertRegistry
private static class AlertRegistry.CounterHealthCheck
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 com.codahale.metrics.Counter
private final long
private final long
private static final String
-
Constructor Summary
ConstructorsConstructorDescriptionCounterHealthCheck
(com.codahale.metrics.Counter counter, long high, long low) -
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:
-
counter
private final com.codahale.metrics.Counter counter -
high
private final long high -
low
private final long low
-
-
Constructor Details
-
CounterHealthCheck
public CounterHealthCheck(com.codahale.metrics.Counter counter, long high, long low)
-
-
Method Details
-
check
protected com.codahale.metrics.health.HealthCheck.Result check()- Specified by:
check
in classcom.codahale.metrics.health.HealthCheck
-