android-components / mozilla.components.service.glean / CommonMetricData

CommonMetricData

interface CommonMetricData (source)

This defines the common set of data shared across all the different metric types.

Properties

category

abstract val category: String

disabled

abstract val disabled: Boolean

lifetime

abstract val lifetime: Lifetime

name

abstract val name: String

sendInPings

abstract val sendInPings: List<String>

Functions

shouldRecord

open fun shouldRecord(logger: Logger): Boolean

Inheritors

EventMetricType

data class EventMetricType : CommonMetricData

This implements the developer facing API for recording events.

StringMetricType

data class StringMetricType : CommonMetricData

This implements the developer facing API for recording string metrics.

UuidMetricType

data class UuidMetricType : CommonMetricData

This implements the developer facing API for recording uuids.