GET – MetricReportDefinition properties
Use the GET method to retrieve each MetricReportDefinition info.
Request URL
GET https://<BMC_IPADDR>/redfish/v1/TelemetryService/MetricReportDefinitions/{Id}
Response body
Field | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
Id | String | The identifier of this resource. | ||||||
Name | String | The name of this resource. | ||||||
Description | String | A set of metrics that are collected into a metric report. | ||||||
ReportTimespan | String | Specifies the timespan duration of the metric report. | ||||||
MetricReportDefinitionType | String | Specifies when the metric report is generated. | ||||||
ReportActions | Array | The set of actions to perform when a metric report is generated. | ||||||
ReportUpdates | String | “AppendWrapsWhenFull” if this property exists. | ||||||
AppendLimit | Integer | 25920 if this property exists. | ||||||
Metrics | Array | The list of metrics to include in the metric report. | ||||||
Metrics[1] | Object | Specifies a metric to include in the metric report. | ||||||
MetricProperties | String | The set of URIs for the properties on which this metric is collected. | ||||||
CollectionTimeScope | String | The scope of time scope over which the function is applied. | ||||||
CollectionDuration | String | The duration over which the function is computed. | ||||||
Wildcards | Array | The set of wildcards and their substitution values for the entries in the MetricProperties property. | ||||||
Status | Object | The status for this resource. | ||||||
State | String | The state for this resource. | ||||||
MetricReport | String | The location where the resultant metric report is placed. | ||||||
Schedule | Object | The schedule for generating the metric report. | ||||||
RecurrenceInterval | String | The amount of time until the next occurrence occurs. |
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Example
The following examples JSON response describe the PowerMetrics and 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"
]
}
]
}