Skip to main content
Skip to main content

UsageCost

Get organization usage costs

This is an experimental feature. Please contact support to enable it.

Returns a grand total and a list of daily, per-entity organization usage cost records for the organization in the queried time period (maximum 31 days). All days in both the request and the response are evaluated based on the UTC timezone.

MethodPath
GET/v1/organizations/{organizationId}/usageCost

Request

Path Params

NameTypeDescription
organizationIduuidID of the requested organization.
from_datedate-timeStart date for the report, e.g. 2024-12-19.
to_datedate-timeEnd date (inclusive) for the report, e.g. 2024-12-20. This date cannot be more than 30 days after from_date (for a maximum queried period of 31 days).

Response

Response Schema

NameTypeDescription
grandTotalCHCnumberGrand total cost of usage in ClickHouse Credits (CHCs).
costs.dataWarehouseIduuidID of the dataWarehouse this entity belongs to (or is).
costs.serviceIduuidID of the service this entity belongs to (or is). Set to null for dataWarehouse entities.
costs.datedateDate of the usage. ISO-8601 date, based on the UTC timezone.
costs.entityTypestringType of the entity.
costs.entityIduuidUnique ID of the entity.
costs.entityNamestringName of the entity.
costs.metrics.storageCHCnumberCost of storage in ClickHouse Credits (CHCs). Applies to dataWarehouse entities.
costs.metrics.backupCHCnumberCost of backup in ClickHouse Credits (CHCs). Applies to dataWarehouse entities.
costs.metrics.computeCHCnumberCost of compute in ClickHouse Credits (CHCs). Applies to service and clickpipe entities.
costs.metrics.dataTransferCHCnumberCost of data transfer in ClickHouse Credits (CHCs). Applies to clickpipe entities.
costs.metrics.publicDataTransferCHCnumberCost of data transfer in ClickHouse Credits (CHCs). Applies to service entities.
costs.metrics.interRegionTier1DataTransferCHCnumberCost of tier1 inter-region data transfer in ClickHouse Credits (CHCs). Applies to service entities.
costs.metrics.interRegionTier2DataTransferCHCnumberCost of tier2 inter-region data transfer in ClickHouse Credits (CHCs). Applies to service entities.
costs.metrics.interRegionTier3DataTransferCHCnumberCost of tier3 inter-region data transfer in ClickHouse Credits (CHCs). Applies to service entities.
costs.metrics.interRegionTier4DataTransferCHCnumberCost of tier4 inter-region data transfer in ClickHouse Credits (CHCs). Applies to service entities.
costs.totalCHCnumberTotal cost of usage in ClickHouse Credits (CHCs) for this entity.
costs.lockedbooleanWhen true, the record is immutable. Unlocked records are subject to change until locked.

Sample response