Package org.metricshub.ipmi.client
Class IpmiResultConverter
java.lang.Object
org.metricshub.ipmi.client.IpmiResultConverter
-
Method Summary
Modifier and TypeMethodDescriptionstatic final String
convertResult
(List<Fru> frus, List<Sensor> sensors) Convert the given List of FRUs and Sensors to aString
result (semicolon-separated values)static String
convertResult
(GetChassisStatusResponseData chassisStatus) Convert the givenGetChassisStatusResponseData
to a string value
-
Method Details
-
convertResult
Convert the given List of FRUs and Sensors to aString
result (semicolon-separated values)- Parameters:
frus
- The list of Field Replaceable Units (FRU) we wish to format as the following:
FRU;$vendor;$model;$serialNumbersensors
- The list of sensor records (Compact or Full) we wish to format as the following:
- States: $deviceType;$deviceId;$deviceUniqueId;$vendor;$model;$serialNumber;$sensorName=$state|$sensorName=$state...
- Readings:
- Temperature;$sensorId;$sensorName;$sensorUniqueId;$value;$threshold1;$threshold2
- Voltage;$sensorId;$sensorName;$sensorUniqueId;$value;$threshold1;$threshold2
- Fan;$sensorId;$sensorName;$sensorUniqueId;$value;$threshold1;$threshold2
- Current;$sensorId;$sensorName;$sensorUniqueId;$value
- PowerConsumption;$sensorId;$sensorName;$sensorUniqueId;$value
- Energy;$sensorId;$sensorName;$sensorUniqueId;$value
- Returns:
- String value
-
convertResult
Convert the givenGetChassisStatusResponseData
to a string value- Parameters:
chassisStatus
- Wrapper for Get Chassis Status response.- Returns:
- String value
-