GET – MetricReportDefinition 属性
使用 GET 方法检索每个 MetricReportDefinition 信息。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/TelemetryService/MetricReportDefinitions/{Id}
响应正文
字段 | 类型 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|
Id | 字符串 | 此资源的标识符。 | ||||||
Name | 字符串 | 此资源的名称。 | ||||||
Description | 字符串 | “A set of metrics that are collected into a metric report.” | ||||||
ReportTimespan | 字符串 | 指定指标报告的持续时间跨度。 | ||||||
MetricReportDefinitionType | 字符串 | 指定何时生成指标报告。 | ||||||
ReportActions | 数组 | 生成指标报告时要执行的操作集。 | ||||||
ReportUpdates | 字符串 | 如果此属性存在,则为“AppendWrapsWhenFull”。 | ||||||
AppendLimit | 整数 | 如果此属性存在,则为 25920。 | ||||||
Metrics | 数组 | 要包含在指标报告中的指标列表。 | ||||||
Metrics[1] | 对象 | 指定要包含在指标报告中的指标。 | ||||||
MetricProperties | 字符串 | 收集此指标依据的属性的 URI 集。 | ||||||
CollectionTimeScope | 字符串 | 应用此功能的时间范围。 | ||||||
CollectionDuration | 字符串 | 计算此功能的持续时间。 | ||||||
Wildcards | 数组 | MetricProperties 属性中的条目的通配符及其替换值集。 | ||||||
Status | 对象 | 此资源的状态。 | ||||||
State | 字符串 | 此资源的状态。 | ||||||
MetricReport | 字符串 | 生成的指标报告的放置位置。 | ||||||
Schedule | 对象 | 生成指标报告的计划。 | ||||||
RecurrenceInterval | 字符串 | 下一次执行操作之前经过的时长。 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
以下示例 JSON 响应描述了 PowerMetrics 和 PowerMetricsEvent。
{
"@odata.context": "/redfish/v1/$metadata#MetricReportDefinition.MetricReportDefinition",
"@odata.etag": "\"C8695E63\"",
"@odata.id": "/redfish/v1/TelemetryService/MetricReportDefinitions/CPUPowerMetrics",
"@odata.type": "#MetricReportDefinition.v1_4_1.MetricReportDefinition",
"AppendLimit": 40,
"Description": "A set of metrics that are collected into a metric report.",
"Id": "CPUPowerMetrics",
"MetricReport": {
"@odata.id": "/redfish/v1/TelemetryService/MetricReports/CPUPowerMetrics"
},
"MetricReportDefinitionType": "OnRequest",
"Metrics": [
{
"CollectionDuration": "PT30S",
"CollectionTimeScope": "Interval",
"MetricProperties": [
"/redfish/v1/Systems/1/Processors/{PWild}/ProcessorMetrics#/ConsumedPowerWatt"
]
}
],
"Name": "CPUPowerMetrics",
"ReportActions": [
"LogToMetricReportsCollection"
],
"ReportTimespan": "PT10M",
"ReportUpdates": "AppendWrapsWhenFull",
"Status": {
"State": "Enabled"
},
"Wildcards": [
{
"Name": "PWild",
"Values": [
"1",
"2"
]
}
]
}
提供反馈