Mendebug system event layanan Alibaba Cloud.
Deskripsi operasi
Tests whether a system event can be triggered as expected. Simulates a system event and verifies the response when the event triggers an alert.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:SendDryRunSystemEvent |
none |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Product |
string |
Yes |
Nama layanan cloud. Catatan
Untuk informasi mengenai layanan Alibaba Cloud yang didukung oleh CloudMonitor, lihat Layanan cloud yang didukung dan system eventnya. |
ecs |
| EventName |
string |
Yes |
Nama system event. Catatan
Untuk informasi lebih lanjut, lihat DescribeSystemEventMetaList. |
Agent_Status_Stopped |
| GroupId |
string |
No |
ID kelompok aplikasi. |
123456 |
| EventContent |
string |
No |
Konten system event. Catatan
Nilai parameter ini adalah objek JSON. Sertakan field product, resourceId, dan regionId dalam objek JSON. |
{"product":"CloudMonitor","resourceId":"acs:ecs:cn-hongkong:173651113438****:instance/{instanceId}","level":"CRITICAL","instanceName":"instanceName","regionId":"cn-hangzhou","name":"Agent_Status_Stopped","content":{"ipGroup":"0.0.0.0,0.0.0.1","tianjimonVersion":"1.2.11"},"status":"stopped"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code. Catatan
The status code 200 indicates that the request was successful. |
200 |
| Message |
string |
The returned message. |
success |
| RequestId |
string |
The request ID. |
486029C9-53E1-44B4-85A8-16A571A043FD |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "success",
"RequestId": "486029C9-53E1-44B4-85A8-16A571A043FD",
"Success": "true"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.