Class Metric$

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Metric$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Metric$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Metric apply​(java.lang.String name, java.lang.Number value, scala.Option<EWMA> average)  
      scala.Option<Metric> create​(java.lang.String name, java.lang.Number value, scala.Option<java.lang.Object> decayFactor)
      Creates a new Metric instance if the value is valid, otherwise None is returned.
      scala.Option<Metric> create​(java.lang.String name, scala.util.Try<java.lang.Number> value, scala.Option<java.lang.Object> decayFactor)
      Creates a new Metric instance if the Try is successful and the value is valid, otherwise None is returned.
      scala.Option<EWMA> createEWMA​(double value, scala.Option<java.lang.Object> decayFactor)  
      scala.Option<scala.Tuple3<java.lang.String,​java.lang.Number,​scala.Option<EWMA>>> unapply​(Metric x$0)  
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final Metric$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Metric$

        public Metric$()
    • Method Detail

      • create

        public scala.Option<Metric> create​(java.lang.String name,
                                           java.lang.Number value,
                                           scala.Option<java.lang.Object> decayFactor)
        Creates a new Metric instance if the value is valid, otherwise None is returned. Invalid numeric values are negative and NaN/Infinite.
      • create

        public scala.Option<Metric> create​(java.lang.String name,
                                           scala.util.Try<java.lang.Number> value,
                                           scala.Option<java.lang.Object> decayFactor)
        Creates a new Metric instance if the Try is successful and the value is valid, otherwise None is returned. Invalid numeric values are negative and NaN/Infinite.
      • createEWMA

        public scala.Option<EWMA> createEWMA​(double value,
                                             scala.Option<java.lang.Object> decayFactor)
      • apply

        public Metric apply​(java.lang.String name,
                            java.lang.Number value,
                            scala.Option<EWMA> average)
      • unapply

        public scala.Option<scala.Tuple3<java.lang.String,​java.lang.Number,​scala.Option<EWMA>>> unapply​(Metric x$0)