Introducing Managed ClickStack: Observability for OpenTelemetry at scale Read more →
Introducing Managed ClickStack: Observability for OpenTelemetry at scale Read more →
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.
curl --request GET \
--url https://api.clickhouse.cloud/v1/organizations/{organizationId}/usageCost \
--header 'Authorization: Basic <encoded-value>'{
"status": 200,
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": {
"grandTotalCHC": 123,
"costs": {
"dataWarehouseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-12-25",
"entityType": "datawarehouse",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityName": "<string>",
"metrics": {
"storageCHC": 123,
"backupCHC": 123,
"computeCHC": 123,
"dataTransferCHC": 123,
"initialLoadCHC": 123,
"publicDataTransferCHC": 123,
"interRegionTier1DataTransferCHC": 123,
"interRegionTier2DataTransferCHC": 123,
"interRegionTier3DataTransferCHC": 123,
"interRegionTier4DataTransferCHC": 123
},
"totalCHC": 123,
"locked": true
}
}
}Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Use key ID and key secret obtained in ClickHouse Cloud console: https://clickhouse.com/docs/cloud/manage/openapi
ID of the requested organization.
Start date for the report, e.g. 2024-12-19.
End 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).
Was this page helpful?
curl --request GET \
--url https://api.clickhouse.cloud/v1/organizations/{organizationId}/usageCost \
--header 'Authorization: Basic <encoded-value>'{
"status": 200,
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": {
"grandTotalCHC": 123,
"costs": {
"dataWarehouseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-12-25",
"entityType": "datawarehouse",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityName": "<string>",
"metrics": {
"storageCHC": 123,
"backupCHC": 123,
"computeCHC": 123,
"dataTransferCHC": 123,
"initialLoadCHC": 123,
"publicDataTransferCHC": 123,
"interRegionTier1DataTransferCHC": 123,
"interRegionTier2DataTransferCHC": 123,
"interRegionTier3DataTransferCHC": 123,
"interRegionTier4DataTransferCHC": 123
},
"totalCHC": 123,
"locked": true
}
}
}