Membuat kueri jumlah kemunculan peristiwa kustom selama setiap interval dalam suatu rentang waktu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DescribeCustomEventHistogram |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
Nama peristiwa. |
BucketIngressBandwidth |
| Level |
string |
No |
Tingkat keparahan peristiwa. Nilai yang valid:
|
CRITICAL |
| EventId |
string |
No |
ID peristiwa. |
123 |
| GroupId |
string |
No |
ID grup aplikasi. |
12345 |
| SearchKeywords |
string |
No |
Kata kunci yang digunakan untuk mencari peristiwa.
|
cms |
| StartTime |
string |
No |
Awal dari rentang waktu yang akan dibuat kueri. Nilai ini adalah stempel waktu UNIX yang mewakili jumlah milidetik yang telah berlalu sejak 1 Januari 1970, 00:00:00 UTC. |
1552209685596 |
| EndTime |
string |
No |
Akhir dari rentang waktu yang akan dibuat kueri. Nilai ini adalah stempel waktu UNIX yang mewakili jumlah milidetik yang telah berlalu sejak 1 Januari 1970, 00:00:00 UTC. |
1552220485596 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
Kode status. Catatan
Kode status 200 menunjukkan bahwa permintaan berhasil. |
200 |
| Message |
string |
Pesan yang dikembalikan. Jika permintaan berhasil, pesan keberhasilan akan dikembalikan. Jika permintaan gagal, pesan kesalahan akan dikembalikan. |
success |
| RequestId |
string |
ID permintaan. |
486029C9-53E1-44B4-85A8-16A571A043FD |
| Success |
string |
Menunjukkan apakah permintaan berhasil. Nilai yang valid: true dan false. |
true |
| EventHistograms |
object |
||
| EventHistogram |
array<object> |
Informasi tentang jumlah kemunculan peristiwa kustom selama setiap interval dari rentang waktu yang ditentukan. |
|
|
object |
|||
| EndTime |
integer |
The end time. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1552226750000 |
| StartTime |
integer |
The start time. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1552226740000 |
| Count |
integer |
The information about the number of times that the custom event occurred during an interval of the specified time period. |
3 |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "success",
"RequestId": "486029C9-53E1-44B4-85A8-16A571A043FD",
"Success": "true",
"EventHistograms": {
"EventHistogram": [
{
"EndTime": 1552226750000,
"StartTime": 1552226740000,
"Count": 3
}
]
}
}
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.