get_cost_trending
Retrieve cost trends for an Ocean cluster across multiple time periods. Compare week-over-week or custom period cost changes, grouped by namespace, to analyze spending patterns.
Instructions
Get cost trends over multiple time periods for an Ocean cluster.
Shows week-over-week or custom period cost changes.
Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) periods: Number of time periods to compare (default: 4) period_days: Days per period (default: 7 for weekly) group_by: Group costs by: namespace (default: namespace). Only 'namespace' is currently supported by the API. account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | Yes | ||
| periods | No | ||
| period_days | No | ||
| group_by | No | namespace | |
| account_id | No | ||
| cloud | No | aws |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |