MetricBands

data class MetricBands(val fair: Double, val poor: Double, val higherIsWorse: Boolean)(source)

How to read a metric's value - the boundary between "fine", "worth a look", and "act on this".

Parameters

fair

Value at which the metric stops being unremarkable.

poor

Value at which it warrants action.

higherIsWorse

True when a larger number is a worse result. Governs which side of the thresholds counts as trouble, so a caller never has to hardcode the direction per metric.

Constructors

Link copied to clipboard
constructor(fair: Double, poor: Double, higherIsWorse: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun classify(value: Double): String

Where value falls: "good", "fair", or "poor".