Packages

class Identity extends AnyRef

General purpose identity for instrumented entities.

Entities can be identified by class (only has a class), instance (has both class and name), or group (only has a name).

Identities belong to a category, for grouping instruments into categories like 'actors' or 'dispatchers'. Expressed in plural form.

Identities have a key, used for tags.

Identities can be organised in hierarchies, where each identity can have a parent identity, for forming full identifier keys.

Identities can be hidden, where they are in the hierarchy but not used.

Identities can be marked as being 'unique', unique to this instance of Cinnamon, such as host name and application identifier.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Identity
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def builder(): Builder

    Create a new identity builder, based on this identity.

    Create a new identity builder, based on this identity.

    returns

    new Identity.Builder to create new identity

  2. def equals(o: Any): Boolean
    Definition Classes
    Identity → AnyRef → Any
    Annotations
    @Override()
  3. def getCategory(): String

    The category for this identity (used for grouping, expressed in plural form).

    The category for this identity (used for grouping, expressed in plural form). May be null.

    returns

    String category for this identity, or null if not present

  4. def getEntityClass(): Class

    The entity class for this identity.

    The entity class for this identity. May be null.

    returns

    Class for this identity, or null if not present

  5. def getEntityName(): String

    The entity name for this identity (for instance or group identities).

    The entity name for this identity (for instance or group identities). May be null.

    returns

    String name for this identity, or null if not present

  6. def getKey(): String

    The key for this identity (used for tags).

    The key for this identity (used for tags). May be null.

    returns

    String key for this identity, or null if not present

  7. def getName(): String

    Get the entity name (for instance or group) otherwise get the entity class name.

    Get the entity name (for instance or group) otherwise get the entity class name.

    returns

    String either the name or class name for this identity

  8. def getParent(): Identity

    The enclosing parent identity for this identity.

    The enclosing parent identity for this identity. May be null.

    returns

    Identity parent for this identity, or null if not present

  9. def getTags(): Map[String, String]

    The tags for this identity.

    The tags for this identity. Used in both the metric key and metric tags.

    returns

    Map of tags.

  10. def hasCategory(): Boolean

    Whether this identity has an associated category (used for grouping, expressed in plural form).

    Whether this identity has an associated category (used for grouping, expressed in plural form).

    returns

    boolean whether a category is specified

  11. def hasEntityClass(): Boolean

    Whether this identity has an associated entity class.

    Whether this identity has an associated entity class.

    returns

    boolean whether a class is specified

  12. def hasEntityName(): Boolean

    Whether this identity has an associated entity name (for instance or group identities).

    Whether this identity has an associated entity name (for instance or group identities).

    returns

    boolean whether a name is specified

  13. def hasKey(): Boolean

    Whether this identity has an associated key (used for tags).

    Whether this identity has an associated key (used for tags).

    returns

    boolean whether a key is specified

  14. def hasName(): Boolean

    Whether this identity has an associated name (either entity name or entity class).

    Whether this identity has an associated name (either entity name or entity class).

    returns

    boolean whether a name is specified

  15. def hasParent(): Boolean

    Whether this identity has an enclosing parent identity.

    Whether this identity has an enclosing parent identity.

    returns

    boolean whether parent identity is specified

  16. def hashCode(): Int
    Definition Classes
    Identity → AnyRef → Any
    Annotations
    @Override()
  17. def isDestroyable(): Boolean

    Whether instruments for this identity can be destroyed, once the entity for this identity has terminated in some way.

    Whether instruments for this identity can be destroyed, once the entity for this identity has terminated in some way.

    Instance identities are destroyable, while class and group identities are assumed to be not destroyable given that other instances with the same identity could still continue to exist.

    returns

    boolean whether this identity is destroyable

  18. def isUnique(): Boolean

    Whether this identity is unique to this instance of Cinnamon, such as host name or application identifier.

    Whether this identity is unique to this instance of Cinnamon, such as host name or application identifier.

    returns

    boolean whether this identity is unique

  19. def isVisible(): Boolean

    Whether this identity is visible, and should be included in metric keys or tags.

    Whether this identity is visible, and should be included in metric keys or tags.

    returns

    boolean whether this identity is visible

  20. def toString(): String
    Definition Classes
    Identity → AnyRef → Any
    Annotations
    @Override()