Meminta data performa cluster PolarDB.
Deskripsi operasi
-
Jika frekuensi pemantauan adalah sekali setiap 5 detik:
-
Jika rentang waktu kueri adalah 1 jam atau kurang, granularitas data adalah 5 detik.
-
Jika rentang waktu kueri adalah 1 hari atau kurang, granularitas data adalah 1 menit.
-
Jika rentang waktu kueri adalah 7 hari atau kurang, granularitas data adalah 10 menit.
-
Jika rentang waktu kueri adalah 30 hari atau kurang, granularitas data adalah 1 jam.
-
Jika rentang waktu kueri lebih dari 30 hari, granularitas data adalah 1 hari.
-
-
Jika frekuensi pemantauan adalah sekali setiap 60 detik:
-
Jika rentang waktu kueri adalah 1 hari atau kurang, granularitas data adalah 1 menit.
-
Jika rentang waktu kueri adalah 7 hari atau kurang, granularitas data adalah 10 menit.
-
Jika rentang waktu kueri adalah 30 hari atau kurang, granularitas data adalah 1 jam.
-
Jika rentang waktu kueri lebih dari 30 hari, granularitas data adalah 1 hari.
-
Frekuensi pemantauan default adalah sekali setiap 60 detik. Anda dapat memanggil operasi ModifyDBClusterMonitor untuk mengatur frekuensi menjadi sekali setiap 5 detik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeDBClusterPerformance |
get |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID cluster. |
pc-**************** |
| Type |
string |
No |
Jenis kueri. |
orca |
| Key |
string |
Yes |
Metrik performa yang ingin Anda kueri. Pisahkan beberapa metrik dengan tanda koma (,). Untuk informasi lebih lanjut, lihat Parameter performa. Catatan
Tentukan hingga lima metrik performa. |
PolarDBDiskUsage |
| StartTime |
string |
Yes |
Awal rentang waktu untuk dikueri. Tentukan waktu dalam format |
2020-09-23T01:01Z |
| EndTime |
string |
Yes |
Akhir rentang waktu untuk dikueri. Tentukan waktu dalam format |
2020-09-23T01:00Z |
| Interval |
string |
No |
Tingkat granularitas data performa. Nilai yang valid:
|
60 |
| SubGroupName |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PerformanceKeys |
object |
||
| PerformanceItem |
array<object> |
Daftar data performa cluster. |
|
|
array<object> |
|||
| MetricName |
string |
The name of the performance metric. |
mean_data_size |
| Measurement |
string |
The performance metric. |
PolarDBDiskUsage |
| Points |
object |
||
| PerformanceItemValue |
array<object> |
An array of performance data. |
|
|
object |
|||
| Value |
string |
The value of the monitoring metric. |
42.38 |
| Timestamp |
integer |
The point in time when the metric was collected. The value is a UNIX timestamp. Unit: milliseconds. |
1600822800000 |
| DBNodeId |
string |
The ID of the database cluster node. Catatan
This parameter is not returned when the |
pi-************* |
| DBVersion |
string |
Versi database yang kompatibel. |
8.0 |
| EndTime |
string |
Akhir rentang waktu. Waktu dalam format |
2020-09-23T01:01:00Z |
| RequestId |
string |
ID permintaan. |
35D3E3DA-4650-407A-BFF5-59BFF1****** |
| StartTime |
string |
Awal rentang waktu. Waktu dalam format |
2020-09-23T01:00:00Z |
| DBClusterId |
string |
ID cluster database. |
pc-***************** |
| DBType |
string |
Jenis database yang kompatibel. |
MySQL |
Contoh
Respons sukses
JSONformat
{
"PerformanceKeys": {
"PerformanceItem": [
{
"MetricName": "mean_data_size",
"Measurement": "PolarDBDiskUsage",
"Points": {
"PerformanceItemValue": [
{
"Value": "42.38",
"Timestamp": 1600822800000
}
]
},
"DBNodeId": "pi-*************"
}
]
},
"DBVersion": "8.0",
"EndTime": "2020-09-23T01:01:00Z",
"RequestId": "35D3E3DA-4650-407A-BFF5-59BFF1******",
"StartTime": "2020-09-23T01:00:00Z",
"DBClusterId": "pc-*****************",
"DBType": "MySQL"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidKey.Malformed | The specified parameter Key is not valid. | |
| 400 | InvalidEndTime.Malformed | The specified parameter EndTime is not valid. | |
| 400 | InvalidStartTime.Malformed | The specified parameter StartTime is not valid. | |
| 400 | InvalidParameterCombination | The end time must be greater than the start time. | |
| 400 | InvalidDateRange.Malformed | The Date Range can not more than one month. | |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.