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

    Fields
    Modifier and Type
    Field
    Description
    private final com.codahale.metrics.Counter
     
    private final long
     
    private final long
     
    private static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CounterHealthCheck(com.codahale.metrics.Counter counter, long high, long low)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.codahale.metrics.health.HealthCheck.Result
     

    Methods inherited from class com.codahale.metrics.health.HealthCheck

    clock, execute

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MESSAGE_FORMAT

      private static final String 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 class com.codahale.metrics.health.HealthCheck