Get charts by deployment. Currently unavailable in self-hosted ECE.

Auth Deprecated

EXPERIMENTAL (it may change in future versions): Retrieves the usage charts for the given deployment.

Path parameters

organization_id string required

Identifier for the organization

deployment_id string required

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 enum · default: daily

The desired bucketing strategy for the charts. Defaults to daily.

Values: daily monthly

Responses

The usage charts of a deployment.

application/json
data object[] required

The list of chart item

timestamp integer · format: int64 required

Axis X position

values object[] required

the collection of values to plot the chart item

id string required

The id of chart item value

name string required

The name of the chart item value

value number · format: double required

The actual value of the chart item value

The specified date range is invalid. (code: costs.invalid_date_range)

application/json
errors object[] required

A list of errors that occurred in the failing request

code string required

A structured code representing the error type that occurred

message string required

A human readable message describing the error that occurred

fields string[]

If the error can be tied to a specific field or fields in the user request, this lists those fields

Response headers

x-cloud-error-codes enum

The error codes associated with the response

The current user does not have access to the requested organization. (code: organization.invalid_access)

application/json
errors object[] required

A list of errors that occurred in the failing request

code string required

A structured code representing the error type that occurred

message string required

A human readable message describing the error that occurred

fields string[]

If the error can be tied to a specific field or fields in the user request, this lists those fields

Response headers

x-cloud-error-codes enum

The error codes associated with the response

Organization not found. (code: organization.not_found)

application/json
errors object[] required

A list of errors that occurred in the failing request

code string required

A structured code representing the error type that occurred

message string required

A human readable message describing the error that occurred

fields string[]

If the error can be tied to a specific field or fields in the user request, this lists those fields

Response headers

x-cloud-error-codes enum

The error codes associated with the response

Too many requests. (code: billing_service.rate_limited)

application/json
errors object[] required

A list of errors that occurred in the failing request

code string required

A structured code representing the error type that occurred

message string required

A human readable message describing the error that occurred

fields string[]

If the error can be tied to a specific field or fields in the user request, this lists those fields

Response headers

x-cloud-error-codes enum

The error codes associated with the response

Error fetching the itemized costs for the organization. (code: billing_service.failed_request)

application/json
errors object[] required

A list of errors that occurred in the failing request

code string required

A structured code representing the error type that occurred

message string required

A human readable message describing the error that occurred

fields string[]

If the error can be tied to a specific field or fields in the user request, this lists those fields

Response headers

x-cloud-error-codes enum

The error codes associated with the response