背景
支持Fan相关redfish资源适配,在Fans资源中返回风扇后转子转速百分比,不涉及其他转子。
评审点1:Fans资源新增Reading标准redfish属性
资源URI:/redfish/v1/Chassis/:chassisid/ThermalSubsystem/Fans/:fanid
资源版本:Fan.v1_5_2
属性列表:
| 一级属性 | 二级属性 | 类型 | 示例/取值约束 | readonly | 易变属性 | 实现PATCH | 操作权限 | 描述 |
|---|---|---|---|---|---|---|---|---|
SpeedPercent |
Reading |
[number,null] |
0-100 |
true |
是 |
否 |
NA |
风扇后转子转速百分比 |
Schema定义:
"Reading": {
"description": "The sensor value.",
"excerpt": "Sensor",
"longDescription": "This property shall contain the sensor value. This property shall not be returned if the `Enabled` property is supported and contains `false`.",
"readonly": true,
"type": [
"number",
"null"
]
}
响应示例:
{
"@odata.context": "/redfish/v1/$metadata#Fan.Fan",
"@odata.id": "/redfish/v1/Chassis/1/ThermalSubsystem/Fans/1",
"@odata.type": "#Fan.v1_5_2.Fan",
"Id": "1",
"Name": "Fan1",
....
"SpeedPercent": {
"SpeedRPM": 5888,
"Reading": 39,
"DataSourceUri": "/redfish/v1/Chassis/1/Sensors/FAN_R_SPEED_1.98"
},
...
}
评审结论
通过,同意在 Redfish Fan 资源的 SpeedPercent 属性下增加 Reading 属性,表征风扇后转子转速百分比;属性类型为 number,取值范围为 [0, 100],获取失败时取值为 null,只读属性。
遗留问题
1、获取失败的情况返回null
结论:已闭环,在获取成功时返回后转子转速百分比,失败时返回null
2、补充Reading属于哪个object的描述
结论:已闭环,表格中增加上级对象名称