com.lucidchart.util.statsd

StatsD

class StatsD extends AnyRef

Client for sending stats to StatsD uses Akka to manage concurrency

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StatsD
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StatsD(prefix: String = "applications.unspecified", host: String = "127.0.0.1", port: Int = 8125, multiMetrics: Boolean = true, packetBufferSize: Int = 1024)

    host

    The statsd host

    port

    The statsd port

    multiMetrics

    If true, multiple stats will be sent in a single UDP packet

    packetBufferSize

    If multiMetrics is true, this is the max buffer size before sending the UDP packet

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def decrement(key: String, magnitude: Int = 1, sampleRate: Double = 1.0): Boolean

    Decrement StatsD counter

    Decrement StatsD counter

    key

    name of the stat

    magnitude

    how much to decrement

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def gauge(key: String, value: String = "1", sampleRate: Double = 1.0): Boolean

    StatsD now also supports gauges, arbitrary values, which can be recorded.

    StatsD now also supports gauges, arbitrary values, which can be recorded.

    key

    name of the stat

    value

    Can be a fixed value or increase or decrease (Ex: "10" "-1" "+5")

  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def increment(key: String, magnitude: Int = 1, sampleRate: Double = 1.0): Boolean

    Increment StatsD counter

    Increment StatsD counter

    key

    name of the stat

    magnitude

    how much to increment

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def set(key: String, value: Int, sampleRate: Double = 1.0): Boolean

    StatsD supports counting unique occurrences of events between flushes, using a Set to store all occurring events.

    StatsD supports counting unique occurrences of events between flushes, using a Set to store all occurring events.

    key

    name of the stat

    value

    value of the set

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def time[A](key: String, sampleRate: Double = 1.0)(callback: ⇒ A): A

    Times a callback, and sends the timing stats in milliseconds to StatsD

    Times a callback, and sends the timing stats in milliseconds to StatsD

    key

    name of the stat

    callback

    Function to time

  23. def timing(key: String, value: Int, sampleRate: Double = 1.0): Boolean

    Sends timing stats in milliseconds to StatsD

    Sends timing stats in milliseconds to StatsD

    key

    name of the stat

    value

    time in milliseconds

  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped