Harness Unit Metric API

Unit Metric resource.

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /ccm/api/unit-metric Get a unit metric's records over time · Get Unit Metric #
Ask an LLM
“What were the values of a unit cost metric, like cost per customer, over the last month?”
“Can I group a unit metric's records by day or month?”
Tell an agent
Get unit metric {metric} records from {start} to {end} in account {account}.
Show unit metric {metric} grouped by {group} between {start} and {end}.
PUT /ccm/api/unit-metric Update a unit metric definition · Update Unit Metric #
Ask an LLM
“How do I change the name or default aggregation of an existing unit metric?”
“Can I push new records into a unit metric I already defined?”
Tell an agent
Update unit metric {metric} to name {name} in account {account}.
Change the default aggregation of existing unit metric {metric} ({name}) to {aggregation}.
POST /ccm/api/unit-metric Create a unit metric · Create Unit Metric #
Ask an LLM
“How do I define a new business unit metric, such as cost per transaction?”
“Can a new unit metric be derived from a data source field instead of uploaded records?”
Tell an agent
Create unit metric {metric} named {name} in account {account}.
Define a new {type} unit metric {metric} called {name} from data source {source}.
DELETE /ccm/api/unit-metric Delete unit metric records or the whole metric · Delete Unit Metric records or the entire metric #
Ask an LLM
“How do I delete a unit metric's records for a certain time range?”
“Can I remove a unit metric definition along with all its records?”
Tell an agent destructive · confirm first
Delete records of unit metric {metric} between {start} and {end} in account {account}.
Completely remove unit metric {metric} and all its records from account {account}.
POST /ccm/api/unit-metric/perspective/{perspectiveId} Query a derived unit metric within a perspective · Get Column Metric for Perspective #
Ask an LLM
“What does a derived unit metric look like when scoped to one cost perspective?”
“Can I add extra filters on top of a perspective's rules when querying a unit metric?”
Tell an agent
Get derived metric {metric} for perspective {perspective} from {start} to {end}.
Query column metric {metric} in perspective {perspective} with extra filter {filter} from {start} to {end}.
GET /ccm/api/unit-metric/list List all unit metrics in an account · List All Unit Metrics #
Ask an LLM
“Which unit metrics have been defined in my cloud cost account?”
“Can I search unit metric definitions by name?”
Tell an agent
List unit metrics in account {account}, page {page} of size {size}.
Find unit metric definitions matching {term}, {size} per page.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/harness:harness-unit-metric-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

harness-unit-metric-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Unit Metric API
  version: '1.0'
  description: The Harness Software Delivery Platform uses OpenAPI Specification v3.0.
  contact:
    name: API Support
    email: contact@harness.io
    url: https://harness.io/
  x-logo:
    url: https://mma.prnewswire.com/media/779232/Harnes_logo_horizontal.jpg?p=facebook
    altText: Harness
  termsOfService: https://harness.io/terms-of-use/
servers:
- url: https://app.harness.io
  description: Harness host URL
- url: https://{vanity}
  description: Vanity URL
  variables:
    vanity:
      default: app.harness.io
security:
- x-api-key: []
tags:


# --- truncated at 32 KB (80 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-unit-metric-api-openapi.yml