Converts a source unit into a target unit.
If no target unit is set, the request finds an appropriate target unit automatically, taking into account the preferred number format (if specified).
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/units/{unitId}/convert |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/units/{unitId}/convert |
To execute this request, you need an access token with metrics.read
scope.
To learn how to obtain and use it, see Tokens and authentication.
The ID of the source unit.
The value to be converted.
The ID of the target unit.
If not set, the request finds an appropriate target unit automatically, based on the specified number format.
The preferred number format of the target value. You can specify the following formats:
binary
decimal
`Only used if the target unit if not set.
Not found. The requested resource is not found or the query is incorrect.
UnitConversionResult
objectThe result of a unit conversion.
The result of the unit conversion.
The ID of the unit of this conversion result.
{"resultValue": 1,"unitId": "string"}