Get Cost Breakdown
GET/dashboard/:cluster_type/cost-breakdown/:cluster_id
Retrieve a detailed cost breakdown for a specified cluster type and ID within a defined date range.
Request
Path Parameters
Type of the cluster (eks, asg)
Query Parameters
Default value: 2024-09-25
Start date for the cost report (format: YYYY-MM-DD). Defaults to 30 days ago.
Default value: 2024-10-25
End date for the cost report (format: YYYY-MM-DD). Defaults to today.
Header Parameters
API key for authentication
Responses
- 200
- 422
Successfully retrieved the cost breakdown.
- application/json
- Schema
- Example (from schema)
Schema
Total cost associated with CPU usage.
Total cost associated with GPU usage.
Total cost associated with memory usage.
Total cost associated with storage.
Total cost associated with network usage.
Total cost associated with control plane resources.
Total cost associated with extended support options.
{
"cpu": 0,
"gpu": 0,
"memory": 0,
"storage": 0,
"network": 0,
"control_plane": 0,
"extended_support": 0
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}