stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
211 stars 113 forks source link

bugfix: fix type of SensorNumber #218

Closed Sn0rt closed 1 year ago

Sn0rt commented 1 year ago

the SensorNumber of Temperatures need change the type from int to float32

{
  "@odata.context": "/redfish/v1/$metadata#Chassis/Members/1/Thermal/$entity",
  "@odata.id": "/redfish/v1/Chassis/1/Thermal",
  "@odata.type": "#Thermal.v1_2_0.Thermal",
  "Id": "Thermal",
  "Name": "Thermal",
  "Status": {
    "Oem": {
      "Huawei": {
        "Severity": "Informational"
      }
    },
    "HealthRollup": "OK"
  },
  "Oem": {
    "Huawei": {
      "FanSpeedAdjustmentMode": "Automatic",
      "FanSpeedLevelPercents": 10.0,
      "FanManualModeTimeoutSeconds": 100.0,
      "FanSpeedMinimalLevelPercents": 10,
      "FanSpeedMaximumLevelPercents": 100,
      "FanTotalPowerWatts": 17.710000000000001,
      "TemperatureSummary": {
        "Count": 22,
        "Status": {
          "Severity": "Informational",
          "HealthRollup": "OK"
        }
      },
      "FanSummary": {
        "Count": 7,
        "Status": {
          "Severity": "Informational",
          "HealthRollup": "OK"
        }
      },
      "CoolingMedium": "AirCooled",
      "FanSmartCoolingMode": "EnergySaving",
      "FanSpeedCustom": {
        "CPUTargetTemperatureCelsius": 72,
        "MinCPUTargetTemperatureCelsius": 50,
        "MaxCPUTargetTemperatureCelsius": 76,
        "OutletTargetTemperatureCelsius": 50,
        "MinOutletTargetTemperatureCelsius": 45,
        "MaxOutletTargetTemperatureCelsius": 60,
        "DiskTargetTemperatureCelsius": 52,
        "DiskMinTargetTemperatureCelsius": 40,
        "DiskMaxTargetTemperatureCelsius": 52,
        "MemoryTargetTemperatureCelsius": 72,
        "MemoryMinTargetTemperatureCelsius": 50,
        "MemoryMaxTargetTemperatureCelsius": 80,
        "PCHTargetTemperatureCelsius": 76,
        "PCHMinTargetTemperatureCelsius": 50,
        "PCHMaxTargetTemperatureCelsius": 76,
        "VRDTargetTemperatureCelsius": 100,
        "VRDMinTargetTemperatureCelsius": 60,
        "VRDMaxTargetTemperatureCelsius": 100,
        "VDDQTargetTemperatureCelsius": 100,
        "VDDQMinTargetTemperatureCelsius": 60,
        "VDDQMaxTargetTemperatureCelsius": 100,
        "InletTemperature": {
          "TemperatureRangeCelsius": [
            20,
            30,
            40
          ],
          "FanSpeedPercents": [
            40,
            60,
            80,
            100
          ],
          "MinTemperatureRangeCelsius": 0,
          "MaxTemperatureRangeCelsius": 60,
          "MinFanSpeedPercents": 30,
          "MaxFanSpeedPercents": 100
        },
        "DiskTemperature": {
          "TemperatureRangeCelsius": [
            25,
            30,
            35,
            40
          ],
          "FanSpeedPercents": [
            35,
            40,
            55,
            75,
            100
          ],
          "MinTemperatureRangeCelsius": 0,
          "MaxTemperatureRangeCelsius": 60,
          "MinFanSpeedPercents": 30,
          "MaxFanSpeedPercents": 100
        }
      },
      "Actions": {
        "#Thermal.ClearInletHistoryTemperature": {
          "target": "/redfish/v1/Chassis/1/Thermal/Oem/Huawei/Actions/Thermal.ClearInletHistoryTemperature",
          "@Redfish.ActionInfo": "/redfish/v1/Chassis/1/Thermal/ClearInletHistoryTemperatureActionInfo"
        }
      },
      "InletHistoryTemperature": {
        "@odata.id": "/redfish/v1/Chassis/1/Thermal/InletHistoryTemperature"
      }
    }
  },
  "Temperatures": [
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/0",
      "MemberId": "0",
      "SensorNumber": 1.0,
      "Name": "Inlet Temp",
      "ReadingCelsius": 23.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 46.0,
      "UpperThresholdCritical": 48.0,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/1",
      "MemberId": "1",
      "SensorNumber": 2.0,
      "Name": "Outlet Temp",
      "ReadingCelsius": 35.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 75.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/2",
      "MemberId": "2",
      "SensorNumber": 3.0,
      "Name": "PCH Temp",
      "ReadingCelsius": 53.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 86.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/3",
      "MemberId": "3",
      "SensorNumber": 4.0,
      "Name": "CPU1 Core Rem",
      "ReadingCelsius": 34.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/4",
      "MemberId": "4",
      "SensorNumber": 5.0,
      "Name": "CPU2 Core Rem",
      "ReadingCelsius": 33.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/5",
      "MemberId": "5",
      "SensorNumber": 6.0,
      "Name": "CPU1 DTS",
      "ReadingCelsius": -53,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": -1,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/6",
      "MemberId": "6",
      "SensorNumber": 7.0,
      "Name": "CPU2 DTS",
      "ReadingCelsius": -54,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": -1,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/7",
      "MemberId": "7",
      "SensorNumber": 9.0,
      "Name": "Cpu1 Margin",
      "ReadingCelsius": -43,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/8",
      "MemberId": "8",
      "SensorNumber": 10.0,
      "Name": "Cpu2 Margin",
      "ReadingCelsius": -44,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/9",
      "MemberId": "9",
      "SensorNumber": 14.0,
      "Name": "CPU1 MEM Temp",
      "ReadingCelsius": 33.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 95.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/10",
      "MemberId": "10",
      "SensorNumber": 15.0,
      "Name": "CPU2 MEM Temp",
      "ReadingCelsius": 32.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 95.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/11",
      "MemberId": "11",
      "SensorNumber": 38.0,
      "Name": "Disks Temp",
      "ReadingCelsius": 30.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/12",
      "MemberId": "12",
      "SensorNumber": 39.0,
      "Name": "RAID Temp",
      "ReadingCelsius": 51.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 105.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/13",
      "MemberId": "13",
      "SensorNumber": 40.0,
      "Name": "Raid BBU Temp",
      "ReadingCelsius": 28.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 65.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/14",
      "MemberId": "14",
      "SensorNumber": 45.0,
      "Name": "PS1 Temp",
      "ReadingCelsius": 38.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/15",
      "MemberId": "15",
      "SensorNumber": 46.0,
      "Name": "PS1 Inlet Temp",
      "ReadingCelsius": 34.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/16",
      "MemberId": "16",
      "SensorNumber": 51.0,
      "Name": "PS2 Temp",
      "ReadingCelsius": 37.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/17",
      "MemberId": "17",
      "SensorNumber": 52.0,
      "Name": "PS2 Inlet Temp",
      "ReadingCelsius": 33.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/18",
      "MemberId": "18",
      "SensorNumber": 59.0,
      "Name": "CPU1 VDDQ Temp",
      "ReadingCelsius": 27.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 120.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/19",
      "MemberId": "19",
      "SensorNumber": 60.0,
      "Name": "CPU2 VDDQ Temp",
      "ReadingCelsius": 29.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 120.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/20",
      "MemberId": "20",
      "SensorNumber": 61.0,
      "Name": "CPU1 VRD Temp",
      "ReadingCelsius": 28.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 120.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Temperatures/21",
      "MemberId": "21",
      "SensorNumber": 62.0,
      "Name": "CPU2 VRD Temp",
      "ReadingCelsius": 29.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": 120.0,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRangeTemp": null,
      "MaxReadingRangeTemp": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      }
    }
  ],
  "Fans": [
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/0",
      "MemberId": "0",
      "Name": "Fan1 Front",
      "Model": "02311YWS 4056",
      "Reading": 6400.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 33,
          "SlotNumber": 1
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/1",
      "MemberId": "1",
      "Name": "Fan1 Rear",
      "Model": "02311YWS 4056",
      "Reading": 6000.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 34,
          "SlotNumber": 1
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/2",
      "MemberId": "2",
      "Name": "Fan2 Front",
      "Model": "02311YWS 4056",
      "Reading": 6400.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 33,
          "SlotNumber": 2
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/3",
      "MemberId": "3",
      "Name": "Fan2 Rear",
      "Model": "02311YWS 4056",
      "Reading": 6100.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 34,
          "SlotNumber": 2
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/4",
      "MemberId": "4",
      "Name": "Fan3 Front",
      "Model": "02311YWS 4056",
      "Reading": 6400.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 33,
          "SlotNumber": 3
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/5",
      "MemberId": "5",
      "Name": "Fan3 Rear",
      "Model": "02311YWS 4056",
      "Reading": 6000.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 34,
          "SlotNumber": 3
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/6",
      "MemberId": "6",
      "Name": "Fan4 Front",
      "Model": "02311YWS 4056",
      "Reading": 6300.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 33,
          "SlotNumber": 4
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/7",
      "MemberId": "7",
      "Name": "Fan4 Rear",
      "Model": "02311YWS 4056",
      "Reading": 6000.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 34,
          "SlotNumber": 4
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/8",
      "MemberId": "8",
      "Name": "Fan5 Front",
      "Model": "02311YWS 4056",
      "Reading": 6600.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 33,
          "SlotNumber": 5
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/9",
      "MemberId": "9",
      "Name": "Fan5 Rear",
      "Model": "02311YWS 4056",
      "Reading": 6100.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 34,
          "SlotNumber": 5
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/10",
      "MemberId": "10",
      "Name": "Fan6 Front",
      "Model": "02311YWS 4056",
      "Reading": 6300.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 33,
          "SlotNumber": 6
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/11",
      "MemberId": "11",
      "Name": "Fan6 Rear",
      "Model": "02311YWS 4056",
      "Reading": 6000.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 34,
          "SlotNumber": 6
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/12",
      "MemberId": "12",
      "Name": "Fan7 Front",
      "Model": "02311YWS 4056",
      "Reading": 6480.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 34,
          "SlotNumber": 7
        }
      }
    },
    {
      "@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/13",
      "MemberId": "13",
      "Name": "Fan7 Rear",
      "Model": "02311YWS 4056",
      "Reading": 6000.0,
      "LowerThresholdNonCritical": null,
      "LowerThresholdCritical": null,
      "LowerThresholdFatal": null,
      "UpperThresholdNonCritical": null,
      "UpperThresholdCritical": null,
      "UpperThresholdFatal": null,
      "MinReadingRange": null,
      "MaxReadingRange": null,
      "Status": {
        "State": "Enabled",
        "Oem": {
          "Huawei": {
            "Severity": "Informational"
          }
        },
        "Health": "OK"
      },
      "ReadingUnits": "RPM",
      "PartNumber": "02311YWS",
      "Oem": {
        "Huawei": {
          "Position": "chassis",
          "SpeedRatio": 34,
          "SlotNumber": 7
        }
      }
    }
  ]
}f

Signed-off-by: Guohao Wang guohao.wang@shopee.com