Trait

colossus.metrics

MetricNamespace

Related Doc: package metrics

Permalink

trait MetricNamespace extends AnyRef

A MetricNamespace is essentially just an address prefix and set of tags. It is needed when getting or creating collectors. The namespace address is prefixed onto the given address for the collector to create the full address. Tags are added to each collector under under this context.

val subnameSpace: MetricContext = namespace / "foo" * ("a" -> "b")
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetricNamespace
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def collection: Collection

    Permalink
    Attributes
    protected
  2. abstract def namespace: MetricAddress

    Permalink

    The root of this MetricNamespace.

    The root of this MetricNamespace. All Metrics added to this namespace will be made to be relative to this address.

  3. abstract def tags: TagMap

    Permalink

    Tags applied to all collectors in this namespace

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(tags: (String, String)*): MetricContext

    Permalink

    Add tags to context

    Add tags to context

    tags

    TagMap

    returns

    Returns a new context with supplied tags added

  4. def /(subpath: MetricAddress): MetricContext

    Permalink

    Get a new namespace by appending subpath to the namespace

  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getOrAdd[T <: Collector](address: MetricAddress)(f: (MetricAddress, CollectorConfig) ⇒ T)(implicit arg0: ClassTag[T]): T

    Permalink

    Retrieve a Collector of a specific type by address, creating a new one if it does not exist.

    Retrieve a Collector of a specific type by address, creating a new one if it does not exist. If an existing collector of a different type already exists, a DuplicateMetricException will be thrown.

    T

    The Collector to be retrieved.

    address

    Address meant to be relative to this MetricNamespace's namespace

    f

    Function which takes in an absolutely pathed MetricAddress, and a CollectorConfig and returns an instance of a Collector

    returns

    A newly created instance of Collector, created by f or an existing Collector if one already exists with the same MetricAddress

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def withTags(tags: (String, String)*): MetricContext

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped