Mengambil statistik tabel dari kluster Database Analitik for MySQL tertentu.
Deskripsi operasi
For more information about table statistics, see Monitoring information.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeTableStatistics |
get |
DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. Catatan
Panggil operasi DescribeDBClusters untuk mengkueri ID kluster. |
am-bp183qgrwywa6**** |
| PageSize |
integer |
No |
Jumlah entri yang akan dikembalikan pada setiap halaman. Nilai valid:
|
30 |
| PageNumber |
integer |
No |
Nomor halaman. Nilai harus berupa bilangan bulat positif. Nilai default: 1. |
1 |
| Order |
string |
No |
Aturan pengurutan untuk hasil yang dikembalikan. Nilai berupa array JSON yang diurutkan berdasarkan urutan elemen dalam array. Setiap elemen terdiri dari
|
[ { "Field":"TableName", "Type":"Asc" } ] |
| RegionId |
string |
No |
ID wilayah. Catatan
Panggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-beijing |
| Keyword |
string |
No |
Kata kunci untuk kueri. Pencarian fuzzy berdasarkan nama tabel didukung. |
you_table_name |
| SchemaName |
string |
No |
Nama database. |
cust_pay_instruction |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The list of information. |
||
| TotalCount |
string |
The total number of entries. |
1 |
| PageSize |
string |
The number of entries on the current page. |
30 |
| RequestId |
string |
The request ID. |
4C4433FF-5D3A-4C3E-A19C-6D93B2****** |
| PageNumber |
string |
The page number. |
1 |
| DBClusterId |
string |
The cluster ID. |
am-**************** |
| Items |
object |
||
| TableStatisticRecords |
array<object> |
The list of table statistics. |
|
|
object |
The details. |
||
| SchemaName |
string |
The database name. |
test_schema |
| TableName |
string |
The table name. |
test_table |
| RowCount |
integer |
The number of rows in the table. |
3 |
| DataSize |
integer |
The data size of the table records, in bytes. Catatan
The data size of table records does not include the data of common indexes and primary key indexes. |
15592 |
| IndexSize |
integer |
The data size of common indexes, in bytes. |
3076 |
| PrimaryKeyIndexSize |
integer |
The data size of primary key indexes, in bytes. |
16340 |
| PartitionCount |
integer |
The number of partitions. |
1 |
| ColdDataSize |
integer |
The total size of cold data, in bytes. Catatan
This parameter is returned only for clusters of kernel version 3.1.3.4 or later. |
0 |
| SpaceRatio |
number |
The tablespace ratio, in percentage. Catatan
Formula: Tablespace ratio = Total data size of the table / Total data size of the instance × 100. |
66.23 |
| TotalSize |
integer |
The total data size, in bytes. Catatan
The total data size is calculated using one of the following formulas: Total data size = Hot data size + Cold data size, or Total data size = Data size of table records + Data size of common indexes + Data size of primary key indexes + Other data size. |
1577 |
| HotDataSize |
integer |
The size of hot data, in bytes. |
1048576 |
| OtherSize |
integer |
The size of other data, in bytes. |
1048576 |
| SchemaNames |
string |
The list of database names. |
['adb_external_tpch_10gb', 'dw_bccb', 'dw_fm', 'dw_test', 'dw_yph'] |
Contoh
Respons sukses
JSONformat
{
"TotalCount": "1",
"PageSize": "30",
"RequestId": "4C4433FF-5D3A-4C3E-A19C-6D93B2******",
"PageNumber": "1",
"DBClusterId": "am-****************",
"Items": {
"TableStatisticRecords": [
{
"SchemaName": "test_schema",
"TableName": "test_table",
"RowCount": 3,
"DataSize": 15592,
"IndexSize": 3076,
"PrimaryKeyIndexSize": 16340,
"PartitionCount": 1,
"ColdDataSize": 0,
"SpaceRatio": 66.23,
"TotalSize": 1577,
"HotDataSize": 1048576,
"OtherSize": 1048576
}
]
},
"SchemaNames": "['adb_external_tpch_10gb', 'dw_bccb', 'dw_fm', 'dw_test', 'dw_yph']"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.