All Products
Search
Document Center

Hologres:ListWarehouseScheduleEvent

Last Updated:Jun 10, 2026

Mengambil event penjadwalan elastis untuk instans dan rentang pengatur waktu tertentu.

Deskripsi operasi

Request

  • This API retrieves compute group scaling events for a specific instance ID.

  • The startTime and endTime parameters specify the time range for the query, which defaults to the last three days.

  • The pageSize and pageNumber parameters control pagination. The maximum value for pageSize is 100.

  • If the elasticType parameter is omitted, the API returns scaling events of all types.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

POST /api/v1/instances/{instanceId}/listWarehouseScheduleEvent HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

instanceId

string

Yes

ID instans.

hgpost-cn-xxxx

Parameter permintaan

Parameter

Type

Required

Description

Example

body

object

No

Badan permintaan.

startTime

integer

No

The start timestamp, in seconds. Defaults to three days ago.

1777257001

endTime

integer

No

The end timestamp, in seconds. Defaults to the current time.

1777516201

pageSize

integer

No

The number of entries per page. Default: 30. Maximum: 100.

30

pageNumber

integer

No

The page number. Defaults to 1.

1

elasticType

string

No

The elastic type. If this parameter is omitted, events of all types are returned. Valid values:

Valid values:

  • auto :

    auto elasticity

  • timed :

    timed elasticity

timed

Elemen respons

Element

Type

Description

Example

object

The output parameters.

RequestId

string

The ID of the request.

E16D32D4-DF86-1180-8220-0D39770A5AF9

EventList

array<object>

The event list.

object

WarehouseName

string

The warehouse name.

init_warehouse

EventName

string

The event name.

Valid values:

  • SetWarehouseClusterCount :

    A change in the cluster count of the warehouse.

  • AlterWarehouse :

    A change in the CPU resources of the warehouse.

AlterWarehouse

EventTime

string

The event time (UTC).

2024-07-22T09:43:02.638Z

Result

string

The result of the event.

Valid values:

  • success :

    The event succeeded.

  • failed :

    The event failed.

success

ReservedCpu

integer

The number of reserved CPU cores (non-elastic).

64

OriginalElasticCpu

integer

This field is deprecated.

0

ElasticCpu

integer

The number of elastic CPU cores.

48

ElasticType

string

The elastic type.

Valid values:

  • ScaleDown :

    scheduled scale-down

  • ScaleIn :

    auto scale-in

  • ScaleOut :

    auto scale-out

  • ScaleUp :

    scheduled scale-up

ScaleUp

InitClusterCount

integer

The number of reserved clusters (non-elastic).

2

ClusterCount

integer

The cluster count.

2

ClusterCpu

integer

The cluster specification, measured in CPU cores.

32

FailedReason

string

The failure reason. This parameter is returned only if the value of Result is failed.

insufficient resource

PageSize

integer

The number of entries to return on each page. Default value: 30. Maximum value: 100.

30

PageNumber

integer

The page number. Default value: 1.

1

TotalCount

integer

The total number of events.

120

Contoh

Respons sukses

JSONformat

{
  "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
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.