All Products
Search
Document Center

Cloud Monitor:DescribeProductsOfActiveMetricRule

Last Updated:Jun 11, 2026

Membuat kueri layanan cloud yang fitur peringatan inisiatifnya diaktifkan.

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

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

cms:DescribeProductsOfActiveMetricRule

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

Tidak ada parameter yang diperlukan.

Elemen respons

Element

Type

Description

Example

object

Tidak ada.

Code

integer

Kode status HTTP.

Catatan

Kode status 200 menunjukkan bahwa permintaan berhasil.

200

Message

string

Pesan error.

The Request is not authorization.

RequestId

string

ID permintaan.

F82E6667-7811-4BA0-842F-5B2DC42BBAAD

Datapoints

string

Informasi tentang layanan yang fitur peringatan inisiatifnya diaktifkan. Layanan dipisahkan dengan koma (,). Nilai yang valid:

  • ECS: Elastic Compute Service (ECS)

  • rds: ApsaraDB RDS

  • slb: Server Load Balancer (SLB)

  • redis_standard: Redis Open-Source Edition (arsitektur standar)

  • redis_sharding: Redis Open-Source Edition (arsitektur cluster)

  • redis_splitrw: Redis Open-Source Edition (arsitektur pemisahan baca/tulis)

  • mongodb: ApsaraDB for MongoDB dengan arsitektur replica set

  • mongodb_sharding: ApsaraDB for MongoDB dengan arsitektur sharded cluster

  • hbase: ApsaraDB for HBase

  • elasticsearch: Elasticsearch

  • opensearch: OpenSearch

ecs,rds

Success

boolean

Menunjukkan apakah permintaan berhasil. Nilai yang valid:

  • true: Permintaan berhasil.

  • false: Permintaan gagal.

true

AllProductInitMetricRuleList

object

AllProductInitMetricRule

array<object>

Informasi tentang layanan yang mengaktifkan peringatan satu-klik.

array<object>

Informasi tentang layanan yang mengaktifkan peringatan satu-klik.

Product

string

The abbreviation of the service name.

ecs

AlertInitConfigList

object

AlertInitConfig

array<object>

The initial alert rules that are generated after one-click alert is enabled for a service.

object

The initial alert rules that are generated after one-click alert is enabled for a service.

MetricName

string

The metric name. For more information, see Appendix 1: Metrics.

cpu_total

EvaluationCount

string

The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.

3

Namespace

string

The namespace of the service. For more information, see Appendix 1: Metrics.

acs_rds_dashboard

Threshold

string

The alert threshold.

90

Statistics

string

The method used to calculate metric values that trigger alerts. For more information, see Appendix 1: Metrics.

Average

Period

string

The aggregation period of monitoring data. Unit: minutes. For more information, see Appendix 1: Metrics.

1m

Level

string

The alert level.

Valid values:

  • INFO

  • WARN

  • CRITICAL

Valid values:

  • INFO :
  • WARN :
  • CRITICAL :

CRITICAL

ComparisonOperator

string

The operator that is used to compare the metric value with the threshold for Warn-level alerts.

Valid values:

  • LessThanThreshold: less than the threshold

  • GreaterThanLastWeek: greater than the metric value at the same time last week

  • LessThanOrEqualToThreshold: less than or equal to the threshold

  • NotEqualToThreshold: does not equal to the threshold

  • GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle

  • GreaterThanYesterday: greater than the metric value at the same time yesterday

  • LessThanYesterday: less than the metric value at the same time yesterday

  • LessThanLastWeek: less than the metric value at the same time last week

  • GreaterThanOrEqualToThreshold: greater than or equal to the threshold

  • GreaterThanThreshold: greater than the threshold

  • LessThanLastPeriod: less than the metric value in the last monitoring cycle

Valid values:

  • LessThanThreshold :
  • GreaterThanLastWeek :
  • LessThanOrEqualToThreshold :
  • NotEqualToThreshold :
  • GreaterThanLastPeriod :
  • GreaterThanYesterday :
  • LessThanYesterday :
  • LessThanLastWeek :
  • GreaterThanOrEqualToThreshold :
  • GreaterThanThreshold :
  • LessThanLastPeriod :

GreaterThanOrEqualToThreshold

Contoh

Respons sukses

JSONformat

{
  "Code": 200,
  "Message": "The Request is not authorization.",
  "RequestId": "F82E6667-7811-4BA0-842F-5B2DC42BBAAD",
  "Datapoints": "ecs,rds",
  "Success": true,
  "AllProductInitMetricRuleList": {
    "AllProductInitMetricRule": [
      {
        "Product": "ecs",
        "AlertInitConfigList": {
          "AlertInitConfig": [
            {
              "MetricName": "cpu_total",
              "EvaluationCount": "3",
              "Namespace": "acs_rds_dashboard",
              "Threshold": "90",
              "Statistics": "Average",
              "Period": "1m",
              "Level": "CRITICAL",
              "ComparisonOperator": "GreaterThanOrEqualToThreshold"
            }
          ]
        }
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidParameter The specified parameter is not valid.
500 InternalError The request processing has failed due to some unknown error.
403 InvalidAuthorization The Request is not authorization.
406 %s %s

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.