All Products
Search
Document Center

Hologres:ListWarehouseScheduleEvent

Last Updated:Oct 21, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

hologram:ListWarehouseScheduleEvent

list

*Instance

acs:hologram:{#regionId}:{#accountId}:instance/{#InstanceId}

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:

  • auto :

    Automatic elastic scaling.

  • timed :

    Time-based elastic scaling.

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:

  • SetWarehouseClusterCount :

    Changes to the number of clusters in the compute group.

  • AlterWarehouse :

    Changes to the CPU resources of the compute group.

AlterWarehouse

EventTime

string

The time when the event occurred (UTC).

2024-07-22T09:43:02.638Z

Result

string

The result.

Valid values:

  • success :

    Success.

  • failed :

    Failure.

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:

  • ScaleDown :

    Time-based elastic scale-down.

  • ScaleIn :

    Automatic elastic scale-in.

  • ScaleOut :

    Automatic elastic scale-out.

  • ScaleUp :

    Time-based elastic scale-up.

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.