Performs statistics on all jobs that are complete on a specified day and obtains the total resource usage of each job executor on a daily basis.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /api/v1/jobs/resourceUsage
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
date | string | Yes | The date that is accurate to the day part for the query. The date must be in the yyyy-MM-dd format. | 2023-05-15 |
jobOwnerList | array | No | The list of job executors. | |
string | No | The list of job executors. | ALIYUN$xxx@test.aliyunid.com | |
quotaNicknameList | array | No | The list of nicknames of quotas that are used by jobs. | |
string | No | The list of nicknames of quotas that are used by jobs. | my_quota | |
pageNumber | long | No | The page number. | 1 |
pageSize | long | No | The number of entries per page. Default value: 10. Maximum value: 100. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"requestId": "0b57ff7616612271051086500ea3ce",
"httpCode": 200,
"errorCode": "success",
"errorMsg": "0A3B1E82006A23A918C70905BF08AEC7",
"data": {
"jobResourceUsageList": [
{
"date": "2023-05-09",
"jobOwner": "ALIYUN$xxx@test.aliyunid.com",
"quotaNickname": "my_quota",
"cuUsage": 1185100,
"memoryUsage": 15169536
}
],
"totalCount": 64,
"pageNumber": 2,
"pageSize": 10
}
}
Error codes
For a list of error codes, visit the Service error codes.