{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-cost-resource-collection-schema.json", "title": "CostResourceCollection", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/harness-costs-api-openapi.yml#/components/schemas/CostResourceCollection", "type": "array", "items": { "$ref": "#/$defs/HarnessIacmCostsresources" }, "$defs": { "HarnessIacmCostsresources": { "type": "object", "properties": { "account": { "type": "string", "description": "Account is the internal customer account ID.", "minLength": 1, "maxLength": 128 }, "activity_type": { "type": "string", "description": "The type of activity that generated this cost (e.g. apply, plan, destroy)" }, "cost": { "type": "string", "description": "The cost associated to the execution metadata" }, "created": { "type": "integer", "description": "The epoch time for the cost", "format": "int64" }, "currency": { "type": "string", "description": "The currency for the cost" }, "org": { "type": "string", "description": "Org is the organisation identifier.", "minLength": 1, "maxLength": 128 }, "pipeline": { "type": "string", "description": "The unique identifier for the associated pipeline" }, "pipeline_execution_id": { "type": "string", "description": "The unique identifier for the associated pipeline execution" }, "pipeline_stage_id": { "type": "string", "description": "The unique identifier for the associated pipeline stage" }, "project": { "type": "string", "description": "Project is the project identifier.", "minLength": 1, "maxLength": 128 }, "workspace": { "type": "string", "description": "The unique identifier for the associated workspace" } }, "description": "CostResource is the representation for a single workspace of the cost and metadata that ties the cost to an execution.", "required": [ "account", "org", "project", "pipeline_execution_id", "pipeline_stage_id", "workspace", "pipeline", "workspace_id", "workspace_name", "currency", "cost", "created" ] } } }