Get charts by deployment. Currently unavailable in self-hosted ECE. Deprecated
EXPERIMENTAL (it may change in future versions): Retrieves the usage charts for the given deployment.
Path parameters
-
Identifier for the organization
-
Id of a Deployment
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
-
The usage charts of a deployment.
-
The specified date range is invalid. (code:
costs.invalid_date_range
) -
The current user does not have access to the requested organization. (code:
organization.invalid_access
) -
Organization not found. (code:
organization.not_found
) -
Too many requests. (code:
billing_service.rate_limited
) -
Error fetching the itemized costs for the organization. (code:
billing_service.failed_request
)
curl \
-X GET https://api.elastic-cloud.com/api/v1/billing/costs/{organization_id}/deployments/{deployment_id}/charts
{
"data": [
{
"timestamp": 42,
"values": [
{
"id": "string",
"name": "string",
"value": 42.0
}
]
}
]
}
# Headers
x-cloud-error-codes: costs.invalid_date_range
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
# Headers
x-cloud-error-codes: organization.invalid_access
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
# Headers
x-cloud-error-codes: organization.not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
# Headers
x-cloud-error-codes: billing_service.rate_limited
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
# Headers
x-cloud-error-codes: billing_service.failed_request
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}