Mengkueri informasi pemantauan tentang kelompok sumber daya dalam kluster Database Analitik for MySQL.
Deskripsi operasi
You can also view the monitoring information about resource groups within an AnalyticDB for MySQL cluster in elastic mode for Cluster Edition in the form of graphs in the console. For more information, see View monitoring information.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeDBClusterResourcePoolPerformance |
get |
DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. Catatan
Anda dapat memanggil operasi DescribeDBClusters untuk mengkueri informasi tentang semua kluster Database Analitik for MySQL dalam suatu wilayah, termasuk ID kluster. |
am-**************** |
| Key |
string |
No |
Data deret waktu kelompok sumber daya. Anda dapat memasukkan beberapa data deret waktu sekaligus untuk mengkueri informasi pemantauan. Pisahkan beberapa data deret waktu dengan koma (,). Nilai valid:
Catatan
|
AnalyticDB_RP_CPU |
| ResourcePools |
string |
No |
Nama kelompok sumber daya yang ingin Anda kueri. Anda dapat memasukkan beberapa nama kelompok sumber daya. Pisahkan beberapa nama dengan koma (,). Catatan
|
TEST_POOL |
| StartTime |
string |
Yes |
Awal Rentang Waktu untuk memantau kelompok sumber daya. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mmZ. Waktu harus dalam UTC. Catatan
Anda hanya dapat melihat informasi pemantauan tentang kelompok sumber daya dalam dua hari terakhir. |
2021-06-10T07:00Z |
| EndTime |
string |
Yes |
Akhir Rentang Waktu untuk memantau kelompok sumber daya. Waktu akhir harus lebih lambat daripada waktu mulai. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mmZ. Waktu harus dalam UTC. |
2021-06-10T07:01Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| EndTime |
string |
The end of the time range for monitoring the resource group. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2021-06-10T07:01:00Z |
| RequestId |
string |
The request ID. |
C7EDB8E4-9769-4233-88C7-DCA4C9****** |
| StartTime |
string |
The beginning of the time range for monitoring the resource group. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2021-06-10T07:00:00 |
| DBClusterId |
string |
The cluster ID. |
am-**************** |
| Performances |
array<object> |
The queried monitoring information about the metrics. |
|
|
array<object> |
The queried monitoring information about the metric. |
||
| Key |
string |
The metric of the resource group. |
AnalyticDB_RP_CPU |
| Unit |
string |
The unit of the metric value. |
% |
| ResourcePoolPerformances |
array<object> |
The queried monitoring information about the resource groups. |
|
|
array<object> |
The queried monitoring information about the resource group. |
||
| ResourcePoolName |
string |
The name of the resource group. |
test_pool |
| ResourcePoolSeries |
array<object> |
The sequential monitoring information about the resource groups. |
|
|
object |
The sequential monitoring information about the resource group. |
||
| Values |
array |
The value of the metric. |
|
|
string |
The values of the metric at different points in time. |
["2021-06-10T07:00:22.601Z","0.0000"],["2021-06-10T07:00:52.62Z","0.0312"] |
|
| Name |
string |
The name of the metric. |
cpu |
Contoh
Respons sukses
JSONformat
{
"EndTime": "2021-06-10T07:01:00Z",
"RequestId": "C7EDB8E4-9769-4233-88C7-DCA4C9******",
"StartTime": "2021-06-10T07:00:00",
"DBClusterId": "am-****************",
"Performances": [
{
"Key": "AnalyticDB_RP_CPU",
"Unit": "%",
"ResourcePoolPerformances": [
{
"ResourcePoolName": "test_pool",
"ResourcePoolSeries": [
{
"Values": [
"[\"2021-06-10T07:00:22.601Z\",\"0.0000\"],[\"2021-06-10T07:00:52.62Z\",\"0.0312\"]"
],
"Name": "cpu"
}
]
}
]
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | The specified StartTime is invalid. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.