跳到主要内容

GET – 处理器指标属性

使用 GET 方法检索 Redfish 服务的处理器指标中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Systems/1/ProcessorSummary/ProcessorMetrics

请求正文

响应正文

字段类型描述

Id

字符串

“ProcessorMetrics”。

Name

字符串

“Processor Summary Metrics”。

Description

字符串

“This resource is used to represent processor summary metrics for a Redfish implementation.”

BandwidthPercent

字符串

CPU 带宽百分比。

ConsumedPowerWatt

字符串

处理器的功耗(以瓦为单位)。

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"BandwidthPercent": 0,
"Description": "This resource is used to represent processor summary metrics for a Redfish implementation.",
"@odata.type": "#ProcessorMetrics.v1_0_1.ProcessorMetrics",
"@odata.id": "/redfish/v1/Systems/1/ProcessorSummary/ProcessorMetrics",
"Id": "ProcessorMetrics",
"@odata.etag": "\"6de4c04fbae63c91eec00838a25f9c9b\"",
"Name": "Processor Summary Metrics",
"ConsumedPowerWatt": 20
}

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Systems/1/Processors/{1-N}/ProcessorMetrics

请求正文

响应正文

字段类型描述

Id

字符串

“ProcessorMetrics”

Name

字符串

“Processor Metrics”

Description

字符串

“This resource is used to represent a processor metrics for a Redfish implementation.”

ConsumedPowerWatt

数字

此处理器的功耗瓦数。

TemperatureCelsius

数字

处理器的温度。

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"Id": "ProcessorMetrics",
"TemperatureCelsius": 34,
"Name": "Processor Metrics",
"ConsumedPowerWatt": 24,
"Description": "This resource is used to represent a processor metrics for a Redfish implementation.",
"@odata.type": "#ProcessorMetrics.v1_1_0.ProcessorMetrics",
"@odata.id": "/redfish/v1/Systems/1/Processors/1/ProcessorMetrics",
"@odata.etag": "\"2c50f0353a3827e65b4\""
}