Skip to main content
PUT
PUT /v1/metrics

Update a Metric

Create a metric or update it if it already exists, using PUT /v1/metrics with the full request body. Send the complete definition, not just the fields you want to change. To change only some fields, use PATCH with a JSON Patch array and the application/json-patch+json content type, as shown in the PATCH examples below.

Body Parameters

string
required
Globally unique name of the metric.
string
Human-readable display name for the metric.
string
Description of what the metric measures and how it should be used, in Markdown format.
object
Expression used to calculate the metric.
string
Metric type: COUNT, SUM, AVERAGE, RATIO, PERCENTAGE, MIN, MAX, MEDIAN, MODE, STANDARD_DEVIATION, VARIANCE, SIMPLE, CUMULATIVE, DERIVED, CONVERSION, or OTHER.
string
Unit: COUNT, DOLLARS, PERCENTAGE, TIMESTAMP, SIZE, REQUESTS, EVENTS, TRANSACTIONS, or OTHER.
string
Custom unit name when unitOfMeasurement is OTHER.
string
Time granularity: SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, or YEAR.
array
Dimensions that can be used to group or slice the metric.
array
Measures used by the metric.
array
Filters applied when calculating the metric.
Fully qualified names of related metrics.
array
Entity references for data assets this metric is calculated from or applies to.
array
User or team references that own the metric.
array
User or team references responsible for reviewing the metric.
array
Classification tags to apply to the metric.
array
Fully qualified names of domains the metric belongs to.
array
Fully qualified names of data products that include the metric.
object
Custom property values defined by your organization’s metadata schema.
string
default:"user"
Entity provider: system, user, or automation.
PUT /v1/metrics

Returns

Returns the updated metric with an incremented version.
Fetch relationship fields before modifying them with an SDK. This gives the SDK a complete baseline from which to calculate additions and removals.

Error Handling