All Products
Search
Document Center

Application Real-Time Monitoring Service:QueryAppTopology

Last Updated:Jun 12, 2026

Mengkueri topologi aplikasi.

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

RegionId

string

Yes

ID wilayah.

cn-hangzhou

Pid

string

No

ID aplikasi.

atc889zkcf@d8deedfa9bf****

AppType

string

No

Tipe aplikasi. Tetapkan parameter ini ke XTRACE atau EBPF jika berlaku. Secara default, parameter ini dikosongkan.

TRACE

Type

string

Yes

Tipe kueri topologi.

Valid values:

  • apm_txn :

    Detail aplikasi - topologi panggilan API.

  • apm_app_v2 :

    Detail aplikasi - topologi aplikasi V2.

  • apm_database_v2 :

    Detail aplikasi - topologi panggilan database V2.

  • apm_apps :

    Daftar aplikasi - topologi ringkasan.

  • apm_app :

    Detail aplikasi - topologi aplikasi.

  • apm_txn_v2 :

    Detail aplikasi - topologi panggilan API V2.

  • apm_database :

    Detail aplikasi - topologi panggilan database.

  • apm_apps_v2 :

    Daftar aplikasi - topologi ringkasan V2.

apm_apps_v2

Rpc

string

No

Nama API RPC.

/eventCenter

Db

string

No

Nama domain database.

rm-xxx.mysql.rds.aliyuncs.com:3306

DbName

string

No

Nama database.

orders

StartTime

integer

Yes

Pengatur waktu mulai kueri. Nilai ini adalah timestamp dalam milidetik.

1595568910000

EndTime

integer

Yes

Pengatur waktu akhir kueri. Nilai ini adalah timestamp dalam milidetik.

1671952708499

Filters

object

No

Kondisi filter.

string

No

筛选条件组合。

"rootIp":"127.0.0.1"

Elemen respons

Element

Type

Description

Example

object

Skema Respons.

RequestId

string

ID permintaan.

78901766-3806-4E96-8E47-CFEF59E4****

Success

boolean

Apakah kueri berhasil. Nilai valid:

  • true: Berhasil.

  • false: Gagal.

true

Code

integer

Kode status API. Nilai valid:

  • 2XX: Berhasil.

  • 3XX: Pengalihan.

  • 4XX: Error permintaan.

  • 5XX: Error server.

200

Message

string

Paket error yang dikembalikan jika panggilan gagal.

null

Data

any

Data tanggapan.

"Data": { "nodes": [ { "data": { "duration": 0.2254335260115607, "requests": 1211, "type": "MYSQL", "errors": 0 }, "id": "ggxw4lnjuz@c0507xxxx##MYSQL", "label": "mysql-pod:3306(cart_db)" } ], "edges": [ { "data": { "duration": 0.03333333333333333, "requests": 600, "type": "UNKNOWN", "errors": 0 }, "id": "1974097372", "source": "ggxw4lnjuz@456xxxxx", "target": "ggxw4lnjuz@c0507xxxx" } ] }

Contoh

Respons sukses

JSONformat

{
  "RequestId": "78901766-3806-4E96-8E47-CFEF59E4****",
  "Success": true,
  "Code": 200,
  "Message": "null",
  "Data": "\"Data\": {\n    \"nodes\": [\n      {\n        \"data\": {\n          \"duration\": 0.2254335260115607,\n          \"requests\": 1211,\n          \"type\": \"MYSQL\",\n          \"errors\": 0\n        },\n        \"id\": \"ggxw4lnjuz@c0507xxxx##MYSQL\",\n        \"label\": \"mysql-pod:3306(cart_db)\"\n      }\n    ],\n    \"edges\": [\n      {\n        \"data\": {\n          \"duration\": 0.03333333333333333,\n          \"requests\": 600,\n          \"type\": \"UNKNOWN\",\n          \"errors\": 0\n        },\n        \"id\": \"1974097372\",\n        \"source\": \"ggxw4lnjuz@456xxxxx\",\n        \"target\": \"ggxw4lnjuz@c0507xxxx\"\n      }\n    ]\n  }"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 ParameterMissing You must specify the parameter.
400 ParameterRegionIdMissing You must specify regionId.
400 ParameterTopologyTypeIllegal The specified topologyType is invalid.
400 ParameterTimeStampIllegal The specified timeStamp is invalid.
500 InternalError Internal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries.
403 APINotAuthorize The current user is not authorized to access the interface.
404 AppNotExist The application does not exist.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.