背景
支持新增redfish标准Sensor接口
关联ISSUE
评审点
Sensors接口下新增Enabled属性
详细描述
评审点: /redfish/v1/Chassis/:chassisid/Sensors/:sensorid
变化类型:新增属性
操作类型:GET
应用场景: redfish接口新增属性Enabled支持定位资源
详细描述:
| 属性名称 | 取值类型 | 说明 | 操作权限 | 默认值 | 是否频繁变化并需要屏蔽变化事件 |
|---|---|---|---|---|---|
| Enabled | boolean,null | 传感器是否使能并提供读数 | ReadOnly | false | 否 |
schema说明
"Enabled": {
"description": "Indicates whether the sensor is enabled and provides a reading.",
"longDescription": "This property shall indicate whether the sensor is enabled and provides a `Reading`. The value `true` shall indicate the sensor is enabled and returns the `Reading` property with a valid value. The value `false` shall indicate the sensor is disabled, shall not return the `Reading` property, and shall not trigger events, logging, or other functionality. This property allows a user to disable a faulty sensor or to otherwise remove it from use.",
"readonly": false,
"type": [
"boolean",
"null"
],
"versionAdded": "v1_10_0"
},
RspBody响应体结构:
{
"@odata.context": "/redfish/v1/$metadata#Sensor.Sensor",
"@odata.id": "/redfish/v1/Chassis/1/Sensors/1711CoreTemp.1",
"@odata.type": "#Sensor.v1_10_1.Sensor",
"Id": "1711CoreTemp.1",
"Name": "1711 Core Temp"
"Enabled": false,
}
评审结论
同意URI:/redfish/v1/Chassis/:chassisid/Sensors/:sensorid下新增标准属性Enabled,类型为string,只支持GET操作
遗留问题
无

