Retrieves the usage charts for the organization's instance
Retrieves the usage charts for the organization's instance.
Path parameters
-
organization_id
string Required -
instance_id
string Required
Query parameters
-
from
string Required A datetime for the beginning of the desired range.
-
to
string Required A datetime for the end of the desired range.
-
bucketing_strategy
string The desired bucketing strategy for the charts.
Values are
daily
ormonthly
. -
instance_type
string The type of the instances to be returned.
Values are
all
,deployments
, orprojects
.
GET
/api/v2/billing/organizations/{organization_id}/instances/{instance_id}/charts
curl \
--request GET 'https://billing.elastic-cloud.com/api/v2/billing/organizations/{organization_id}/instances/{instance_id}/charts?from=2021-04-21T00%3A00%3A00%2B00%3A00&to=2021-04-21T00%3A00%3A00%2B00%3A00'
Response examples (200)
{
"data": [
{
"timestamp": 42,
"values": [
{
"id": "string",
"name": "string",
"type": "string",
"value": 42.0
}
]
}
]
}