跳到主要内容

GET – MetricDefinition 集合

使用 GET 方法检索 Redfish 服务的 MetricDefinition 集合资源中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/TelemetryService/MetricDefinitions

请求正文

响应正文

字段类型描述

Members

数组

项:MetricDefinition 元素的引用链接

Name

字符串

MetricDefinitions

Description

字符串

“A Collection of MetricDefinition resource instances.”

注:“MetricDefinition”集合可能包含以下成员:

AveragePowerSupplyInput

AveragePowerSupplyOutput

AverageCPUUtilization(Lenovo AMD 系统上不支持)

AverageMemoryUtilization(Lenovo AMD 系统上不支持)

状态代码

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

示例

返回以下示例 JSON 响应:

{
"Name": "MetricDefinitions",
"@odata.etag": "\"52b424e502c413c3426d0b430b95c9a1\"",
"Members@odata.count": 4,
"@odata.type": "#MetricDefinitionCollection.MetricDefinitionCollection",
"Description": "A Collection of MetricDefinition resource instances.",
"@odata.id": "/redfish/v1/TelemetryService/MetricDefinitions",
"Members": [
{
"@odata.id": "/redfish/v1/TelemetryService/MetricDefinitions/AveragePowerSupplyInput"
},
{
"@odata.id": "/redfish/v1/TelemetryService/MetricDefinitions/AveragePowerSupplyOutput"
},
{
"@odata.id": "/redfish/v1/TelemetryService/MetricDefinitions/AverageCPUUtilization"
},
{
"@odata.id": "/redfish/v1/TelemetryService/MetricDefinitions/AverageMemoryUtilization"
}
]
}