Class

colossus.metrics

MetricContext

Related Doc: package metrics

Permalink

case class MetricContext(namespace: MetricAddress, collection: Collection, tags: TagMap = TagMap.Empty) extends MetricNamespace with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, MetricNamespace, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetricContext
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MetricNamespace
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MetricContext(namespace: MetricAddress, collection: Collection, tags: TagMap = TagMap.Empty)

    Permalink

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

    Definition Classes
    MetricNamespace
  4. def /(subpath: MetricAddress): MetricContext

    Permalink

    Get a new namespace by appending subpath to the namespace

    Get a new namespace by appending subpath to the namespace

    Definition Classes
    MetricNamespace
  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. val collection: Collection

    Permalink
    Definition Classes
    MetricContextMetricNamespace
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  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

    Definition Classes
    MetricNamespace
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val 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.

    Definition Classes
    MetricContextMetricNamespace
  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. val tags: TagMap

    Permalink

    Tags applied to all collectors in this namespace

    Tags applied to all collectors in this namespace

    Definition Classes
    MetricContextMetricNamespace
  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
    Definition Classes
    MetricNamespace

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MetricNamespace

Inherited from AnyRef

Inherited from Any

Ungrouped