Mengkueri event penerapan terbaru untuk layanan tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:DescribeServiceEvent |
get |
*Service
|
None | None |
Sintaks permintaan
GET /api/v2/services/{ClusterId}/{ServiceName}/events HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah layanan. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan. Untuk mendapatkan nama ini, lihat ListServices. |
foo |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageNum |
string |
No |
Nomor halaman yang dikembalikan. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah event yang dikembalikan per halaman. Nilai default: 100. |
20 |
| StartTime |
string |
No |
Pengatur waktu mulai rentang kueri, dalam UTC. Nilai default adalah 7 hari yang lalu. |
2006-01-02 15:04:05 |
| EndTime |
string |
No |
Pengatur waktu akhir rentang kueri, dalam UTC. Nilai default adalah pengatur waktu saat ini. |
2006-01-02 15:04:05 |
| EventType |
string |
No |
Tipe event. Nilai valid:
Valid values:
|
Normal |
| InstanceName |
string |
No |
Nama instans layanan. Untuk mendapatkan nama ini, lihat ListServiceInstances. |
echo-test-784xxxx85d-hhnd8 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
3D491C94-6239-5318-B4B4-799D859*** |
| Events |
array<object> |
The list of events. |
|
|
object |
The event details. |
||
| Type |
string |
The event type. Valid values:
|
Normal |
| Reason |
string |
The reason for the event, which indicates a change in the service status. |
Updating |
| Message |
string |
The event message, which is a JSON-formatted string. |
{\"versionId\":1,\"message\":\"Stage scale complete\",\"availableInstance\":1,\"unavailableInstance\":0} |
| Time |
string |
The time when the event occurred, in UTC. |
2022-04-09 06:30:00 |
| Resource |
string |
The resource type. Valid values:
|
Service |
| TotalCount |
integer |
The total count of events. |
29 |
| TotalPageNum |
integer |
The total number of pages. |
12 |
| PageNum |
integer |
The current page number. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "3D491C94-6239-5318-B4B4-799D859***",
"Events": [
{
"Type": "Normal",
"Reason": "Updating",
"Message": "{\\\"versionId\\\":1,\\\"message\\\":\\\"Stage scale complete\\\",\\\"availableInstance\\\":1,\\\"unavailableInstance\\\":0}",
"Time": "2022-04-09 06:30:00",
"Resource": "Service"
}
],
"TotalCount": 29,
"TotalPageNum": 12,
"PageNum": 1
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.