tccli 3.0.1237.1__py2.py3-none-any.whl → 3.0.1239.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/aca/__init__.py +4 -0
  4. tccli/services/aca/aca_client.py +578 -0
  5. tccli/services/aca/v20210323/api.json +3715 -0
  6. tccli/services/aca/v20210323/examples.json +69 -0
  7. tccli/services/aiart/v20221229/api.json +18 -9
  8. tccli/services/aiart/v20221229/examples.json +2 -2
  9. tccli/services/apm/v20210622/api.json +10 -7
  10. tccli/services/batch/v20170312/api.json +641 -566
  11. tccli/services/batch/v20170312/examples.json +7 -7
  12. tccli/services/bi/v20220105/api.json +9 -0
  13. tccli/services/bpaas/v20181217/examples.json +1 -1
  14. tccli/services/cam/v20190116/api.json +32 -30
  15. tccli/services/cam/v20190116/examples.json +4 -4
  16. tccli/services/ccc/v20200210/api.json +31 -1
  17. tccli/services/ccc/v20200210/examples.json +1 -1
  18. tccli/services/cdb/v20170320/api.json +944 -856
  19. tccli/services/cdb/v20170320/examples.json +47 -47
  20. tccli/services/cdwch/v20200915/api.json +6 -6
  21. tccli/services/cdwdoris/v20211228/api.json +32 -12
  22. tccli/services/cdwdoris/v20211228/examples.json +1 -1
  23. tccli/services/cfg/v20210820/api.json +8 -13
  24. tccli/services/cfg/v20210820/examples.json +1 -1
  25. tccli/services/cfs/v20190719/api.json +84 -84
  26. tccli/services/cfs/v20190719/examples.json +6 -6
  27. tccli/services/chdfs/v20201112/api.json +113 -95
  28. tccli/services/chdfs/v20201112/examples.json +16 -16
  29. tccli/services/clb/v20180317/api.json +186 -164
  30. tccli/services/cloudapp/v20220530/api.json +1 -1
  31. tccli/services/cloudapp/v20220530/examples.json +3 -3
  32. tccli/services/cloudaudit/v20190319/api.json +21 -17
  33. tccli/services/cloudaudit/v20190319/examples.json +3 -3
  34. tccli/services/cls/v20201016/api.json +21 -21
  35. tccli/services/cls/v20201016/examples.json +1 -1
  36. tccli/services/config/v20220802/api.json +2 -0
  37. tccli/services/config/v20220802/examples.json +2 -2
  38. tccli/services/cynosdb/v20190107/api.json +370 -365
  39. tccli/services/cynosdb/v20190107/examples.json +39 -39
  40. tccli/services/dbbrain/v20191016/api.json +206 -188
  41. tccli/services/dbbrain/v20191016/examples.json +10 -10
  42. tccli/services/dbbrain/v20210527/api.json +274 -267
  43. tccli/services/dbbrain/v20210527/examples.json +25 -25
  44. tccli/services/dc/v20180410/api.json +101 -41
  45. tccli/services/dc/v20180410/examples.json +5 -5
  46. tccli/services/dcdb/v20180411/api.json +390 -387
  47. tccli/services/dcdb/v20180411/examples.json +14 -14
  48. tccli/services/dlc/v20210125/api.json +162 -7
  49. tccli/services/dlc/v20210125/examples.json +1 -1
  50. tccli/services/domain/v20180808/api.json +37 -37
  51. tccli/services/domain/v20180808/examples.json +16 -10
  52. tccli/services/dsgc/v20190723/api.json +1796 -1623
  53. tccli/services/dsgc/v20190723/examples.json +217 -211
  54. tccli/services/dts/v20180330/api.json +152 -115
  55. tccli/services/dts/v20180330/examples.json +4 -4
  56. tccli/services/dts/v20211206/api.json +83 -72
  57. tccli/services/dts/v20211206/examples.json +5 -5
  58. tccli/services/eb/v20210416/api.json +2 -2
  59. tccli/services/eb/v20210416/examples.json +2 -2
  60. tccli/services/ecm/v20190719/api.json +273 -230
  61. tccli/services/ecm/v20190719/examples.json +21 -21
  62. tccli/services/emr/v20190103/api.json +80 -20
  63. tccli/services/ess/ess_client.py +61 -8
  64. tccli/services/ess/v20201111/api.json +287 -39
  65. tccli/services/ess/v20201111/examples.json +11 -3
  66. tccli/services/essbasic/essbasic_client.py +167 -8
  67. tccli/services/essbasic/v20210526/api.json +545 -54
  68. tccli/services/essbasic/v20210526/examples.json +46 -16
  69. tccli/services/facefusion/v20220927/api.json +14 -3
  70. tccli/services/fmu/v20191213/api.json +8 -8
  71. tccli/services/gaap/v20180529/api.json +222 -231
  72. tccli/services/hai/v20230812/api.json +1 -1
  73. tccli/services/hunyuan/v20230901/api.json +21 -2
  74. tccli/services/iss/v20230517/api.json +11 -11
  75. tccli/services/iss/v20230517/examples.json +31 -31
  76. tccli/services/keewidb/v20220308/api.json +92 -82
  77. tccli/services/keewidb/v20220308/examples.json +5 -5
  78. tccli/services/lcic/v20220817/api.json +1 -1
  79. tccli/services/lighthouse/v20200324/api.json +22 -22
  80. tccli/services/lighthouse/v20200324/examples.json +5 -5
  81. tccli/services/live/v20180801/api.json +87 -69
  82. tccli/services/live/v20180801/examples.json +37 -37
  83. tccli/services/lke/v20231130/examples.json +1 -1
  84. tccli/services/mariadb/v20170312/api.json +285 -263
  85. tccli/services/mariadb/v20170312/examples.json +12 -12
  86. tccli/services/mongodb/v20180408/api.json +104 -104
  87. tccli/services/mongodb/v20190725/api.json +116 -103
  88. tccli/services/monitor/monitor_client.py +106 -0
  89. tccli/services/monitor/v20180724/api.json +222 -0
  90. tccli/services/monitor/v20180724/examples.json +16 -0
  91. tccli/services/mps/mps_client.py +228 -16
  92. tccli/services/mps/v20190612/api.json +385 -23
  93. tccli/services/mps/v20190612/examples.json +32 -0
  94. tccli/services/msp/v20180319/api.json +2 -2
  95. tccli/services/ocr/v20181119/api.json +13 -3
  96. tccli/services/ocr/v20181119/examples.json +1 -1
  97. tccli/services/omics/v20221128/api.json +14 -2
  98. tccli/services/organization/v20210331/api.json +45 -18
  99. tccli/services/privatedns/v20201028/api.json +90 -81
  100. tccli/services/privatedns/v20201028/examples.json +18 -18
  101. tccli/services/redis/redis_client.py +106 -0
  102. tccli/services/redis/v20180412/api.json +179 -17
  103. tccli/services/redis/v20180412/examples.json +16 -0
  104. tccli/services/region/v20220627/api.json +5 -3
  105. tccli/services/region/v20220627/examples.json +1 -1
  106. tccli/services/sqlserver/v20180328/api.json +611 -450
  107. tccli/services/sqlserver/v20180328/examples.json +16 -16
  108. tccli/services/ssl/v20191205/api.json +6 -4
  109. tccli/services/tag/v20180813/api.json +4 -5
  110. tccli/services/tbaas/v20180416/api.json +47 -49
  111. tccli/services/tbaas/v20180416/examples.json +4 -4
  112. tccli/services/tcb/v20180608/api.json +36 -16
  113. tccli/services/tdmq/tdmq_client.py +106 -0
  114. tccli/services/tdmq/v20200217/api.json +125 -1
  115. tccli/services/tdmq/v20200217/examples.json +17 -1
  116. tccli/services/teo/teo_client.py +485 -8
  117. tccli/services/teo/v20220901/api.json +837 -39
  118. tccli/services/teo/v20220901/examples.json +108 -0
  119. tccli/services/thpc/v20211109/api.json +32 -34
  120. tccli/services/thpc/v20220401/api.json +31 -33
  121. tccli/services/thpc/v20230321/api.json +55 -57
  122. tccli/services/thpc/v20230321/examples.json +1 -1
  123. tccli/services/tiia/v20190529/api.json +307 -293
  124. tccli/services/tiia/v20190529/examples.json +41 -41
  125. tccli/services/tione/v20211111/api.json +4 -4
  126. tccli/services/tione/v20211111/examples.json +2 -2
  127. tccli/services/tke/v20180525/api.json +1 -1
  128. tccli/services/trocket/trocket_client.py +224 -12
  129. tccli/services/trocket/v20230308/api.json +787 -147
  130. tccli/services/trocket/v20230308/examples.json +38 -0
  131. tccli/services/tse/v20201207/api.json +188 -120
  132. tccli/services/tse/v20201207/examples.json +30 -30
  133. tccli/services/tsf/v20180326/api.json +864 -781
  134. tccli/services/tsf/v20180326/examples.json +114 -126
  135. tccli/services/vclm/v20240523/api.json +1 -1
  136. tccli/services/vdb/v20230616/api.json +80 -80
  137. tccli/services/vdb/v20230616/examples.json +1 -1
  138. tccli/services/vod/v20180717/api.json +21 -3
  139. tccli/services/vod/v20180717/examples.json +2 -2
  140. tccli/services/vpc/v20170312/api.json +45 -44
  141. tccli/services/vpc/v20170312/examples.json +9 -9
  142. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/METADATA +2 -2
  143. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/RECORD +146 -142
  144. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/WHEEL +0 -0
  145. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/entry_points.txt +0 -0
  146. {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/license_files/LICENSE +0 -0
@@ -115,7 +115,7 @@
115
115
  "DescribeHealthScore": [
116
116
  {
117
117
  "document": "通过实例ID获取健康得分,以及异常扣分项。",
118
- "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeHealthScore\n&InstanceId=test\n&Time=2019-01-01T00:00:00+08:00\n&Product=mysql\n&<公共请求参数>",
118
+ "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeHealthScore\n&InstanceId=cdb-test1234\n&Time=2019-01-01T00:00:00+08:00\n&Product=mysql\n&<公共请求参数>",
119
119
  "output": "{\n \"Response\": {\n \"RequestId\": \"8b307450-6118-11eb-88ad-93c053da68c6\",\n \"Data\": {\n \"IssueTypes\": [\n {\n \"TotalCount\": 0,\n \"Events\": [],\n \"IssueType\": \"AVAILABILITY\"\n },\n {\n \"TotalCount\": 0,\n \"Events\": [],\n \"IssueType\": \"MAINTAINABILITY\"\n },\n {\n \"TotalCount\": 1,\n \"Events\": [\n {\n \"DiagType\": \"高并发/压力请求\",\n \"ScoreLost\": 6,\n \"StartTime\": \"2020-09-22T00:00:00+00:00\",\n \"EndTime\": \"2020-09-22T00:00:00+00:00\",\n \"EventId\": 780019530,\n \"Outline\": \"监控指标 \\\"cpu_use_rate\\\" 告警,当前值 100\",\n \"Severity\": 1,\n \"Metric\": \"cpu_use_rate\",\n \"Count\": 1\n }\n ],\n \"IssueType\": \"PERFORMANCE\"\n },\n {\n \"TotalCount\": 3,\n \"Events\": [\n {\n \"DiagType\": \"复制\",\n \"ScoreLost\": 10,\n \"StartTime\": \"2020-09-22T00:00:00+00:00\",\n \"EndTime\": \"2020-09-22T00:00:00+00:00\",\n \"EventId\": 780018741,\n \"Outline\": \"复制IO线程中断\",\n \"Severity\": 1,\n \"Metric\": \"slave_io_running\",\n \"Count\": 1\n },\n {\n \"DiagType\": \"复制\",\n \"ScoreLost\": 10,\n \"StartTime\": \"2020-09-22T00:00:00+00:00\",\n \"EndTime\": \"2020-09-22T00:00:00+00:00\",\n \"EventId\": 779984938,\n \"Outline\": \"复制IO线程中断\",\n \"Severity\": 1,\n \"Metric\": \"slave_io_running\",\n \"Count\": 1\n },\n {\n \"DiagType\": \"复制\",\n \"ScoreLost\": 8,\n \"StartTime\": \"2020-09-22T00:00:00+00:00\",\n \"EndTime\": \"2020-09-22T00:00:00+00:00\",\n \"EventId\": 780021648,\n \"Outline\": \"复制延迟\",\n \"Severity\": 2,\n \"Metric\": \"slave_io_running\",\n \"Count\": 1\n }\n ],\n \"IssueType\": \"RELIABILITY\"\n }\n ],\n \"EventsTotalCount\": 4,\n \"HealthLevel\": \"RISK\"\n }\n }\n}",
120
120
  "title": "获取健康得分"
121
121
  },
@@ -130,7 +130,7 @@
130
130
  {
131
131
  "document": "获取邮件配置。",
132
132
  "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeMailProfile\n&Product=mysql\n&ProfileType=scheduler_mail_configuration\n&Offset=0\n&Limit=20\n&<公共请求参数>",
133
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"c7324330-5fc8-11eb-a3f4-96666666\",\n \"ProfileList\": [\n {\n \"ProfileId\": \"12345\",\n \"ProfileType\": \"dbScan_mail_configuration\",\n \"ProfileLevel\": \"User\",\n \"ProfileName\": \"测试uin\",\n \"ProfileInfo\": {\n \"MailConfiguration\": {\n \"HealthStatus\": [\n \"HEALTH\",\n \"SUB_HEALTH\",\n \"RISK\",\n \"HIGH_RISK\"\n ],\n \"Region\": [\n \"ap-guangzhou\"\n ],\n \"ContactGroup\": [],\n \"SendMail\": 0,\n \"ContactPerson\": [\n 123\n ]\n },\n \"Language\": \"zh\"\n }\n }\n ]\n }\n}",
133
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"c7324330-5fc8-11eb-a3f4-96666666\",\n \"ProfileList\": [\n {\n \"ProfileId\": \"1433288\",\n \"ProfileType\": \"dbScan_mail_configuration\",\n \"ProfileLevel\": \"User\",\n \"ProfileName\": \"测试uin\",\n \"ProfileInfo\": {\n \"MailConfiguration\": {\n \"HealthStatus\": [\n \"HEALTH\",\n \"SUB_HEALTH\",\n \"RISK\",\n \"HIGH_RISK\"\n ],\n \"Region\": [\n \"ap-guangzhou\"\n ],\n \"ContactGroup\": [],\n \"SendMail\": 0,\n \"ContactPerson\": [\n 24332\n ]\n },\n \"Language\": \"zh\"\n }\n }\n ]\n }\n}",
134
134
  "title": "获取邮件配置"
135
135
  }
136
136
  ],
@@ -153,7 +153,7 @@
153
153
  "DescribeSlowLogTimeSeriesStats": [
154
154
  {
155
155
  "document": "获取慢日志统计柱状图。",
156
- "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeSlowLogTimeSeriesStats\n&InstanceId=test\n&StartTime=2019-01-01 00:00:00\n&EndTime=2019-01-01 01:00:00\n&<公共请求参数>",
156
+ "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeSlowLogTimeSeriesStats\n&InstanceId=cdb-test1234\n&StartTime=2019-01-01 00:00:00\n&EndTime=2019-01-01 01:00:00\n&<公共请求参数>",
157
157
  "output": "{\n \"Response\": {\n \"TimeSeries\": [\n {\n \"Count\": 0,\n \"Timestamp\": 1568113800\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568191680\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568269560\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568347440\n },\n {\n \"Count\": 2,\n \"Timestamp\": 1568425320\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568503200\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568581080\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568658960\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568736840\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568814720\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568892600\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1568970480\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569048360\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569126240\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569204120\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569282000\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569359880\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569437760\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569515640\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569593520\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569671400\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569749280\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569827160\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569905040\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1569982920\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1570060800\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1570138680\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1570216560\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1570294440\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1570372320\n },\n {\n \"Count\": 0,\n \"Timestamp\": 1570450200\n }\n ],\n \"SeriesData\": {\n \"Series\": [\n {\n \"Values\": [\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1\n ],\n \"Metric\": \"cpu_use_rate\",\n \"Unit\": \"%\"\n }\n ],\n \"Timestamp\": [\n 1568113800,\n 1568191680,\n 1568269560,\n 1568347440,\n 1568425320,\n 1568503200,\n 1568581080,\n 1568658960,\n 1568736840,\n 1568814720,\n 1568892600,\n 1568970480,\n 1569048360,\n 1569126240,\n 1569204120,\n 1569282000,\n 1569359880,\n 1569437760,\n 1569515640,\n 1569593520,\n 1569671400,\n 1569749280,\n 1569827160,\n 1569905040,\n 1569982920,\n 1570060800,\n 1570138680,\n 1570216560,\n 1570294440,\n 1570372320,\n 1570450200\n ]\n },\n \"RequestId\": \"b445f8ee-9357-4d93-83c2-3596f9d1f27e\",\n \"Period\": 77880\n }\n}",
158
158
  "title": "获取慢日志统计柱状图"
159
159
  }
@@ -161,8 +161,8 @@
161
161
  "DescribeSlowLogTopSqls": [
162
162
  {
163
163
  "document": "按照Sql模板查询指定时间段内的慢日志统计结果。",
164
- "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeSlowLogTopSqls\n&InstanceId=test\n&SortBy=QueryTime\n&OrderBy=ASC\n&Limit=10\n&Offset=0\n&StartTime=2019-01-01 00:00:00\n&EndTime=2019-01-01 01:00:00\n&SchemaList.0.Schema=dbName\n&<公共请求参数>",
165
- "output": "{\n \"Response\": {\n \"RequestId\": \"\",\n \"TotalCount\": 1,\n \"Rows\": [\n {\n \"RowsExaminedMax\": 0,\n \"ExecTimes\": 2,\n \"RowsSentMax\": 0,\n \"QueryTimeRatio\": 100,\n \"LockTimeRatio\": 0,\n \"LockTimeMin\": 0,\n \"RowsExaminedRatio\": 0,\n \"Schema\": \"dbName\",\n \"SqlText\": \"select test from test\",\n \"QueryTime\": 28.17341,\n \"SqlTemplate\": \"select ? from ?\",\n \"QueryTimeMax\": 14.086705,\n \"LockTime\": 0,\n \"RowsSent\": 0,\n \"RowsSentMin\": 0,\n \"LockTimeMax\": 0,\n \"RowsSentRatio\": 0,\n \"RowsExamined\": 0,\n \"RowsExaminedMin\": 0,\n \"QueryTimeMin\": 0,\n \"RowsSentAvg\": 0,\n \"LockTimeAvg\": 0,\n \"RowsExaminedAvg\": 0,\n \"QueryTimeAvg\": 0\n }\n ]\n }\n}",
164
+ "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeSlowLogTopSqls\n&InstanceId=cdb-test1234\n&SortBy=QueryTime\n&OrderBy=ASC\n&Limit=10\n&Offset=0\n&StartTime=2019-01-01 00:00:00\n&EndTime=2019-01-01 01:00:00\n&SchemaList.0.Schema=dbName\n&<公共请求参数>",
165
+ "output": "{\n \"Response\": {\n \"RequestId\": \"\",\n \"TotalCount\": 1,\n \"Rows\": [\n {\n \"RowsExaminedMax\": 0,\n \"ExecTimes\": 2,\n \"RowsSentMax\": 0,\n \"QueryTimeRatio\": 100,\n \"LockTimeRatio\": 0,\n \"LockTimeMin\": 0,\n \"RowsExaminedRatio\": 0,\n \"Schema\": \"dbName\",\n \"SqlText\": \"select test from test\",\n \"QueryTime\": 28.17341,\n \"SqlTemplate\": \"select ? from ?\",\n \"QueryTimeMax\": 14.086705,\n \"LockTime\": 0,\n \"RowsSent\": 0,\n \"RowsSentMin\": 0,\n \"Md5\": \"868339165626254691\",\n \"LockTimeMax\": 0,\n \"RowsSentRatio\": 0,\n \"RowsExamined\": 0,\n \"RowsExaminedMin\": 0,\n \"QueryTimeMin\": 0,\n \"RowsSentAvg\": 0,\n \"LockTimeAvg\": 0,\n \"RowsExaminedAvg\": 0,\n \"QueryTimeAvg\": 0\n }\n ]\n }\n}",
166
166
  "title": "按照Sql模板查询指定时间段内的慢日志统计结果"
167
167
  }
168
168
  ],
@@ -193,16 +193,16 @@
193
193
  "DescribeTopSpaceTableTimeSeries": [
194
194
  {
195
195
  "document": "获取Top表在指定时间段内的每日空间统计信息。",
196
- "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeTopSpaceTableTimeSeries\n&InstanceId=cdb-test\n&Limit=2\n&StartDate=2020-01-01\n&EndDate=2020-01-01\n&<公共请求参数>",
197
- "output": "{\n \"Response\": {\n \"RequestId\": \"d97eacb0-cebd-40b6-963b-579092454f05\",\n \"TopSpaceTableTimeSeries\": [\n {\n \"TableName\": \"test\",\n \"TableSchema\": \"test_bak\",\n \"SeriesData\": {\n \"Series\": [\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"DataFree\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"DataLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"IndexLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"TotalLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"FragRatio\",\n \"Unit\": \"%\"\n },\n {\n \"Values\": [\n 9\n ],\n \"Metric\": \"TableRows\",\n \"Unit\": \"\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"PhysicalFileSize\",\n \"Unit\": \"MB\"\n }\n ],\n \"Timestamp\": [\n 1588089600\n ]\n },\n \"Engine\": \"InnoDB\"\n },\n {\n \"TableName\": \"test22\",\n \"TableSchema\": \"test_bak\",\n \"SeriesData\": {\n \"Series\": [\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"DataFree\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"DataLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"IndexLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"TotalLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"FragRatio\",\n \"Unit\": \"%\"\n },\n {\n \"Values\": [\n 6\n ],\n \"Metric\": \"TableRows\",\n \"Unit\": \"\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"PhysicalFileSize\",\n \"Unit\": \"MB\"\n }\n ],\n \"Timestamp\": [\n 1588089600\n ]\n },\n \"Engine\": \"InnoDB\"\n }\n ]\n }\n}",
196
+ "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeTopSpaceTableTimeSeries\n&InstanceId=cdb-test1234\n&Limit=2\n&StartDate=2020-01-01\n&EndDate=2020-01-01\n&<公共请求参数>",
197
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d97eacb0-cebd-40b6-963b-579092454f05\",\n \"TopSpaceTableTimeSeries\": [\n {\n \"TableName\": \"demo_table\",\n \"TableSchema\": \"demo_db\",\n \"SeriesData\": {\n \"Series\": [\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"DataFree\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"DataLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"IndexLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"TotalLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"FragRatio\",\n \"Unit\": \"%\"\n },\n {\n \"Values\": [\n 9\n ],\n \"Metric\": \"TableRows\",\n \"Unit\": \"\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"PhysicalFileSize\",\n \"Unit\": \"MB\"\n }\n ],\n \"Timestamp\": [\n 1588089600\n ]\n },\n \"Engine\": \"InnoDB\"\n },\n {\n \"TableName\": \"test22\",\n \"TableSchema\": \"test_bak\",\n \"SeriesData\": {\n \"Series\": [\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"DataFree\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"DataLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"IndexLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"TotalLength\",\n \"Unit\": \"MB\"\n },\n {\n \"Values\": [\n 0\n ],\n \"Metric\": \"FragRatio\",\n \"Unit\": \"%\"\n },\n {\n \"Values\": [\n 6\n ],\n \"Metric\": \"TableRows\",\n \"Unit\": \"\"\n },\n {\n \"Values\": [\n 0.1\n ],\n \"Metric\": \"PhysicalFileSize\",\n \"Unit\": \"MB\"\n }\n ],\n \"Timestamp\": [\n 1588089600\n ]\n },\n \"Engine\": \"InnoDB\"\n }\n ]\n }\n}",
198
198
  "title": "获取Top表在指定时间段内的每日空间统计信息"
199
199
  }
200
200
  ],
201
201
  "DescribeTopSpaceTables": [
202
202
  {
203
203
  "document": "获取Top表的空间统计信息。",
204
- "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeTopSpaceTables\n&InstanceId=cdb-test\n&Limit=2\n&SortBy=TableRows\n&<公共请求参数>",
205
- "output": "{\n \"Response\": {\n \"RequestId\": \"ed279d8b-a9d9-48d6-9429-e0fde000994a\",\n \"Timestamp\": 1603819881,\n \"TopSpaceTables\": [\n {\n \"DataFree\": 0,\n \"TableName\": \"test\",\n \"TotalLength\": 0.1,\n \"TableSchema\": \"test_bak\",\n \"FragRatio\": 0,\n \"DataLength\": 0.1,\n \"PhysicalFileSize\": 0.1,\n \"TableRows\": 9,\n \"Engine\": \"InnoDB\",\n \"IndexLength\": 0\n },\n {\n \"DataFree\": 0,\n \"TableName\": \"test\",\n \"TotalLength\": 0.1,\n \"TableSchema\": \"test_bak\",\n \"FragRatio\": 0,\n \"DataLength\": 0.1,\n \"PhysicalFileSize\": 0.1,\n \"TableRows\": 9,\n \"Engine\": \"InnoDB\",\n \"IndexLength\": 0\n }\n ]\n }\n}",
204
+ "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeTopSpaceTables\n&InstanceId=cdb-test1234\n&Limit=2\n&SortBy=TableRows\n&<公共请求参数>",
205
+ "output": "{\n \"Response\": {\n \"RequestId\": \"ed279d8b-a9d9-48d6-9429-e0fde000994a\",\n \"Timestamp\": 1603819881,\n \"TopSpaceTables\": [\n {\n \"DataFree\": 0,\n \"TableName\": \"demo_table\",\n \"TotalLength\": 0.1,\n \"TableSchema\": \"test_bak\",\n \"FragRatio\": 0,\n \"DataLength\": 0.1,\n \"PhysicalFileSize\": 0.1,\n \"TableRows\": 9,\n \"Engine\": \"InnoDB\",\n \"IndexLength\": 0\n },\n {\n \"DataFree\": 0,\n \"TableName\": \"demo_table\",\n \"TotalLength\": 0.1,\n \"TableSchema\": \"test_bak\",\n \"FragRatio\": 0,\n \"DataLength\": 0.1,\n \"PhysicalFileSize\": 0.1,\n \"TableRows\": 9,\n \"Engine\": \"InnoDB\",\n \"IndexLength\": 0\n }\n ]\n }\n}",
206
206
  "title": "获取Top表的空间统计信息"
207
207
  }
208
208
  ],
@@ -210,7 +210,7 @@
210
210
  {
211
211
  "document": "获取SQL优化建议。",
212
212
  "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeUserSqlAdvice\n&InstanceId=cdb-c1nl9rpv\n&SqlText=select * from t1 where id in ( ? )\n&<公共请求参数>",
213
- "output": "{\n \"Response\": {\n \"RequestId\": \"e2a51350-8c9f-11eb-bc0f-c9f5ab88d057\",\n \"Advices\": \"[{\\\"TableName\\\": \\\"t1\\\", \\\"TableSchema\\\": \\\"test\\\", \\\"Keys\\\": [{\\\"SqlText\\\": \\\"alter table `test`.`t1` add index index_0(`id`);\\\"}]}]\",\n \"Comments\": \"[]\",\n \"Schema\": \"test\",\n \"Tables\": \"[{\\\"TableName\\\": \\\"t1\\\", \\\"TableSchema\\\": \\\"test\\\", \\\"TableDDL\\\": \\\"CREATE TABLE `test` (\\n `id` varchar(36) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC\\\"}]\",\n \"SqlText\": \"select * from t1 where id in ( ? )\",\n \"SqlPlan\": \"{\\\"Before\\\": [{\\\"Format\\\": \\\"Table\\\", \\\"Data\\\": {\\\"Names\\\": [\\\"id\\\", \\\"select_type\\\", \\\"table\\\", \\\"partitions\\\", \\\"type\\\", \\\"possible_keys\\\", \\\"key\\\", \\\"key_len\\\", \\\"ref\\\", \\\"rows\\\", \\\"filtered\\\", \\\"Extra\\\"], \\\"Data\\\": [ [1, \\\"SIMPLE\\\", \\\"t1\\\", null, \\\"ALL\\\", null, null, null, null, 1530, 10, \\\"Using where\\\" ]]}}], \\\"After\\\": [{ \\\"Format\\\": \\\"Table\\\", \\\"Data\\\": {\\\"Names\\\": [\\\"id\\\", \\\"select_type\\\", \\\"table\\\", \\\"partitions\\\", \\\"type\\\", \\\"possible_keys\\\", \\\"key\\\", \\\"key_len\\\", \\\"ref\\\", \\\"rows\\\", \\\"filtered\\\", \\\"Extra\\\"], \\\"Data\\\": [[1, \\\"SIMPLE\\\", \\\"t1\\\", null, \\\"ref\\\", \\\"index_0\\\", \\\"index_0\\\", 1056, \\\"const\\\", 51, 100.00, null]]}}]}\",\n \"Cost\": \"{\\\"Before\\\": 0.1, \\\"After\\\": 0.03, \\\"Ratio\\\": 90.61}\"\n }\n}",
213
+ "output": "{\n \"Response\": {\n \"RequestId\": \"e2a51350-8c9f-11eb-bc0f-c9f5ab88d057\",\n \"Advices\": \"[{\\\"TableName\\\": \\\"t1\\\", \\\"TableSchema\\\": \\\"test\\\", \\\"Keys\\\": [{\\\"SqlText\\\": \\\"alter table `test`.`t1` add index index_0(`id`);\\\"}]}]\",\n \"Comments\": \"[\\\"Failed to parse SQL statement\\\"]\",\n \"Schema\": \"demo_db\",\n \"Tables\": \"[{\\\"TableName\\\": \\\"t1\\\", \\\"TableSchema\\\": \\\"test\\\", \\\"TableDDL\\\": \\\"CREATE TABLE `test` (\\n `id` varchar(36) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC\\\"}]\",\n \"SqlText\": \"select * from t1 where id in ( ? )\",\n \"SqlPlan\": \"{\\\"Before\\\": [{\\\"Format\\\": \\\"Table\\\", \\\"Data\\\": {\\\"Names\\\": [\\\"id\\\", \\\"select_type\\\", \\\"table\\\", \\\"partitions\\\", \\\"type\\\", \\\"possible_keys\\\", \\\"key\\\", \\\"key_len\\\", \\\"ref\\\", \\\"rows\\\", \\\"filtered\\\", \\\"Extra\\\"], \\\"Data\\\": [ [1, \\\"SIMPLE\\\", \\\"t1\\\", null, \\\"ALL\\\", null, null, null, null, 1530, 10, \\\"Using where\\\" ]]}}], \\\"After\\\": [{ \\\"Format\\\": \\\"Table\\\", \\\"Data\\\": {\\\"Names\\\": [\\\"id\\\", \\\"select_type\\\", \\\"table\\\", \\\"partitions\\\", \\\"type\\\", \\\"possible_keys\\\", \\\"key\\\", \\\"key_len\\\", \\\"ref\\\", \\\"rows\\\", \\\"filtered\\\", \\\"Extra\\\"], \\\"Data\\\": [[1, \\\"SIMPLE\\\", \\\"t1\\\", null, \\\"ref\\\", \\\"index_0\\\", \\\"index_0\\\", 1056, \\\"const\\\", 51, 100.00, null]]}}]}\",\n \"Cost\": \"{\\\"Before\\\": 0.1, \\\"After\\\": 0.03, \\\"Ratio\\\": 90.61}\"\n }\n}",
214
214
  "title": "获取SQL优化建议"
215
215
  },
216
216
  {