【已评审】redfish新增接口支持查询内存温度

背景

redfish遥测支持内存相关指标定义中对于<内存温度>无北向接口支持,需新增对应的redfish接口实现对应的属性承载。

关联ISSUE

整体方案

1、在/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}下新增属性EnvironmentMetrics,用于链接内存环境指标子资源
2、新增/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/EnvironmentMetrics查询接口,用于查询内存温度

评审点

1、在/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}下新增属性EnvironmentMetrics,用于链接内存环境指标子资源
2、新增/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/EnvironmentMetrics 查询接口

详细描述

评审点1

在/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}下新增属性EnvironmentMetrics,用于链接内存环境指标子资源

资源URI:/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}

资源版本:memory.v1_23_0.json

操作权限:ReadOnly

响应参数:

属性名 类型 示例/取值约束 readonly 易变属性 实现patch 操作权限 描述
EnvironmentMetrics [object,null] {“@odata.id”: “/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/EnvironmentMetrics”} 是 否 否 ReadOnly 内存环境指标子资源链接,所有内存均返回此链接

Schema定义:

"EnvironmentMetrics": {
    "$ref": "http://redfish.dmtf.org/schemas/v1/EnvironmentMetrics.json#/definitions/EnvironmentMetrics",
    "description": "The link to the environment metrics for this memory.",
    "longDescription": "This property shall contain a link to a resource of type `EnvironmentMetrics` that specifies the environment metrics for this memory.",
    "readonly": true,
    "versionAdded": "v1_11_0"
},

评审点2

新增/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/EnvironmentMetrics 查询接口

资源URI:/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/EnvironmentMetrics

资源版本:EnvironmentMetrics.v1_5_0

操作权限:ReadOnly

响应参数:

属性名 类型 示例/取值约束 readonly 易变属性 实现patch 操作权限 描述
TemperatureCelsius/Reading [number,null] 25.5 是 是 否 ReadOnly 内存温度读数(℃),如果后台数据为16384/32768,返回null

Schema定义:

  "TemperatureCelsius": {
      "anyOf": [
          {
              "$ref": "http://redfish.dmtf.org/schemas/v1/Sensor.json#/definitions/SensorExcerpt"
          },
          {
              "type": "null"
          }
      ],
      "description": "Temperature (Celsius).",
      "excerptCopy": "SensorExcerpt",
      "longDescription": "This property shall contain the temperature, in degree Celsius units, for this resource.  The value of the `DataSourceUri` property, if present, shall reference a resource of type `Sensor` with the `ReadingType` property containing the value `Temperature`."
  },

是否准备好AI预审

否

评审结论

同意在/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}下新增属性EnvironmentMetrics,用于链接内存环境指标子资源
同意新增/redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/EnvironmentMetrics查询接口

遗留问题

1.取值是否带小数
取一位小数 示例:34.5