Class IpmiResultConverter

java.lang.Object
org.metricshub.ipmi.client.IpmiResultConverter

public class IpmiResultConverter extends Object
  • Method Details

    • convertResult

      public static final String convertResult(List<Fru> frus, List<Sensor> sensors)
      Convert the given List of FRUs and Sensors to a String result (semicolon-separated values)
      Parameters:
      frus - The list of Field Replaceable Units (FRU) we wish to format as the following:
      FRU;$vendor;$model;$serialNumber
      sensors - 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

      public static String convertResult(GetChassisStatusResponseData chassisStatus)
      Convert the given GetChassisStatusResponseData to a string value
      Parameters:
      chassisStatus - Wrapper for Get Chassis Status response.
      Returns:
      String value