Kubernetes Cost Allocation
Create Kubernetes Cost Allocation
Endpoint to create a new Kubernetes Cost Allocation
post/kubernetes-cost-allocation
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"kubernetesClusterId": "123e4567-e89b-12d3-a456-426614174000",
"clusterName": "example text",
"windowStart": "2026-01-01T00:00:00.000Z",
"windowEnd": "2026-01-01T00:00:00.000Z"
}
}Response
Created successfully
Example response
{
"data": {
"projectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"kubernetesClusterId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"clusterName": "Example text value",
"k8sClusterEntityKey": "Example text value",
"windowStart": "example_value",
"windowEnd": "example_value",
"namespace": "Example text value",
"controllerKind": "Example text value",
"controllerName": "Example text value",
"podName": "Example text value",
"containerName": "Example text value",
"nodeName": "Example text value",
"providerId": "Example text value",
"labels": "example_value",
"labelKeys": [
"item1",
"item2",
"item3"
],
"cpuCoreHours": 123.45,
"cpuCoreRequestAverage": 123.45,
"cpuCoreUsageAverage": 123.45,
"cpuCoreLimitAverage": 123.45,
"cpuCost": 123.45,
"gpuHours": 123.45,
"gpuCost": 123.45,
"ramByteHours": 123.45,
"ramBytesRequestAverage": 123.45,
"ramBytesUsageAverage": 123.45,
"ramBytesLimitAverage": 123.45,
"ramBytesUsageMax": 123.45,
"ramCost": 123.45,
"pvByteHours": 123.45,
"pvCost": 123.45,
"networkCost": 123.45,
"loadBalancerCost": 123.45,
"sharedCost": 123.45,
"externalCost": 123.45,
"totalCost": 123.45,
"cpuEfficiency": 123.45,
"ramEfficiency": 123.45,
"totalEfficiency": 123.45,
"currency": "Example text value",
"shipmentId": "Example text value",
"shipmentChunk": 42
}
}Changes
No recorded changes to this operation across all 1 revision of this API.