GET – PowerSupplyMetrics 属性
使用 GET 方法检索服务器的 PowerSupplyMetrics 中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/PowerSubsystem/PowerSupplies/PSU{psu_id}/Metrics
请求正文
无
响应正文
字段 | 类型 | 描述 | ||
---|---|---|---|---|
Id | 字符串 | Metrics | ||
Name | 字符串 | PSU{psu_id} 的指标 | ||
Description | 字符串 | “This resource shall represent metrics for Power Supply {psu_id} of a chassis for a Redfish implementation.” | ||
InputPowerWatts | 对象 | 已展开。 | ||
DataSourceUri | 字符串 | 传感器“PSU {psu_id}AC In Pwr”的 Redfish 路径。 | ||
Reading | 数字 | 传感器“PSU {psu_id} AC In Pwr”的读数。 | ||
OutputPowerWatts | 对象 | 已展开。 | ||
DataSourceUri | 字符串 | 传感器“PSU {psu_id} DC Out Pwr”的 Redfish 路径。 | ||
Reading | 数字 | 与“PSU {psu_id} DC Out Pwr”中的读数相同。 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#PowerSupplyMetrics.PowerSupplyMetrics",
"@odata.etag": "\"7692B51E\"",
"@odata.id": "/redfish/v1/Chassis/1/PowerSubsystem/PowerSupplies/PSU1/Metrics",
"@odata.type": "#PowerSupplyMetrics.v1_0_1.PowerSupplyMetrics",
"Description": "This resource shall represent metrics for Power Supply of a chassis for a Redfish implementation.",
"Id": "Metrics",
"InputPowerWatts": {
"DataSourceUri": "/redfish/v1/Chassis/1/Sensors/power_PSU1_Input_Power",
"Reading": 524
},
"Name": "Metrics for PSU1",
"OutputPowerWatts": {
"DataSourceUri": "/redfish/v1/Chassis/1/Sensors/power_PSU1_Output_Power",
"Reading": 495
}
}
提供反馈