get_cost_by_compartment
Retrieve cost breakdown by compartment for Oracle Cloud Infrastructure tenancies to analyze spending across organizational units.
Instructions
Get cost breakdown by compartment for a tenancy.
Args:
tenant_id: OCID of the tenancy
time_usage_started: Start time in ISO format (YYYY-MM-DD)
time_usage_ended: End time in ISO format (YYYY-MM-DD)
Returns:
List of costs grouped by compartment with total cost per compartment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant_id | Yes | ||
| time_usage_started | Yes | ||
| time_usage_ended | Yes |