Class AlertStatsLogger


  • public class AlertStatsLogger
    extends java.lang.Object
    This class is used to raise alert when we detect an event that should never happen in production.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String alertStatName  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void raise​(java.lang.String msg, java.lang.Object... args)
      Report an alertable condition".
      • Methods inherited from class java.lang.Object

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

      • alertStatName

        public final java.lang.String alertStatName
    • Constructor Detail

      • AlertStatsLogger

        public AlertStatsLogger​(StatsLogger globalStatsLogger,
                                java.lang.String scope,
                                java.lang.String alertStatName)
      • AlertStatsLogger

        public AlertStatsLogger​(StatsLogger globalStatsLogger,
                                java.lang.String alertStatName)
    • Method Detail

      • raise

        public void raise​(java.lang.String msg,
                          java.lang.Object... args)
        Report an alertable condition". Prefixes "ALERT!: " if not already prefixed.