Create a Metric
Create a governed business metric
POST
POST /v1/metrics
Create a Metric
Create a metric with its business definition, calculation expression, unit, granularity, and governance relationships.Body Parameters
Metric type:
COUNT, SUM, AVERAGE, RATIO, PERCENTAGE, MIN, MAX, MEDIAN, MODE, STANDARD_DEVIATION, VARIANCE, SIMPLE, CUMULATIVE, DERIVED, CONVERSION, or OTHER.Fully qualified names of related metrics.
POST /v1/metrics
Returns
Returns the created metric with system-generated fields such asid, fullyQualifiedName, version, and href.
Create or Update (PUT)
UsePUT /v1/metrics to upsert a metric. If a metric with the same name exists, OpenMetadata updates it; otherwise, it creates a new metric. The request body is the same as for POST.
Bulk Create or Update
UsePUT /v1/metrics/bulk with an array of create requests. Add ?async=true to process the request asynchronously.