interface CommonMetricData
(source)
This defines the common set of data shared across all the different metric types.
abstract val category: String |
|
abstract val defaultStorageDestinations: List<String>
Defines the names of the storages the metric defaults to when "default" is used as the destination storage. Note that every metric type will need to override this. |
|
abstract val disabled: Boolean |
|
abstract val lifetime: Lifetime |
|
abstract val name: String |
|
abstract val sendInPings: List<String> |
open fun getStorageNames(): List<String>
Get the list of storage names the metric will record to. This automatically expands DEFAULT_STORAGE_NAME to the list of default storages for the metric. |
|
open fun shouldRecord(logger: Logger): Boolean |
data class EventMetricType : CommonMetricData
This implements the developer facing API for recording events. |
|
data class StringMetricType : CommonMetricData
This implements the developer facing API for recording string metrics. |
|
data class UuidMetricType : CommonMetricData
This implements the developer facing API for recording uuids. |