GET – MetricReportDefinition 属性
使用 GET 方法检索每个 MetricReportDefinition 信息。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/TelemetryService/MetricReportDefinitions/{Id}
响应正文
| 字段 | 类型 | 描述 | ||||||
|---|---|---|---|---|---|---|---|---|
Id  | 字符串 | 此资源的标识符。  | ||||||
Description  | 字符串 | “A set of metrics that are collected into a metric report.”  | ||||||
Name  | 字符串 | 此资源的名称。  | ||||||
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。
{
    "Wildcards": [
        {
            "Name": "PWild",
            "Values": [
                "0",
                "1",
                "2"
            ]
        }
    ],
    "ReportUpdates": "AppendWrapsWhenFull",
    "Metrics": [
        {
            "MetricProperties": [
                "/redfish/v1/Chassis/1/Power#/PowerControl/{PWild}/PowerMetrics/MaxConsumedWatts",
                "/redfish/v1/Chassis/1/Power#/PowerControl/{PWild}/PowerMetrics/AverageConsumedWatts",
                "/redfish/v1/Chassis/1/Power#/PowerControl/{PWild}/PowerMetrics/MinConsumedWatts"
            ],
            "CollectionTimeScope": "Interval",
            "CollectionDuration": "PT30S"
        }
    ],
    "Description": "A set of metrics that are collected into a metric report.",
    "Name": "PowerMetrics",
    "ReportTimespan": "PT24H",
    "Id": "PowerMetrics",
    "@odata.etag": "\"648d59955bddcc7f09232753f8ea5f4b\"",
    "AppendLimit": 25920,
    "ReportActions": [
        "LogToMetricReportsCollection"
    ],
    "MetricReport": {
        "@odata.id": "/redfish/v1/TelemetryService/MetricReports/PowerMetrics"
    },
    "@odata.type": "#MetricReportDefinition.v1_3_0.MetricReportDefinition",
    "Status": {
        "State": "Enabled"
    },
    "@odata.id": "/redfish/v1/TelemetryService/MetricReportDefinitions/PowerMetrics",
    "MetricReportDefinitionType": "OnRequest"
}
{
    "Wildcards": [
        {
            "Name": "PWild",
            "Values": [
                "0",
                "1",
                "2"
            ]
        }
    ],
    "ReportTimespan": "PT10M",
    "Metrics": [
        {
            "MetricProperties": [
                "/redfish/v1/Chassis/1/Power#/PowerControl/{PWild}/PowerMetrics/MaxConsumedWatts",
                "/redfish/v1/Chassis/1/Power#/PowerControl/{PWild}/PowerMetrics/AverageConsumedWatts",
                "/redfish/v1/Chassis/1/Power#/PowerControl/{PWild}/PowerMetrics/MinConsumedWatts"
            ],
            "CollectionTimeScope": "Interval",
            "CollectionDuration": "PT30S"
        }
    ],
    "Description": "A set of metrics that are collected into a metric report.",
    "Name": "PowerMetricsEvent",
    "Schedule": {
        "RecurrenceInterval": "PT10M"
    },
    "Id": "PowerMetricsEvent",
    "@odata.etag": "\"ffb0baa73f2c9f39bb6fa63236a919d7\"",
    "ReportActions": [
        "RedfishEvent"
    ],
    "@odata.type": "#MetricReportDefinition.v1_3_0.MetricReportDefinition",
    "Status": {
        "State": "Enabled"
    },
    "@odata.id": "/redfish/v1/TelemetryService/MetricReportDefinitions/PowerMetricsEvent",
    "MetricReportDefinitionType": "Periodic"
}
提供反馈