Queries the elastic scheduling events of a specified instance within a given time range.
Operation description
Request description
This operation retrieves the list of elastic scaling events for compute groups of a specific instance.
The startTime and endTime parameters specify the time range for the query. The default values are three days ago and the current time, respectively.
The pageSize and pageNumber parameters are used for paging control. The maximum value of pageSize is 100.
If the elasticType parameter is not provided, elastic scaling events of all types are returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:ListWarehouseScheduleEvent |
list |
*Instance
|
None | None |
Request syntax
POST /api/v1/instances/{instanceId}/listWarehouseScheduleEvent HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
hgpost-cn-xxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| startTime |
integer |
No |
The start timestamp in seconds. Default value: three days ago. |
1777257001 |
| endTime |
integer |
No |
The end timestamp in seconds. Default value: the current time. |
1777516201 |
| pageSize |
integer |
No |
The page size. Default value: 30. Maximum value: 100. |
30 |
| pageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| elasticType |
string |
No |
The elastic scaling type, including time-based elastic scaling and automatic elastic scaling. By default, all types are returned. Valid values:
|
timed |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response parameters: |
||
| RequestId |
string |
RequestId |
E16D32D4-DF86-1180-8220-0D39770A5AF9 |
| EventList |
array<object> |
The list of events. |
|
|
object |
The elastic scheduling event information. |
||
| WarehouseName |
string |
The name of the compute group. |
init_warehouse |
| EventName |
string |
The event name. Valid values:
|
AlterWarehouse |
| EventTime |
string |
The time when the event occurred (UTC). |
2024-07-22T09:43:02.638Z |
| Result |
string |
The result. Valid values:
|
success |
| ReservedCpu |
integer |
The number of reserved CPUs, which refers to non-elastic CPUs. |
64 |
| OriginalElasticCpu |
integer |
[Deprecated] This field is deprecated. |
0 |
| ElasticCpu |
integer |
The number of elastic CPUs. |
48 |
| ElasticType |
string |
The elastic scaling type. Valid values:
|
ScaleUp |
| InitClusterCount |
integer |
The number of reserved clusters, which refers to non-elastic clusters. |
2 |
| ClusterCount |
integer |
The number of clusters. |
2 |
| ClusterCpu |
integer |
The cluster specifications. |
32 |
| FailedReason |
string |
The reason for the failure. |
insufficient resource |
| PageSize |
integer |
The page size. Default value: 30. Maximum value: 100. |
30 |
| PageNumber |
integer |
The page number. Default value: 1. |
1 |
| TotalCount |
integer |
The total number of events. |
120 |
Examples
Success response
JSON format
{
"RequestId": "E16D32D4-DF86-1180-8220-0D39770A5AF9",
"EventList": [
{
"WarehouseName": "init_warehouse",
"EventName": "AlterWarehouse",
"EventTime": "2024-07-22T09:43:02.638Z",
"Result": "success",
"ReservedCpu": 64,
"OriginalElasticCpu": 0,
"ElasticCpu": 48,
"ElasticType": "ScaleUp",
"InitClusterCount": 2,
"ClusterCount": 2,
"ClusterCpu": 32,
"FailedReason": "insufficient resource"
}
],
"PageSize": 30,
"PageNumber": 1,
"TotalCount": 120
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.