Update a custom metric definition
Replaces the definition in full, so an omitted optional field is cleared. Only PUBLIC_API metrics can be updated through the API. API key must have the Configure Eng Intelligence custom metrics permission.
Authorizations
Body
The full replacement state for a custom metric
How Cortex shows the metric's values. The values stay as recorded. type is NUMBER, PERCENTAGE, CURRENCY (US dollars, always shown with cents), or DURATION. decimals is 0 to 6 and is not allowed for CURRENCY or DURATION. inputUnit is the unit the values are recorded in: RATIO (0 to 1) or PERCENT (0 to 100) for PERCENTAGE, and SECONDS, MINUTES, or HOURS for DURATION. Omit displayFormat to show the values as recorded.
Response
The updated custom metric definition
A custom metric defined in the workspace
How Cortex shows the metric's values. The values stay as recorded. type is NUMBER, PERCENTAGE, CURRENCY (US dollars, always shown with cents), or DURATION. decimals is 0 to 6 and is not allowed for CURRENCY or DURATION. inputUnit is the unit the values are recorded in: RATIO (0 to 1) or PERCENT (0 to 100) for PERCENTAGE, and SECONDS, MINUTES, or HOURS for DURATION. Omit displayFormat to show the values as recorded.