data class EventMetricType : CommonMetricData
(source)
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 method, which takes care of validating the input data and making sure that limits are enforced.
EventMetricType(applicationProperty: Boolean = false, disabled: Boolean = false, category: String, name: String, sendInPings: List<String> = listOf("default"), userProperty: Boolean = false, objects: List<String>, allowedExtraKeys: List<String>? = null)
This implements the developer facing API for recording events. |
val allowedExtraKeys: List<String>? |
|
val applicationProperty: Boolean |
|
val category: String |
|
val disabled: Boolean |
|
val name: String |
|
val objects: List<String> |
|
val sendInPings: List<String> |
|
val userProperty: Boolean |
fun record(objectId: String, value: String? = null, extra: Map<String, String>? = null): Unit
Record an event by using the information provided by the instance of this class. |
open fun shouldRecord(logger: Logger): Boolean |