tccli 3.0.1244.1__py2.py3-none-any.whl → 3.0.1246.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +72 -0
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/dbbrain/dbbrain_client.py +57 -4
- tccli/services/dbbrain/v20210527/api.json +145 -0
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dbdc/v20201029/api.json +72 -72
- tccli/services/dcdb/v20180411/api.json +3 -3
- tccli/services/dcdb/v20180411/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/iotexplorer/iotexplorer_client.py +216 -4
- tccli/services/iotexplorer/v20190423/api.json +146 -1
- tccli/services/iotexplorer/v20190423/examples.json +34 -2
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/lke/v20231130/api.json +30 -0
- tccli/services/lkeap/__init__.py +4 -0
- tccli/services/lkeap/lkeap_client.py +1426 -0
- tccli/services/lkeap/v20240522/api.json +1882 -0
- tccli/services/lkeap/v20240522/examples.json +215 -0
- tccli/services/mna/v20210119/api.json +7 -7
- tccli/services/mna/v20210119/examples.json +9 -9
- tccli/services/monitor/v20180724/api.json +74 -0
- tccli/services/ocr/ocr_client.py +91 -38
- tccli/services/ocr/v20181119/api.json +187 -0
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/scf/v20180416/examples.json +2 -2
- tccli/services/sqlserver/v20180328/api.json +43 -5
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/tcb/v20180608/api.json +45 -39
- tccli/services/tcb/v20180608/examples.json +9 -9
- tccli/services/tcm/v20210413/api.json +9 -3
- tccli/services/tcm/v20210413/examples.json +7 -7
- tccli/services/tcr/v20190924/api.json +89 -89
- tccli/services/tcr/v20190924/examples.json +31 -31
- tccli/services/teo/v20220901/api.json +3 -3
- tccli/services/tke/v20180525/api.json +874 -688
- tccli/services/tke/v20180525/examples.json +40 -40
- tccli/services/tke/v20220501/api.json +16 -16
- tccli/services/tke/v20220501/examples.json +2 -2
- tccli/services/trocket/trocket_client.py +57 -4
- tccli/services/trocket/v20230308/api.json +143 -51
- tccli/services/trocket/v20230308/examples.json +11 -3
- tccli/services/vclm/v20240523/api.json +3 -3
- tccli/services/vpc/v20170312/api.json +20 -20
- tccli/services/vpc/v20170312/examples.json +19 -19
- tccli/services/waf/v20180125/api.json +1 -1
- tccli/services/wedata/v20210820/api.json +34 -1
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/RECORD +55 -51
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1244.1.dist-info → tccli-3.0.1246.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1246.1'
|
tccli/services/__init__.py
CHANGED
tccli/services/cdb/cdb_client.py
CHANGED
@@ -173,6 +173,58 @@ def doCreateAuditPolicy(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
+
def doDescribeTableColumns(args, parsed_globals):
|
177
|
+
g_param = parse_global_arg(parsed_globals)
|
178
|
+
|
179
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
180
|
+
cred = credential.CVMRoleCredential()
|
181
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
182
|
+
cred = credential.STSAssumeRoleCredential(
|
183
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
184
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
185
|
+
)
|
186
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
187
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
188
|
+
else:
|
189
|
+
cred = credential.Credential(
|
190
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
191
|
+
)
|
192
|
+
http_profile = HttpProfile(
|
193
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
194
|
+
reqMethod="POST",
|
195
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
196
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
197
|
+
)
|
198
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
199
|
+
if g_param[OptionsDefine.Language]:
|
200
|
+
profile.language = g_param[OptionsDefine.Language]
|
201
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
202
|
+
client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
|
203
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
204
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
+
model = models.DescribeTableColumnsRequest()
|
206
|
+
model.from_json_string(json.dumps(args))
|
207
|
+
start_time = time.time()
|
208
|
+
while True:
|
209
|
+
rsp = client.DescribeTableColumns(model)
|
210
|
+
result = rsp.to_json_string()
|
211
|
+
try:
|
212
|
+
json_obj = json.loads(result)
|
213
|
+
except TypeError as e:
|
214
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
215
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
216
|
+
break
|
217
|
+
cur_time = time.time()
|
218
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
219
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
220
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
221
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
222
|
+
else:
|
223
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
224
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
225
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
|
+
|
227
|
+
|
176
228
|
def doDescribeDBInstanceLogToCLS(args, parsed_globals):
|
177
229
|
g_param = parse_global_arg(parsed_globals)
|
178
230
|
|
@@ -8923,6 +8975,7 @@ ACTION_MAP = {
|
|
8923
8975
|
"DescribeDBInstanceGTID": doDescribeDBInstanceGTID,
|
8924
8976
|
"CreateRoInstanceIp": doCreateRoInstanceIp,
|
8925
8977
|
"CreateAuditPolicy": doCreateAuditPolicy,
|
8978
|
+
"DescribeTableColumns": doDescribeTableColumns,
|
8926
8979
|
"DescribeDBInstanceLogToCLS": doDescribeDBInstanceLogToCLS,
|
8927
8980
|
"DescribeDBFeatures": doDescribeDBFeatures,
|
8928
8981
|
"CreateAuditRuleTemplate": doCreateAuditRuleTemplate,
|
@@ -721,6 +721,13 @@
|
|
721
721
|
"output": "DescribeSupportedPrivilegesResponse",
|
722
722
|
"status": "online"
|
723
723
|
},
|
724
|
+
"DescribeTableColumns": {
|
725
|
+
"document": "本接口(DescribeTableColumns)用于查询云数据库实例的指定数据库表的列信息,仅支持主实例和灾备实例。",
|
726
|
+
"input": "DescribeTableColumnsRequest",
|
727
|
+
"name": "查询云数据库实例的列",
|
728
|
+
"output": "DescribeTableColumnsResponse",
|
729
|
+
"status": "online"
|
730
|
+
},
|
724
731
|
"DescribeTables": {
|
725
732
|
"document": "本接口(DescribeTables)用于查询云数据库实例的数据库表信息,仅支持主实例和灾备实例,不支持只读实例。",
|
726
733
|
"input": "DescribeTablesRequest",
|
@@ -12772,6 +12779,71 @@
|
|
12772
12779
|
],
|
12773
12780
|
"type": "object"
|
12774
12781
|
},
|
12782
|
+
"DescribeTableColumnsRequest": {
|
12783
|
+
"document": "DescribeTableColumns请求参数结构体",
|
12784
|
+
"members": [
|
12785
|
+
{
|
12786
|
+
"disabled": false,
|
12787
|
+
"document": "实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。",
|
12788
|
+
"example": "cdb-c1nl9rpv",
|
12789
|
+
"member": "string",
|
12790
|
+
"name": "InstanceId",
|
12791
|
+
"required": true,
|
12792
|
+
"type": "string"
|
12793
|
+
},
|
12794
|
+
{
|
12795
|
+
"disabled": false,
|
12796
|
+
"document": "数据库名称,可使用[查询数据库](https://cloud.tencent.com/document/api/253/7167)接口获得。",
|
12797
|
+
"example": "test_data_base",
|
12798
|
+
"member": "string",
|
12799
|
+
"name": "Database",
|
12800
|
+
"required": true,
|
12801
|
+
"type": "string"
|
12802
|
+
},
|
12803
|
+
{
|
12804
|
+
"disabled": false,
|
12805
|
+
"document": "数据库中的表的名称。",
|
12806
|
+
"example": "test_table",
|
12807
|
+
"member": "string",
|
12808
|
+
"name": "Table",
|
12809
|
+
"required": true,
|
12810
|
+
"type": "string"
|
12811
|
+
}
|
12812
|
+
],
|
12813
|
+
"type": "object"
|
12814
|
+
},
|
12815
|
+
"DescribeTableColumnsResponse": {
|
12816
|
+
"document": "DescribeTableColumns返回参数结构体",
|
12817
|
+
"members": [
|
12818
|
+
{
|
12819
|
+
"disabled": false,
|
12820
|
+
"document": "符合查询条件的实例总数。",
|
12821
|
+
"example": "10",
|
12822
|
+
"member": "int64",
|
12823
|
+
"name": "TotalCount",
|
12824
|
+
"required": true,
|
12825
|
+
"type": "int",
|
12826
|
+
"value_allowed_null": false
|
12827
|
+
},
|
12828
|
+
{
|
12829
|
+
"disabled": false,
|
12830
|
+
"document": "返回的数据库列信息。",
|
12831
|
+
"example": "[ \"TABLE_CATALOG\", \"TABLE_SCHEMA\", ",
|
12832
|
+
"member": "string",
|
12833
|
+
"name": "Items",
|
12834
|
+
"required": true,
|
12835
|
+
"type": "list",
|
12836
|
+
"value_allowed_null": false
|
12837
|
+
},
|
12838
|
+
{
|
12839
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
12840
|
+
"member": "string",
|
12841
|
+
"name": "RequestId",
|
12842
|
+
"type": "string"
|
12843
|
+
}
|
12844
|
+
],
|
12845
|
+
"type": "object"
|
12846
|
+
},
|
12775
12847
|
"DescribeTablesRequest": {
|
12776
12848
|
"document": "DescribeTables请求参数结构体",
|
12777
12849
|
"members": [
|
@@ -866,6 +866,14 @@
|
|
866
866
|
"title": "查询云数据库实例支持的权限信息"
|
867
867
|
}
|
868
868
|
],
|
869
|
+
"DescribeTableColumns": [
|
870
|
+
{
|
871
|
+
"document": "",
|
872
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableColumns\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-c1nl9rpv\",\n \"Table\": \"COLUMNS\",\n \"Database\": \"information_schema\"\n}",
|
873
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"TotalCount\": 20,\n \"Items\": [\n \"TABLE_CATALOG\",\n \"TABLE_SCHEMA\",\n \"TABLE_NAME\",\n \"COLUMN_NAME\",\n \"ORDINAL_POSITION\",\n \"COLUMN_DEFAULT\",\n \"IS_NULLABLE\",\n \"DATA_TYPE\",\n \"CHARACTER_MAXIMUM_LENGTH\",\n \"CHARACTER_OCTET_LENGTH\",\n \"NUMERIC_PRECISION\",\n \"NUMERIC_SCALE\",\n \"DATETIME_PRECISION\",\n \"CHARACTER_SET_NAME\",\n \"COLLATION_NAME\",\n \"COLUMN_TYPE\",\n \"COLUMN_KEY\",\n \"EXTRA\",\n \"PRIVILEGES\",\n \"COLUMN_COMMENT\"\n ]\n }\n}",
|
874
|
+
"title": "查询云数据库实例的列"
|
875
|
+
}
|
876
|
+
],
|
869
877
|
"DescribeTables": [
|
870
878
|
{
|
871
879
|
"document": "",
|
@@ -1423,7 +1423,7 @@ def doDescribeHealthScore(args, parsed_globals):
|
|
1423
1423
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1424
1424
|
|
1425
1425
|
|
1426
|
-
def
|
1426
|
+
def doDescribeRedisTopHotKeys(args, parsed_globals):
|
1427
1427
|
g_param = parse_global_arg(parsed_globals)
|
1428
1428
|
|
1429
1429
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1452,11 +1452,11 @@ def doCancelKillTask(args, parsed_globals):
|
|
1452
1452
|
client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
|
1453
1453
|
client._sdkVersion += ("_CLI_" + __version__)
|
1454
1454
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1455
|
-
model = models.
|
1455
|
+
model = models.DescribeRedisTopHotKeysRequest()
|
1456
1456
|
model.from_json_string(json.dumps(args))
|
1457
1457
|
start_time = time.time()
|
1458
1458
|
while True:
|
1459
|
-
rsp = client.
|
1459
|
+
rsp = client.DescribeRedisTopHotKeys(model)
|
1460
1460
|
result = rsp.to_json_string()
|
1461
1461
|
try:
|
1462
1462
|
json_obj = json.loads(result)
|
@@ -2359,6 +2359,58 @@ def doDeleteSqlFilters(args, parsed_globals):
|
|
2359
2359
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2360
2360
|
|
2361
2361
|
|
2362
|
+
def doCancelKillTask(args, parsed_globals):
|
2363
|
+
g_param = parse_global_arg(parsed_globals)
|
2364
|
+
|
2365
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2366
|
+
cred = credential.CVMRoleCredential()
|
2367
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2368
|
+
cred = credential.STSAssumeRoleCredential(
|
2369
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2370
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2371
|
+
)
|
2372
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
2373
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2374
|
+
else:
|
2375
|
+
cred = credential.Credential(
|
2376
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2377
|
+
)
|
2378
|
+
http_profile = HttpProfile(
|
2379
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2380
|
+
reqMethod="POST",
|
2381
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2382
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2383
|
+
)
|
2384
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2385
|
+
if g_param[OptionsDefine.Language]:
|
2386
|
+
profile.language = g_param[OptionsDefine.Language]
|
2387
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2388
|
+
client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
|
2389
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2390
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2391
|
+
model = models.CancelKillTaskRequest()
|
2392
|
+
model.from_json_string(json.dumps(args))
|
2393
|
+
start_time = time.time()
|
2394
|
+
while True:
|
2395
|
+
rsp = client.CancelKillTask(model)
|
2396
|
+
result = rsp.to_json_string()
|
2397
|
+
try:
|
2398
|
+
json_obj = json.loads(result)
|
2399
|
+
except TypeError as e:
|
2400
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2401
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2402
|
+
break
|
2403
|
+
cur_time = time.time()
|
2404
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2405
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2406
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2407
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2408
|
+
else:
|
2409
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2410
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2411
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2412
|
+
|
2413
|
+
|
2362
2414
|
def doDescribeDiagDBInstances(args, parsed_globals):
|
2363
2415
|
g_param = parse_global_arg(parsed_globals)
|
2364
2416
|
|
@@ -3335,7 +3387,7 @@ ACTION_MAP = {
|
|
3335
3387
|
"DescribeDBSpaceStatus": doDescribeDBSpaceStatus,
|
3336
3388
|
"CreateProxySessionKillTask": doCreateProxySessionKillTask,
|
3337
3389
|
"DescribeHealthScore": doDescribeHealthScore,
|
3338
|
-
"
|
3390
|
+
"DescribeRedisTopHotKeys": doDescribeRedisTopHotKeys,
|
3339
3391
|
"CreateSecurityAuditLogExportTask": doCreateSecurityAuditLogExportTask,
|
3340
3392
|
"CloseAuditService": doCloseAuditService,
|
3341
3393
|
"DeleteSecurityAuditLogExportTasks": doDeleteSecurityAuditLogExportTasks,
|
@@ -3353,6 +3405,7 @@ ACTION_MAP = {
|
|
3353
3405
|
"DescribeSlowLogTimeSeriesStats": doDescribeSlowLogTimeSeriesStats,
|
3354
3406
|
"DescribeTopSpaceSchemaTimeSeries": doDescribeTopSpaceSchemaTimeSeries,
|
3355
3407
|
"DeleteSqlFilters": doDeleteSqlFilters,
|
3408
|
+
"CancelKillTask": doCancelKillTask,
|
3356
3409
|
"DescribeDiagDBInstances": doDescribeDiagDBInstances,
|
3357
3410
|
"AddUserContact": doAddUserContact,
|
3358
3411
|
"DescribeIndexRecommendInfo": doDescribeIndexRecommendInfo,
|
@@ -280,6 +280,13 @@
|
|
280
280
|
"output": "DescribeRedisTopBigKeysResponse",
|
281
281
|
"status": "online"
|
282
282
|
},
|
283
|
+
"DescribeRedisTopHotKeys": {
|
284
|
+
"document": "热Key分析",
|
285
|
+
"input": "DescribeRedisTopHotKeysRequest",
|
286
|
+
"name": "获取redis top热key",
|
287
|
+
"output": "DescribeRedisTopHotKeysResponse",
|
288
|
+
"status": "online"
|
289
|
+
},
|
283
290
|
"DescribeRedisTopKeyPrefixList": {
|
284
291
|
"document": "查询redis实例top key前缀列表。",
|
285
292
|
"input": "DescribeRedisTopKeyPrefixListRequest",
|
@@ -4268,6 +4275,88 @@
|
|
4268
4275
|
],
|
4269
4276
|
"type": "object"
|
4270
4277
|
},
|
4278
|
+
"DescribeRedisTopHotKeysRequest": {
|
4279
|
+
"document": "DescribeRedisTopHotKeys请求参数结构体",
|
4280
|
+
"members": [
|
4281
|
+
{
|
4282
|
+
"disabled": false,
|
4283
|
+
"document": "实例 ID 。",
|
4284
|
+
"example": "crs-test1234",
|
4285
|
+
"member": "string",
|
4286
|
+
"name": "InstanceId",
|
4287
|
+
"required": true,
|
4288
|
+
"type": "string"
|
4289
|
+
},
|
4290
|
+
{
|
4291
|
+
"disabled": false,
|
4292
|
+
"document": "开始时间,如“2024-09-22T00:00:00+00:00”。0天 < 当前服务器时间 - 开始时间 <= 10天。",
|
4293
|
+
"example": "2024-09-22T00:00:00+00:00",
|
4294
|
+
"member": "datetime_iso",
|
4295
|
+
"name": "StartTime",
|
4296
|
+
"required": true,
|
4297
|
+
"type": "string"
|
4298
|
+
},
|
4299
|
+
{
|
4300
|
+
"disabled": false,
|
4301
|
+
"document": "结束时间,如“2024-09-22T01:00:00+00:00”,0天 < 结束时间 - 开始时间 <= 10天。",
|
4302
|
+
"example": "2024-09-22T01:00:00+00:00",
|
4303
|
+
"member": "datetime_iso",
|
4304
|
+
"name": "EndTime",
|
4305
|
+
"required": true,
|
4306
|
+
"type": "string"
|
4307
|
+
},
|
4308
|
+
{
|
4309
|
+
"disabled": false,
|
4310
|
+
"document": "服务产品类型,仅仅支持值 \"redis\" - 云数据库 Redis。",
|
4311
|
+
"example": "redis",
|
4312
|
+
"member": "string",
|
4313
|
+
"name": "Product",
|
4314
|
+
"required": true,
|
4315
|
+
"type": "string"
|
4316
|
+
},
|
4317
|
+
{
|
4318
|
+
"disabled": false,
|
4319
|
+
"document": "Redis 节点数组。",
|
4320
|
+
"example": "[\"fa765e5e2e432806328a3e91d591e47097ecd17r\"]",
|
4321
|
+
"member": "string",
|
4322
|
+
"name": "InstanceNodeIds",
|
4323
|
+
"required": false,
|
4324
|
+
"type": "list"
|
4325
|
+
},
|
4326
|
+
{
|
4327
|
+
"disabled": false,
|
4328
|
+
"document": "top 数目,默认为20,最大值为100。",
|
4329
|
+
"example": "20",
|
4330
|
+
"member": "int64",
|
4331
|
+
"name": "Limit",
|
4332
|
+
"required": false,
|
4333
|
+
"type": "int"
|
4334
|
+
}
|
4335
|
+
],
|
4336
|
+
"type": "object"
|
4337
|
+
},
|
4338
|
+
"DescribeRedisTopHotKeysResponse": {
|
4339
|
+
"document": "DescribeRedisTopHotKeys返回参数结构体",
|
4340
|
+
"members": [
|
4341
|
+
{
|
4342
|
+
"disabled": false,
|
4343
|
+
"document": "热Key分析结果",
|
4344
|
+
"example": "无",
|
4345
|
+
"member": "TopHotKeys",
|
4346
|
+
"name": "TopHotKeys",
|
4347
|
+
"output_required": false,
|
4348
|
+
"type": "list",
|
4349
|
+
"value_allowed_null": false
|
4350
|
+
},
|
4351
|
+
{
|
4352
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4353
|
+
"member": "string",
|
4354
|
+
"name": "RequestId",
|
4355
|
+
"type": "string"
|
4356
|
+
}
|
4357
|
+
],
|
4358
|
+
"type": "object"
|
4359
|
+
},
|
4271
4360
|
"DescribeRedisTopKeyPrefixListRequest": {
|
4272
4361
|
"document": "DescribeRedisTopKeyPrefixList请求参数结构体",
|
4273
4362
|
"members": [
|
@@ -9326,6 +9415,62 @@
|
|
9326
9415
|
],
|
9327
9416
|
"usage": "out"
|
9328
9417
|
},
|
9418
|
+
"TopHotKeys": {
|
9419
|
+
"document": "热key分析返回信息",
|
9420
|
+
"members": [
|
9421
|
+
{
|
9422
|
+
"disabled": false,
|
9423
|
+
"document": "访问频次。",
|
9424
|
+
"example": "100",
|
9425
|
+
"member": "int64",
|
9426
|
+
"name": "Count",
|
9427
|
+
"output_required": false,
|
9428
|
+
"type": "int",
|
9429
|
+
"value_allowed_null": false
|
9430
|
+
},
|
9431
|
+
{
|
9432
|
+
"disabled": false,
|
9433
|
+
"document": "热Key所属数据库。",
|
9434
|
+
"example": "0",
|
9435
|
+
"member": "string",
|
9436
|
+
"name": "Db",
|
9437
|
+
"output_required": false,
|
9438
|
+
"type": "string",
|
9439
|
+
"value_allowed_null": false
|
9440
|
+
},
|
9441
|
+
{
|
9442
|
+
"disabled": false,
|
9443
|
+
"document": "Redis节点。",
|
9444
|
+
"example": "fa765e5e2e432806328a3e91d591e47097ecd27d",
|
9445
|
+
"member": "string",
|
9446
|
+
"name": "InstanceNodeId",
|
9447
|
+
"output_required": false,
|
9448
|
+
"type": "string",
|
9449
|
+
"value_allowed_null": false
|
9450
|
+
},
|
9451
|
+
{
|
9452
|
+
"disabled": false,
|
9453
|
+
"document": "热Key。",
|
9454
|
+
"example": "string|key:00000009688",
|
9455
|
+
"member": "string",
|
9456
|
+
"name": "Key",
|
9457
|
+
"output_required": false,
|
9458
|
+
"type": "string",
|
9459
|
+
"value_allowed_null": false
|
9460
|
+
},
|
9461
|
+
{
|
9462
|
+
"disabled": false,
|
9463
|
+
"document": "数据类型。",
|
9464
|
+
"example": "string",
|
9465
|
+
"member": "string",
|
9466
|
+
"name": "Type",
|
9467
|
+
"output_required": false,
|
9468
|
+
"type": "string",
|
9469
|
+
"value_allowed_null": false
|
9470
|
+
}
|
9471
|
+
],
|
9472
|
+
"usage": "out"
|
9473
|
+
},
|
9329
9474
|
"UpdateAgentSwitchRequest": {
|
9330
9475
|
"document": "UpdateAgentSwitch请求参数结构体",
|
9331
9476
|
"members": [
|
@@ -320,6 +320,14 @@
|
|
320
320
|
"title": "查询redis实例大key列表"
|
321
321
|
}
|
322
322
|
],
|
323
|
+
"DescribeRedisTopHotKeys": [
|
324
|
+
{
|
325
|
+
"document": "",
|
326
|
+
"input": "POST / HTTP/1.1\nHost: dbbrain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRedisTopHotKeys\n<公共请求参数>\n\n{\n \"Product\": \"redis\",\n \"InstanceId\": \"crs-179943dsc\",\n \"StartTime\": \"2024-09-22T00:00:00+00:00\",\n \"EndTime\": \"2024-09-22T01:00:00+00:00\"\n}",
|
327
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"75421bae-7fcb-4b32-83df-d66b060b4cbf\",\n \"TopHotKeys\": [\n {\n \"Count\": 100,\n \"Db\": \"0\",\n \"InstanceNodeId\": \"fa765e5e2e432806328a691d591e47097ecd133d\",\n \"Key\": \"string|key:000000096\",\n \"Type\": \"string\"\n }\n ]\n }\n}",
|
328
|
+
"title": "查询热Key分析"
|
329
|
+
}
|
330
|
+
],
|
323
331
|
"DescribeRedisTopKeyPrefixList": [
|
324
332
|
{
|
325
333
|
"document": "",
|