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

applicationProperty | `abstract val applicationProperty: Boolean`
category | `abstract val category: String`
disabled | `abstract val disabled: Boolean`
name | `abstract val name: String`
sendInPings | `abstract val sendInPings: List<String>`
userProperty | `abstract val userProperty: Boolean`

### 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.