Skip to main content

GET – MetricDefinition inventory properties

Use the GET method to retrieve each MetricDefinition info.

Request URL

GET https://<BMC_IPADDR>/redfish/v1/TelemetryService/MetricDefinitions/{Id}

Response body

FieldTypeDescription
IdString

The identifier of this resource.

DescriptionString

“The metadata information about a metric.”

NameString

The name of this resource.

MetricTypeString

The type of metric.

ImplementationString

The implementation of the metric.

PhysicalContextString

The physical context of the metric.

MetricDataTypeString

The data type of the metric.

UnitsString

The units of measure for this metric.

CalculationAlgorithmString

The calculation that is performed on a source metric to obtain the metric being defined.

CalculationTimeIntervalString

The time interval over which the metric calculation is performed.

IsLinearBoolean

An indication of whether the metric values are linear versus non-linear.

CalculableString

An indication of whether the metric can be used in a calculation.

WildcardsArray

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

MetricPropertiesArray

The list of URIs with wildcards and property identifiers that this metric definition defines.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example JSON response is returned:

{
"Wildcards": [
{
"Name": "PWild",
"Values": [
"0",
"1",
"2",
"3"
]
}
],
"CalculationTimeInterval": "PT1S",
"Description": "The metadata information about a metric.",
"MetricType": "Numeric",
"PhysicalContext": "PowerSupply",
"CalculationAlgorithm": "Average",
"Name": "AveragePowerSupplyInput",
"IsLinear": true,
"MetricDataType": "Integer",
"Id": "AveragePowerSupplyInput",
"MetricProperties": [
"/redfish/v1/Chassis/1/Power#/PowerSupplies/{PWild}/PowerInputWatts"
],
"@odata.etag": "\"31db0d95174de283fa99ca3a69891e2c\"",
"Calculable": "NonSummable",
"Implementation": "Calculated",
"@odata.type": "#MetricDefinition.v1_0_3.MetricDefinition",
"@odata.id": "/redfish/v1/TelemetryService/MetricDefinitions/AveragePowerSupplyInput",
"Units": "W"
}