Skip to main content

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

FieldTypeDescription
IdString

The identifier of this resource.

DescriptionString

“A set of metrics that are collected into a metric report.”

NameString

The name of this resource.

ReportTimespanString

Specifies the timespan duration of the metric report.

MetricReportDefinitionTypeString

Specifies when the metric report is generated.

ReportActionsArray

The set of actions to perform when a metric report is generated.

ReportUpdatesString

“AppendWrapsWhenFull” if this property exists.

AppendLimitInteger

25920 if this property exists.

MetricsArray

The list of metrics to include in the metric report.

 Metrics[1]Object

Specifies a metric to include in the metric report.

  MetricPropertiesString

The set of URIs for the properties on which this metric is collected.

  CollectionTimeScopeString

The scope of time scope over which the function is applied.

  CollectionDurationString

The duration over which the function is computed.

WildcardsArray

The set of wildcards and their substitution values for the entries in the MetricProperties property.

StatusObject

The status for this resource.

 StateString

The state for this resource.

MetricReportString

The location where the resultant metric report is placed.

ScheduleObject

The schedule for generating the metric report.

 RecurrenceIntervalString

The amount of time until the next occurrence occurs.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following examples JSON response describe the PowerMetrics and 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"
}