GET
/
v1
/
namespace_recommendations
Namespace Recommendations
curl --request GET \
  --url https://gateway.costgraph.baselinehq.cloud/v1/namespace_recommendations \
  --header 'Authorization: <api-key>'
[
  {
    "APIVersion": "<string>",
    "Cluster": "<string>",
    "ContainerRecommendations": {},
    "CreationTime": "<string>",
    "CurrentSpend": 123,
    "ExpectedUtilisationPercent": {
      "cpu": 123,
      "memory": 123
    },
    "Namespace": "<string>",
    "NewSpend": 123,
    "ResourceQuotaRecommendations": {
      "CPU": {
        "Current": 123,
        "Recommended": 123
      },
      "Memory": {
        "Current": 123,
        "Recommended": 123
      }
    },
    "TotalCPULimits": 123,
    "TotalCPULimitsSavings": 123,
    "TotalCPURequests": 123,
    "TotalCPURequestsSavings": 123,
    "TotalMemoryLimits": 123,
    "TotalMemoryLimitsSavings": 123,
    "TotalMemoryRequests": 123,
    "TotalMemoryRequestsSavings": 123,
    "TotalResourceSavingsAmount": 123
  }
]

Query Parameters

Response

APIVersion
string
API version of the recommendation.
Cluster
string
The name of the Kubernetes cluster.
Namespace
string
The name of the Kubernetes namespace.
CreationTime
string
The creation time of the recommendation.Example: "2023-10-01T00:00:00Z"
CurrentSpend
number
Current spending amount in dollars.
NewSpend
number
Projected spending amount after implementing recommendations.
TotalResourceSavingsAmount
number
Total amount of savings in dollars from implementing recommendations.
ExpectedUtilisationPercent
object
Expected utilization percentages for CPU and memory.
ContainerRecommendations
object
Detailed recommendations for containers within the namespace.
ResourceQuotaRecommendations
object
Recommendations for resource quotas including CPU and memory limits.

Authorizations

Authorization
string
header
required

Bearer token for authentication

Query Parameters

cluster
string

Cluster name

namespace
string

Namespace

start_date
string
required

Start date in RFC3339 format (e.g., 2023-10-01T00:00:00Z)

end_date
string
required

End date in RFC3339 format (e.g :, 2023-10-31T23:59:59Z)

Response

200
application/json

OK

The response is of type object[].