TaggedItem

com.netflix.atlas.core.model.TaggedItem
See theTaggedItem companion trait
object TaggedItem

Helper functions for manipulating tagged items.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TaggedItem.type

Members list

Type members

Types

type Pair = (String, String)

Value members

Concrete methods

def aggrTags(t1: Map[String, String], t2: Map[String, String]): Map[String, String]

Compute the new tags for the aggregate buffer. The tags are the intersection of tag values.

Compute the new tags for the aggregate buffer. The tags are the intersection of tag values.

Attributes

def computeId(tags: Map[String, String]): ItemId

Compute an identifier for a set of tags. The id is a sha1 hash of a normalized string representation. Identical tags will always get the same id.

Compute an identifier for a set of tags. The id is a sha1 hash of a normalized string representation. Identical tags will always get the same id.

Attributes

def createId(tags: Map[String, String]): ItemId

Compute the id and return an interned copy of the value. This function should be used if keeping metric data in memory for a long time to avoid redundant big integer objects hanging around.

Compute the id and return an interned copy of the value. This function should be used if keeping metric data in memory for a long time to avoid redundant big integer objects hanging around.

Attributes

def internId(id: ItemId): ItemId
def internTags(tags: Map[String, String]): Map[String, String]
def internTagsShallow(tags: Map[String, String]): Map[String, String]
def retain(keep: Long => Boolean): Unit