All Products
Search
Document Center

Application Real-Time Monitoring Service:ListAlertEvents

Last Updated:Jun 12, 2026

Mengkueri riwayat event peringatan.

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

AlertName

string

No

Nama peringatan.

测试触发的告警

StartTime

string

No

Waktu mulai untuk mengkueri riwayat pengiriman peringatan. Format: YYYY-MM-DD HH:mm:ss.

2021-12-19 00:00:00

EndTime

string

No

Waktu berakhir untuk mengkueri riwayat pengiriman peringatan. Format: YYYY-MM-DD HH:mm:ss.

2021-12-22 23:59:59

Page

integer

Yes

Nomor halaman.

1

Size

integer

Yes

Jumlah entri per halaman.

20

MatchingConditions

string

No

Daftar aturan pencocokan event.

[ { "value": "ARMS_NOTIFICATION", "key": "clustername", "operator": "eq" } ] },{ "matchingConditions": [ { "value": "test", "key": "alertname", "operator": "eq" } ]

Status

string

No

Status event. Nilai valid:

  • Active: Event sedang terjadi.

  • Silenced: Event dibisukan.

  • Resolved: Event terselesaikan.

Active

ShowNotificationPolicies

boolean

No

Apakah akan menampilkan Kebijakan Notifikasi yang terkait.

false

Elemen respons

Element

Type

Description

Example

object

Skema tanggapan.

RequestId

string

ID permintaan.

2FC13182-B9AF-4E6B-BE51-72669B7C****

PageBean

object

Struktur tanggapan.

Total

integer

Jumlah total entri.

24

Page

integer

Nomor halaman.

1

Size

integer

Jumlah entri per halaman.

20

Events

array<object>

Kelompok riwayat event peringatan.

array<object>

Daftar event peringatan.

AlertName

string

The name of the alert.

测试触发的告警

Severity

string

The severity level of the alert. Valid values:

  • critical: P1

  • error: P2

  • warning: P3

  • page: P4

  • default: P6

critical

Status

string

The status of the alert event. Valid values:

  • Active

  • Silenced

  • Resolved

Active

StartTime

string

The start time.

2021-12-20 17:42:16

EndTime

string

The end time.

2021-12-20 17:42:16

ReceiveTime

string

The time when the alert event was received.

2021-12-20 17:42:16

IntegrationName

string

The name of the alert integration.

自定义集成

IntegrationType

string

The type of the alert integration.

CUSTOM

GeneratorURL

string

The URL of the alert event.

https://xxx.xx/

Description

string

The description of the alert event.

测试

Annotations

string

The annotations.

[{\"Name\":\"annotation-a\",\"Value\":\"annotation a value\"}]

Labels

string

The tags.

[{\"name\":\"severity\",\"value\":\"error\"}]

Alarms

array<object>

The associated alerts.

object

The information about the alert.

AlarmId

integer

The ID of the alert.

77444

AlarmName

string

The name of the alert.

测试触发的告警

State

integer

The status of the alert. Valid values:

  • 0: The alert is pending.

  • 1: The alert is being handled.

  • 2: The alert is cleared.

0

CreateTime

string

The time when the alert was created.

2021-12-20 07:10:18

HandlerName

string

The user who handled the alert.

张三

NotificationPolicies

array<object>

The associated notification policies.

object

The notification policies.

Id

integer

The ID of the notification policy.

646093

Name

string

The name of the notification policy.

P1告警通知策略

TriggerCount

integer

The number of times the event is triggered.

10

Contoh

Respons sukses

JSONformat

{
  "RequestId": "2FC13182-B9AF-4E6B-BE51-72669B7C****",
  "PageBean": {
    "Total": 24,
    "Page": 1,
    "Size": 20,
    "Events": [
      {
        "AlertName": "测试触发的告警",
        "Severity": "critical",
        "Status": "Active",
        "StartTime": "2021-12-20 17:42:16",
        "EndTime": "2021-12-20 17:42:16",
        "ReceiveTime": "2021-12-20 17:42:16",
        "IntegrationName": "自定义集成",
        "IntegrationType": "CUSTOM",
        "GeneratorURL": "https://xxx.xx/",
        "Description": "测试",
        "Annotations": "[{\\\"Name\\\":\\\"annotation-a\\\",\\\"Value\\\":\\\"annotation a value\\\"}]",
        "Labels": "[{\\\"name\\\":\\\"severity\\\",\\\"value\\\":\\\"error\\\"}]",
        "Alarms": [
          {
            "AlarmId": 77444,
            "AlarmName": "测试触发的告警",
            "State": 0,
            "CreateTime": "2021-12-20 07:10:18"
          }
        ],
        "HandlerName": "张三",
        "NotificationPolicies": [
          {
            "Id": 646093,
            "Name": "P1告警通知策略"
          }
        ],
        "TriggerCount": 10
      }
    ]
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.