public class OpenMetricsUnit extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getBaseUnitAsOpenMetricsString(Optional<String> optUnit)
Determines the basic unit to be used by OpenMetrics exporter based on the input unit from parameter.
|
static Double |
scaleToBase(String inputUnit,
Double value)
Scales the value (time or memory size) interpreted using inputUnit to the base unit for OpenMetrics exporter
That means:
- values for memory size units are scaled to bytes
- values for time units are scaled to seconds
- values for other units are returned unchanged
|
public static String getBaseUnitAsOpenMetricsString(Optional<String> optUnit)
public static Double scaleToBase(String inputUnit, Double value)
Copyright © 2018–2021. All rights reserved.