Mengkueri topologi aplikasi.
Coba sekarang
Test
RAM authorization
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_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 |
| Code |
integer |
Kode status API. Nilai valid:
|
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.