OtlpMetric

@Serializable
data class OtlpMetric(val name: String, val description: String? = null, val unit: String? = null, val gauge: OtlpGauge? = null, val sum: OtlpSum? = null)

OTLP metric definition containing one data type (gauge or sum).

Constructors

Link copied to clipboard
constructor(name: String, description: String? = null, unit: String? = null, gauge: OtlpGauge? = null, sum: OtlpSum? = null)

Properties

Link copied to clipboard

human readable description.

Link copied to clipboard

gauge payload when the metric is a gauge.

Link copied to clipboard

fully-qualified metric name.

Link copied to clipboard
val sum: OtlpSum?

sum payload when the metric is a counter/sum.

Link copied to clipboard
val unit: String?

unit of measure in OTLP notation.