get_object_cost
Read what one object of the organisation costs - a cluster, a namespace, a stack, an application, a cloud credential or a project - the same projection GET /org/cloud-cost/objects/{kind}/... serves. kind picks the object. cluster, namespace (give namespace) and stack (give stack_name) read one cluster: the selected one, or cluster_id when no cluster is selected (a cluster_id that is not the selected cluster is refused). application (give application_id), credential (give credential_id) and project (give project_id) read every cluster behind the object. Returns, in the organisation's display currency and minor units: monthly_cents (the run rate at the latest snapshot, times the hours in a month), idle_pct (the share of the run rate that is unrequested capacity - requests, not usage; clusters and credentials only), share_of_fleet_pct, confidence, the open cloud waste, trend_30d (cents per UTC day over 30 days) and, per cluster and per namespace, the figures behind it. null is unknown, not zero: priced false carries unpriced_reason, and a day, cluster or namespace nobody metered is null. coverage_incomplete true means monthly_cents is a floor, and each cluster's own coverage_incomplete says which cluster made it one. A namespace marked shared also runs another application and is counted whole. List-price estimates, not the bill. Read-only; use get_namespace_cost_history for a cluster's namespaces over time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | The kind of object: cluster, namespace, stack, application, credential or project. | |
| namespace | No | The Kubernetes namespace, for kind namespace. | |
| cluster_id | No | UUID of the cluster, for kind cluster, namespace or stack. Leave it out when a cluster is selected; one that is not the selected cluster is refused. | |
| project_id | No | UUID of the project, for kind project. list_projects has the ids. | |
| stack_name | No | The stack's name, for kind stack. | |
| credential_id | No | UUID of the cloud credential, for kind credential. | |
| application_id | No | UUID of the application, for kind application. |