GaugeHelper
enum GaugeHelper
A helper class for gauge-related operations
-
Calculate the trend of a gauge metric over a given time frame
Declaration
Swift
static func calculateTrend(readings: [GaugeReading], metric: GaugeMetric, timeFrame: DateRangeValue) -> GaugeTrend?
Return Value
A
GaugeTrend
object if the trend can be calculated, otherwisenil
-
Get the gauge metric for a given
FlowKit
FKReadingUnit
Declaration
Swift
static func getFKReadingGaugeMetric(for unit: FKReadingUnit) -> GaugeMetric
Parameters
unit
The
FKReadingUnit
to get the gauge metric forReturn Value
The corresponding
GaugeMetric