Skip to main content

POST – Submit a test Metric Report

Use the POST method to send a test metric report. User can open a SSE stream with filter “EventFormatType eq ‘MetricReport’” for getting the test metric report.

Example:

https://sseuri?$filter=EventFormatType eq ‘MetricReport’

Request URL

GET https://<BMC_IPADDR>/redfish/v1/TelemetryService/Actions/TelemetryService.SubmitTestMetricReport

Request body

FieldTypeDescription

MetricReportName

String

The name of the metric report in generated metric report.

GeneratedMetricReportValues

Array

Items: object

Item count: 0 – N

 

GeneratedMetricReportValues[N]

Object

The content of the MetricReportValues in the generated metric report.

  

MetricDefinition

Link

The link to the metric.

  

MetricId

String

The metric definitions identifier for this metric.

  

MetricProperty

String

The URI for the property from which this metric is derived.

  

MetricValue

String

The metric value, as a string.

  

Timestamp

String

The time when the metric value is obtained.

Response

None

Status code

HTTP Status CodeError Message ID
204NoContent
500InternalError

Example

The following example is POST body:

{
"MetricReportName": "PowerSupplyStats",
"GeneratedMetricReportValues": [
{
"MetricDefinition": "/redfish/v1/TelemetryService/MetricDefinitions/AveragePowerSupplyInput",
"MetricId": "AveragePowerSupplyInput",
"MetricProperty": "/redfish/v1/Chassis/1/Power#/PowerSupplies/1/PowerInputWatts",
"MetricValue": "300",
"Timestamp": "2029-07-10T14:08:00+00:00"
}
]
}