android-components / org.mozilla.telemetry.event / TelemetryEvent

# TelemetryEvent

`open class TelemetryEvent` (source)

TelemetryEvent specifies a common events data format, which allows for broader, shared usage of data processing tools.

### Functions

create | `open static fun create(category: String, method: String, object: String?): TelemetryEvent` Create a new event with mandatory category, method and object. `open static fun create(category: String, method: String, object: String?, value: String): TelemetryEvent` Create a new event with mandatory category, method, object and value.
extra | `open fun extra(key: String, value: String): TelemetryEvent`
queue | `open fun queue(): Unit` Queue this event to be sent with the next event ping.
toJSON | `open fun toJSON(): String` Create a JSON representation of this event for storing and sending it.