All Products
Search
Document Center

Web Application Firewall:DescribeThreatEventTopMetric

Last Updated:Jun 09, 2026

Mengkueri lima data deret waktu event keamanan teratas, yang diagregasi berdasarkan objek berbeda dan diurutkan dalam Pesanan menurun.

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.

Parameter permintaan

Parameter

Type

Required

Description

Example

Metric

string

Yes

Data deret waktu yang digunakan untuk statistik. Setiap data deret waktu sesuai dengan objek statistik yang berbeda. Nilai valid:

  • time: Mengagregasi statistik berdasarkan pengatur waktu Serangan dan mengembalikan 5 entri teratas dalam Pesanan menurun.

  • src: Mengagregasi statistik berdasarkan alamat IP sumber permintaan Serangan dan mengembalikan 5 entri teratas dalam Pesanan menurun.

  • target: Mengagregasi statistik berdasarkan URL permintaan Serangan, tidak termasuk kueri string, dan mengembalikan 5 entri teratas dalam Pesanan menurun.

  • type: Mengagregasi statistik berdasarkan Jenis Serangan dan mengembalikan 5 entri teratas dalam Pesanan menurun.

  • tools: Mengagregasi statistik berdasarkan alat Serangan dan mengembalikan 5 entri teratas dalam Pesanan menurun.

Valid values:

  • src :

    src.

  • time :

    pengatur waktu.

  • type :

    type.

  • tools :

    tools.

  • target :

    target.

time

EventId

string

Yes

ID event keamanan.

0b7ab137a065aab7656986***11db

InstanceId

string

Yes

ID Instans Web Application Firewall (WAF).

Catatan

Panggil operasi DescribeInstance untuk mengkueri ID Instans WAF.

waf_elasticity-cn-0xldbqt****

RegionId

string

No

Wilayah tempat Instans WAF berada. Nilai valid:

  • cn-hangzhou: Tiongkok daratan.

  • ap-southeast-1: luar Tiongkok daratan.

cn-hangzhou

ResourceManagerResourceGroupId

string

No

ID kelompok sumber daya Alibaba Cloud.

rg-acfm***q

Elemen respons

Element

Type

Description

Example

object

TopMetrics

array<object>

The list of statistics.

object

The statistics.

Cnt

integer

The number of attacks.

20

Value

string

The attack value. The meaning of this parameter varies based on the value of Metric.

  • If Metric is set to time, this parameter indicates the attack time.

  • If Metric is set to src, this parameter indicates the source IP address of the attack.

  • If Metric is set to target, this parameter indicates the URL of the attack request.

  • If Metric is set to type, this parameter indicates the attack type. For example, dirscan indicates directory scan and webscan indicates web scan. For more information about other attack types, see the description of the detectType parameter for custom regular expression rules (regular_custom) in the CreateDefenseRule operation.

  • If Metric is set to tools, this parameter indicates the attack tool.

115.28.209.212

Country

string

The country where the source IP address of the attack is located.

Catatan

This parameter is returned only when Metric is set to src.

CN

Region

string

The region where the source IP address of the attack is located.

Catatan

This parameter is returned only when Metric is set to src.

cn-hangzhou

RequestId

string

The ID of the request.

12EF3845-CCEB-4B84-AE60-2B49B*****EE5

Contoh

Respons sukses

JSONformat

{
  "TopMetrics": [
    {
      "Cnt": 20,
      "Value": "115.28.209.212",
      "Country": "CN",
      "Region": "cn-hangzhou"
    }
  ],
  "RequestId": "12EF3845-CCEB-4B84-AE60-2B49B*****EE5"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.