Get charts for the organization. Currently unavailable in self-hosted ECE.
Deprecated
EXPERIMENTAL (it may change in future versions): Retrieves the usage charts for the organization.
Path parameters
-
organization_id
string Required Identifier for the organization
Query parameters
-
from
string A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month.
-
to
string A datetime for the end of the desired range for which to fetch costs. Defaults to the current date.
-
bucketing_strategy
string The desired bucketing strategy for the charts. Defaults to
daily
.Values are
daily
ormonthly
. Default value isdaily
.
Responses
-
200 application/json
The usage charts of an organization.
-
400 application/json
The specified date range is invalid. (code:
costs.invalid_date_range
) -
403 application/json
The current user does not have access to the requested organization. (code:
organization.invalid_access
) -
404 application/json
Organization not found. (code:
organization.not_found
) -
429 application/json
Too many requests. (code:
billing_service.rate_limited
) -
500 application/json
Error fetching the itemized costs for the organization. (code:
billing_service.failed_request
)
curl \
--request GET 'https://{{hostname}}/api/v1/billing/costs/{organization_id}/charts' \
--user "username:password"