GetAutoMvUtilityByProject
Summarizes the benefits and average storage usage of automatic materialized views for a specified project within a specified date range.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetAutoMvUtilityByProject |
get |
*Project
|
None | None |
Request syntax
GET /api/v2/projects/{project}/autoMv/utility HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the MaxCompute project. |
example_project |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| from |
string |
Yes |
The start date of the statistical period in the yyyyMMdd format, inclusive. |
20260101 |
| to |
string |
Yes |
The end date of the statistical period in the yyyyMMdd format, inclusive. This date must not be earlier than the start date. |
20260107 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The unique identifier of the API request. Provide this identifier when troubleshooting API call issues. |
0be3e0aa16667684362147582e038f |
| httpCode |
integer |
The HTTP status code of the request. |
200 |
| errorCode |
string |
The error code returned when the request fails. |
InvalidArgument |
| errorMsg |
string |
The error message returned when the request fails. |
The specified parameter is invalid. |
| data |
object |
The benefit summary of automatic materialized views within the specified range. |
|
| count |
integer |
The number of times automatic materialized views are used to accelerate jobs. |
12 |
| savedCu |
number |
The amount of compute resources saved by automatic materialized views, in CU hours. |
23.5 |
| savedCalculation |
number |
The amount of compute data saved. The unit is specified by savedCalculationUnit. |
180 |
| savedCalculationUnit |
string |
The unit of the saved compute data. |
GB |
| savedTime |
number |
The job compute time saved, in seconds. |
4800 |
| savedCalculationPrice |
number |
The compute costs saved. The currency is specified by savedCalculationPriceUnit. |
120 |
| savedCalculationPriceUnit |
string |
The currency of the saved compute costs. |
RMB |
| usedStorage |
number |
The average storage usage during the statistical period. The unit is specified by usedStorageUnit. |
50 |
| usedStorageUnit |
string |
The unit of the average storage usage. |
GB |
| date |
string |
[Deprecated] Do not rely on this field. This field is not populated for range summaries. |
null |
Examples
Success response
JSON format
{
"requestId": "0be3e0aa16667684362147582e038f",
"httpCode": 200,
"errorCode": "InvalidArgument",
"errorMsg": "The specified parameter is invalid.",
"data": {
"count": 12,
"savedCu": 23.5,
"savedCalculation": 180,
"savedCalculationUnit": "GB",
"savedTime": 4800,
"savedCalculationPrice": 120,
"savedCalculationPriceUnit": "RMB",
"usedStorage": 50,
"usedStorageUnit": "GB",
"date": "null"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.