[android-components](../../index.md) / [mozilla.components.service.glean.private](../index.md) / [EventMetricType](index.md) / [&lt;init&gt;](./-init-.md)

# &lt;init&gt;

`EventMetricType(disabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, category: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, lifetime: `[`Lifetime`](../-lifetime/index.md)`, name: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, sendInPings: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>)`

This implements the developer facing API for recording events.

Instances of this class type are automatically generated by the parsers at built time,
allowing developers to record events that were previously registered in the metrics.yaml file.

The Events API only exposes the [record](record.md) method, which takes care of validating the input
data and making sure that limits are enforced.

