com.lightningkite.lightningserver.metrics.MetricEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-core Show documentation
Show all versions of server-core Show documentation
A set of tools to fill in/replace what Ktor is lacking in.
The newest version!
package com.lightningkite.lightningserver.metrics
import kotlinx.serialization.Contextual
import kotlinx.serialization.Serializable
import java.time.Instant
@Serializable
data class MetricEvent(
val metricType: MetricType,
val entryPoint: String?,
// val otherDimensions: Map = mapOf(),
@Contextual val time: Instant,
val value: Double
)