Retrieves the usage charts for the organization
Retrieves the usage charts for the organization.
Query parameters
-
A datetime for the beginning of the desired range.
-
A datetime for the end of the desired range.
-
bucketing_strategy string
The desired bucketing strategy for the charts.
Values are
daily
ormonthly
.
GET
/api/v2/billing/organizations/{organization_id}/charts
curl \
-X GET https://billing.elastic-cloud.com/api/v2/billing/organizations/{organization_id}/charts?from=2021-04-21T00%3A00%3A00%2B00%3A00&to=2021-04-21T00%3A00%3A00%2B00%3A00 \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"timestamp": 42,
"values": [
{
"id": "string",
"name": "string",
"type": "string",
"value": 42.0
}
]
}
]
}