PATCH – Metric Report Definition Instance
Request
PATCH https://{{ip}}/redfish/v1/TelemetryService/MetricReportDefinitions/{{metric_report_def_instance}}
Content-Type: application/json
If the value of the ServiceEnabled attribute available under the Telemetry Service Resource (i.e./redfish/v1/TelemetryService) is true, it signifies that the Telemetry Service is in Enabled state and the PATCH Request will succeed.
If it is false, it signifies that the Telemetry Service is in Disabled state and it will fail with an error message stating, the operation failed because this service is disabled can no longer take incoming requests.
The properties mentioned in the below table are patchable and can be sent in the Request Body in JSON Format.
Name | Type | Read only | Description |
---|---|---|---|
MetricReportDefinitionEnabled | Boolean | False | The value of this property shall be a Boolean indicating whether this MetricReportDefinition is enabled for generating new MetricReports. |
SuppressRepeatedMetricValue | Boolean | False |
|
MetricReportHeartbeatInterval | String | False |
|
Request example
{
"MetricReportDefinitionEnabled": true,
"SuppressRepeatedMetricValue": true,
"MetricReportHeartbeatInterval": "PT45S"
}
Response
HTTP/1.1 204 No Content
Behavior
The below mentioned scenarios are taken into consideration while generating Metric Reports 1. If value of attribute RecurrenceInterval is specified (say PT[x]S) and SuppressRepeatedMetricValue attribute has a value of "false", then the suppression mechanism is not applied to the MetricReport being generated and every PT[x]S, the MetricReport will be generated for all the MetricProperties.
A MetricReport may be generated with no MetricProperty array values if all Metrics had the same values as in the previously generated MetricReport. This scenario is applicable only when attribute "ReportUpdates"has a value "NewReport".
If value of attribute RecurrenceInterval is specified (say PT[x]S) and SuppressRepeatedMetricValue attribute has a value of "true", then the suppression mechanism is applied to the MetricReport being generated (i.e. any Metric in the MetricReport currently be generated will be suppressed and not included in the MetricReport when the value of the Metric equals the value of the same Metric in the previously generated MetricReport).
If value of attribute MetricReportHeartbeatInterval is specified (say PT[y]S) and SuppressRepeatedMetricValue attribute has a value of "true", then every PT[y]S, the complete MetricReport will be generated and sent regardless of whether values have changed.
If value of attribute MetricReportHeartbeatInterval is specified (say PT[y]S) and SuppressRepeatedMetricValue attribute has a value of "false", then this functionality is disabled and MetricReports will be generated at an interval specified by the RecurrenceInterval.
MetricProperties only support the values defined under the Members of MetricDefinitions URI /redfish/v1/TelemetryService/MetricDefinitions.
If the "ReportUpdates" property has the value "AppendStopsWhenFull" and if the number of Metric Objects in the MetricValues array of MetricReport Instance has reached the AppendLimit, then no more Metric Objects will be appended to the MetricValues. But still the ReportSequence will get updated in each cycle specified by RecurrenceInterval or MetricReportHeartbeatInterval.
The default value for the property MetricReportDefinitionEnabled is true. The MetricReportDefinition and its corresponding MetricReports will not be updated/created if the value for this property is false. The user can create a MetricReportDefinition with MetricReportDefinitionEnabled as false. In this case the MetricReports will only be generated after PATCH ing MetricReportDefinitionEnabled to true.
The property Status/State will be changed to Disabled when MetricReportDefinitionEnabled is false.