Skip to content

ResourceId

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

class ResourceId(val key: String, val uuid: String?)

Describes a Resource being tracked in RUM.

A resource will first try to be matched with the UUID if possible, and if missing will use the key property. The UUID should be unique (based off of UUID class). If missing, because key could have duplicates, this can lead to unpredictable behaviors and erroneous Resource timings.

Parameters

key a key to identify the resource
uuid a UUID based unique identifier (optional)

Constructors

ResourceId

constructor(key: String, uuid: String?)

Parameters
key a key to identify the resource
uuid a UUID based unique identifier (optional)

Properties

key

val key: String

Parameters
key a key to identify the resource

uuid

val uuid: String?

Parameters
uuid a UUID based unique identifier (optional)

Functions

equals

open operator override fun equals(other: Any?): Boolean

hashCode

open override fun hashCode(): Int

Clone this wiki locally