Overview
Provides an interface to the consumption service.
Version information
Version : 0.9.126 (BETA)
License information
License : Apache 2.0
Terms of service : https://www.cloudera.com/legal/commercial-terms-and-conditions.html
URI scheme
Schemes : HTTPS
Consumes
-
application/json
Produces
-
application/json
Paths
Lists compute usage records.
POST /api/v1/consumption/listComputeUsageRecords
Description
Lists all compute usage records for requested duration.
Parameters
Type | Name | Schema |
---|---|---|
Body |
input |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Expected response to a valid request. |
|
default |
The default response on an error. |
Definitions
ComputeUsageRecord
Record of compute usage values aggregated hourly.
Name | Description | Schema |
---|---|---|
cloudProvider |
Cloud Provider on which cluster is running. |
string |
clusterCrn |
CRN of the cluster. |
string |
clusterName |
Name of the cluster. |
string |
clusterTemplate |
The template with which the cluster is created. |
string |
clusterType |
Type of the cluster. |
string |
environmentCrn |
CRN of the environment. |
string |
environmentName |
Name of the environment. |
string |
grossCharge |
Number of credits consumed by this usage. |
number (double) |
hours |
Total number of hours for which instances were running. |
number (double) |
instanceCount |
Total number of instances in the cluster which were in use. |
integer (int32) |
instanceType |
Type of instance of the cluster. |
string |
listRate |
Rate in credits at which usage is charged for given cluster type, instance type and cloud provider. |
number (double) |
quantity |
Quantity of usage of the cluster. |
number (double) |
quantityType |
Type of usage by the cluster (Eg: INSTANCE_USAGE, COMPUTE_USAGE). |
string |
serviceFeature |
Service Feature of the cluster. |
string |
usageEndTimestamp |
Timestamp of end of the usage. |
string |
usageStartTimestamp |
Timestamp of start of the usage. |
string |
userTags |
The tags assigned to a cluster. The format of this is a map serialized into a string as json. e.g.: "tags": "{"key1":"value1","key2":"value2"}" |
string |
Error
An object returned on an error.
Name | Description | Schema |
---|---|---|
code |
The error code. |
string |
message |
The error message. |
string |
ListComputeUsageRecordsRequest
Request object for ListComputeUsageRecords method.
Name | Description | Schema |
---|---|---|
fromTimestamp |
The beginning timestamp for the search range (inclusive). |
string (date-time) |
pageSize |
The page size. |
integer (int32) |
pageToken |
A token to specify where to start paginating. This is the nextToken from a previously truncated response. |
string |
toTimestamp |
The ending timestamp for the search range (exclusive). |
string (date-time) |
ListComputeUsageRecordsResponse
Response object for ListComputeUsageRecords method.
Name | Description | Schema |
---|---|---|
nextPageToken |
The token to use when requesting the next set of results. If not present, there are no additional results. |
string |
records |
The list of compute usage records in the requested time duration. |
< ComputeUsageRecord > array |