Fast and accurate power metering
Request
GET https://{{ip}}/redfish/v1/Chassis/{{chassis_instance}}/Power/Oem/Lenovo/HistoryPowerMeter/{power meter type}
Content-Type: application/json
Note
power meter type could be PsuAC, PsuDC, CPU, DIMM, OCP, PCIE, or GPUexternal.
Field | Type | Read only | Description |
---|---|---|---|
Name | String | True | Power control function name |
historyPower | Table | True | Historical power records, with each entry containing the timestamp, min power, max power, and average power of the power metering duration |
timeStamp | String | True | Local time for each power meter history record created |
minPower | Value | True | Min power of this device in the power metering duration |
maxPower | Value | True | Max power of this device in the power metering duration |
avgPower | Value | True | Average power of this device in the power metering duration |
Example to get CPU power metering info:
GET https://{{ip}}/redfish/v1/Chassis/{{chassis_instance}}/Power/Oem/Lenovo/HistoryPowerMeter/CPU
Content-Type: application/json
Response example
{
"@odata.context": "/redfish/v1/$metadata#Power.Power",
"@odata.etag": "\"1583833912\"",
"@odata.id": "/redfish/v1/Chassis/Self/Power/Oem/Lenovo/HistoryPowerMeter/CPU",
"@odata.type": "#Power.v1_5_3.Power",
"Id": "lenovo CPU power meter",
"Name": "lenovo CPU power meter",
"historyPower": [
{
"avgPower": "44",
"maxPower": "44",
"minPower": "44",
"timeStamp": "2020-03-11 16:10:44"
},
{
"avgPower": "44",
"maxPower": "44",
"minPower": "44",
"timeStamp": "2020-03-11 16:11:14"
},
…
…
}
Give documentation feedback