【已评审】支持新增redfish标准接口Sensor资源新增属性

背景

支持新增redfish标准Sensor接口

关联ISSUE

[需求]: 支持新增redfish标准Sensor接口

评审点

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操作

遗留问题

@byosoft_fanghanxia 属性的描述等详细信息需要罗列出来,可以参考一下其他的已经归档的评审帖。举例:【已评审】支持redfish标准接口PCIeDevices资源新增属性 - #2

+1

操作类型和实际描述的对不上

说明和 schema 对不上

改完了