# Unit Metric

Unit Metric resource.

## Get Unit Metric

 - [GET /ccm/api/unit-metric](https://apidocs.harness.io/unit-metric/getunitmetric.md): Get a Unit Metric by identifier with records for the specified time range.

## Update Unit Metric

 - [PUT /ccm/api/unit-metric](https://apidocs.harness.io/unit-metric/updateunitmetric.md): Update an existing Unit Metric.

## Create Unit Metric

 - [POST /ccm/api/unit-metric](https://apidocs.harness.io/unit-metric/createunitmetric.md): Create a Unit Metric.

## Delete Unit Metric records or the entire metric.

 - [DELETE /ccm/api/unit-metric](https://apidocs.harness.io/unit-metric/deleteunitmetric.md): Delete Unit Metric records within a specified time range, or pass deleteCompleteMetric=true to remove the metric definition along with all of its records (startTime/endTime are ignored in that case). A complete delete is rejected when the metric is still referenced by any Perspective.

## Get Column Metric for Perspective

 - [POST /ccm/api/unit-metric/perspective/{perspectiveId}](https://apidocs.harness.io/unit-metric/getcolumnunitmetricforperspective.md): Query a DERIVED-type unit metric with perspective filters applied, optionally with additional filters on top of the perspective's saved rules.

## List All Unit Metrics

 - [GET /ccm/api/unit-metric/list](https://apidocs.harness.io/unit-metric/listallunitmetrics.md): Get all Unit Metrics for an account (metadata only, no records).

