tccli 3.0.1392.1__py2.py3-none-any.whl → 3.0.1394.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +2 -1
  3. tccli/services/ai3d/v20250513/api.json +4 -4
  4. tccli/services/apm/apm_client.py +53 -0
  5. tccli/services/apm/v20210622/api.json +354 -0
  6. tccli/services/apm/v20210622/examples.json +8 -0
  7. tccli/services/billing/billing_client.py +326 -8
  8. tccli/services/billing/v20180709/api.json +2120 -187
  9. tccli/services/billing/v20180709/examples.json +48 -0
  10. tccli/services/ccc/v20200210/api.json +88 -10
  11. tccli/services/cdb/v20170320/api.json +1 -1
  12. tccli/services/cdn/v20180606/api.json +46 -9
  13. tccli/services/clb/v20180317/api.json +9 -0
  14. tccli/services/csip/v20221121/api.json +1 -1
  15. tccli/services/cvm/cvm_client.py +0 -212
  16. tccli/services/cvm/v20170312/api.json +80 -842
  17. tccli/services/cvm/v20170312/examples.json +24 -56
  18. tccli/services/dbbrain/dbbrain_client.py +136 -30
  19. tccli/services/dbbrain/v20210527/api.json +243 -0
  20. tccli/services/dbbrain/v20210527/examples.json +16 -0
  21. tccli/services/dsgc/v20190723/api.json +73 -15
  22. tccli/services/eb/v20210416/api.json +28 -1
  23. tccli/services/eb/v20210416/examples.json +1 -1
  24. tccli/services/es/es_client.py +53 -0
  25. tccli/services/es/v20180416/api.json +182 -0
  26. tccli/services/es/v20180416/examples.json +8 -0
  27. tccli/services/gs/gs_client.py +216 -4
  28. tccli/services/gs/v20191118/api.json +201 -0
  29. tccli/services/gs/v20191118/examples.json +32 -0
  30. tccli/services/gwlb/v20240906/api.json +70 -0
  31. tccli/services/iai/v20180301/api.json +33 -24
  32. tccli/services/iai/v20180301/examples.json +4 -4
  33. tccli/services/lcic/v20220817/api.json +49 -3
  34. tccli/services/lke/lke_client.py +53 -0
  35. tccli/services/lke/v20231130/api.json +452 -15
  36. tccli/services/lke/v20231130/examples.json +8 -0
  37. tccli/services/lkeap/v20240522/api.json +1 -1
  38. tccli/services/mna/v20210119/api.json +10 -1
  39. tccli/services/mna/v20210119/examples.json +1 -1
  40. tccli/services/mps/v20190612/api.json +19 -0
  41. tccli/services/oceanus/oceanus_client.py +212 -0
  42. tccli/services/oceanus/v20190422/api.json +294 -0
  43. tccli/services/oceanus/v20190422/examples.json +32 -0
  44. tccli/services/ocr/v20181119/api.json +2 -2
  45. tccli/services/redis/v20180412/api.json +63 -33
  46. tccli/services/redis/v20180412/examples.json +1 -1
  47. tccli/services/sms/v20190711/api.json +1 -1
  48. tccli/services/sms/v20210111/api.json +1 -1
  49. tccli/services/sqlserver/v20180328/api.json +15 -5
  50. tccli/services/sqlserver/v20180328/examples.json +1 -1
  51. tccli/services/tat/v20201028/api.json +12 -2
  52. tccli/services/tcss/v20201101/api.json +6 -6
  53. tccli/services/tcss/v20201101/examples.json +1 -1
  54. tccli/services/tione/v20211111/api.json +2 -2
  55. tccli/services/trocket/v20230308/api.json +4 -4
  56. tccli/services/tsf/v20180326/api.json +2 -2
  57. tccli/services/vod/v20180717/api.json +7 -7
  58. tccli/services/vpc/v20170312/api.json +3 -3
  59. tccli/services/vtc/v20240223/api.json +1 -1
  60. tccli/services/waf/v20180125/api.json +8 -8
  61. tccli/services/waf/v20180125/examples.json +1 -1
  62. tccli/services/wedata/v20250806/api.json +13645 -0
  63. tccli/services/wedata/v20250806/examples.json +621 -0
  64. tccli/services/wedata/wedata_client.py +5031 -1157
  65. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/METADATA +2 -2
  66. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/RECORD +69 -67
  67. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/WHEEL +0 -0
  68. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/entry_points.txt +0 -0
  69. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/license_files/LICENSE +0 -0
@@ -71,7 +71,7 @@ def doDescribeDBAutonomyEvents(args, parsed_globals):
71
71
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
72
72
 
73
73
 
74
- def doVerifyUserAccount(args, parsed_globals):
74
+ def doOpenAuditService(args, parsed_globals):
75
75
  g_param = parse_global_arg(parsed_globals)
76
76
 
77
77
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -100,11 +100,11 @@ def doVerifyUserAccount(args, parsed_globals):
100
100
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
101
101
  client._sdkVersion += ("_CLI_" + __version__)
102
102
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
103
- model = models.VerifyUserAccountRequest()
103
+ model = models.OpenAuditServiceRequest()
104
104
  model.from_json_string(json.dumps(args))
105
105
  start_time = time.time()
106
106
  while True:
107
- rsp = client.VerifyUserAccount(model)
107
+ rsp = client.OpenAuditService(model)
108
108
  result = rsp.to_json_string()
109
109
  try:
110
110
  json_obj = json.loads(result)
@@ -591,7 +591,7 @@ def doDescribeMySqlProcessList(args, parsed_globals):
591
591
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
592
592
 
593
593
 
594
- def doCreateMailProfile(args, parsed_globals):
594
+ def doDescribeIndexRecommendInfo(args, parsed_globals):
595
595
  g_param = parse_global_arg(parsed_globals)
596
596
 
597
597
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -620,11 +620,11 @@ def doCreateMailProfile(args, parsed_globals):
620
620
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
621
621
  client._sdkVersion += ("_CLI_" + __version__)
622
622
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
623
- model = models.CreateMailProfileRequest()
623
+ model = models.DescribeIndexRecommendInfoRequest()
624
624
  model.from_json_string(json.dumps(args))
625
625
  start_time = time.time()
626
626
  while True:
627
- rsp = client.CreateMailProfile(model)
627
+ rsp = client.DescribeIndexRecommendInfo(model)
628
628
  result = rsp.to_json_string()
629
629
  try:
630
630
  json_obj = json.loads(result)
@@ -747,7 +747,7 @@ def doCancelDBAutonomyEvent(args, parsed_globals):
747
747
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
748
748
 
749
749
 
750
- def doDescribeAuditLogFiles(args, parsed_globals):
750
+ def doVerifyUserAccount(args, parsed_globals):
751
751
  g_param = parse_global_arg(parsed_globals)
752
752
 
753
753
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -776,11 +776,11 @@ def doDescribeAuditLogFiles(args, parsed_globals):
776
776
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
777
777
  client._sdkVersion += ("_CLI_" + __version__)
778
778
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
779
- model = models.DescribeAuditLogFilesRequest()
779
+ model = models.VerifyUserAccountRequest()
780
780
  model.from_json_string(json.dumps(args))
781
781
  start_time = time.time()
782
782
  while True:
783
- rsp = client.DescribeAuditLogFiles(model)
783
+ rsp = client.VerifyUserAccount(model)
784
784
  result = rsp.to_json_string()
785
785
  try:
786
786
  json_obj = json.loads(result)
@@ -799,7 +799,7 @@ def doDescribeAuditLogFiles(args, parsed_globals):
799
799
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
800
800
 
801
801
 
802
- def doCreateRedisBigKeyAnalysisTask(args, parsed_globals):
802
+ def doDescribeAuditLogFiles(args, parsed_globals):
803
803
  g_param = parse_global_arg(parsed_globals)
804
804
 
805
805
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -828,11 +828,11 @@ def doCreateRedisBigKeyAnalysisTask(args, parsed_globals):
828
828
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
829
829
  client._sdkVersion += ("_CLI_" + __version__)
830
830
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
831
- model = models.CreateRedisBigKeyAnalysisTaskRequest()
831
+ model = models.DescribeAuditLogFilesRequest()
832
832
  model.from_json_string(json.dumps(args))
833
833
  start_time = time.time()
834
834
  while True:
835
- rsp = client.CreateRedisBigKeyAnalysisTask(model)
835
+ rsp = client.DescribeAuditLogFiles(model)
836
836
  result = rsp.to_json_string()
837
837
  try:
838
838
  json_obj = json.loads(result)
@@ -851,7 +851,7 @@ def doCreateRedisBigKeyAnalysisTask(args, parsed_globals):
851
851
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
852
852
 
853
853
 
854
- def doModifyAlarmPolicy(args, parsed_globals):
854
+ def doCreateRedisBigKeyAnalysisTask(args, parsed_globals):
855
855
  g_param = parse_global_arg(parsed_globals)
856
856
 
857
857
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -880,11 +880,11 @@ def doModifyAlarmPolicy(args, parsed_globals):
880
880
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
881
881
  client._sdkVersion += ("_CLI_" + __version__)
882
882
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
883
- model = models.ModifyAlarmPolicyRequest()
883
+ model = models.CreateRedisBigKeyAnalysisTaskRequest()
884
884
  model.from_json_string(json.dumps(args))
885
885
  start_time = time.time()
886
886
  while True:
887
- rsp = client.ModifyAlarmPolicy(model)
887
+ rsp = client.CreateRedisBigKeyAnalysisTask(model)
888
888
  result = rsp.to_json_string()
889
889
  try:
890
890
  json_obj = json.loads(result)
@@ -2047,6 +2047,58 @@ def doDescribeRedisCommandCostStatistics(args, parsed_globals):
2047
2047
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2048
2048
 
2049
2049
 
2050
+ def doDescribeRedisTopCostCommands(args, parsed_globals):
2051
+ g_param = parse_global_arg(parsed_globals)
2052
+
2053
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2054
+ cred = credential.CVMRoleCredential()
2055
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2056
+ cred = credential.STSAssumeRoleCredential(
2057
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2058
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2059
+ )
2060
+ 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):
2061
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2062
+ else:
2063
+ cred = credential.Credential(
2064
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2065
+ )
2066
+ http_profile = HttpProfile(
2067
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2068
+ reqMethod="POST",
2069
+ endpoint=g_param[OptionsDefine.Endpoint],
2070
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2071
+ )
2072
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2073
+ if g_param[OptionsDefine.Language]:
2074
+ profile.language = g_param[OptionsDefine.Language]
2075
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2076
+ client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
2077
+ client._sdkVersion += ("_CLI_" + __version__)
2078
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2079
+ model = models.DescribeRedisTopCostCommandsRequest()
2080
+ model.from_json_string(json.dumps(args))
2081
+ start_time = time.time()
2082
+ while True:
2083
+ rsp = client.DescribeRedisTopCostCommands(model)
2084
+ result = rsp.to_json_string()
2085
+ try:
2086
+ json_obj = json.loads(result)
2087
+ except TypeError as e:
2088
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2089
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2090
+ break
2091
+ cur_time = time.time()
2092
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2093
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2094
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2095
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2096
+ else:
2097
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2098
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2099
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2100
+
2101
+
2050
2102
  def doCreateAuditLogFile(args, parsed_globals):
2051
2103
  g_param = parse_global_arg(parsed_globals)
2052
2104
 
@@ -2723,6 +2775,58 @@ def doDescribeTopSpaceSchemaTimeSeries(args, parsed_globals):
2723
2775
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2724
2776
 
2725
2777
 
2778
+ def doDescribeHealthScoreTimeSeries(args, parsed_globals):
2779
+ g_param = parse_global_arg(parsed_globals)
2780
+
2781
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2782
+ cred = credential.CVMRoleCredential()
2783
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2784
+ cred = credential.STSAssumeRoleCredential(
2785
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2786
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2787
+ )
2788
+ 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):
2789
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2790
+ else:
2791
+ cred = credential.Credential(
2792
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2793
+ )
2794
+ http_profile = HttpProfile(
2795
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2796
+ reqMethod="POST",
2797
+ endpoint=g_param[OptionsDefine.Endpoint],
2798
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2799
+ )
2800
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2801
+ if g_param[OptionsDefine.Language]:
2802
+ profile.language = g_param[OptionsDefine.Language]
2803
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2804
+ client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
2805
+ client._sdkVersion += ("_CLI_" + __version__)
2806
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2807
+ model = models.DescribeHealthScoreTimeSeriesRequest()
2808
+ model.from_json_string(json.dumps(args))
2809
+ start_time = time.time()
2810
+ while True:
2811
+ rsp = client.DescribeHealthScoreTimeSeries(model)
2812
+ result = rsp.to_json_string()
2813
+ try:
2814
+ json_obj = json.loads(result)
2815
+ except TypeError as e:
2816
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2817
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2818
+ break
2819
+ cur_time = time.time()
2820
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2821
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2822
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2823
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2824
+ else:
2825
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2826
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2827
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2828
+
2829
+
2726
2830
  def doDeleteSqlFilters(args, parsed_globals):
2727
2831
  g_param = parse_global_arg(parsed_globals)
2728
2832
 
@@ -2827,7 +2931,7 @@ def doCancelKillTask(args, parsed_globals):
2827
2931
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2828
2932
 
2829
2933
 
2830
- def doDescribeDiagDBInstances(args, parsed_globals):
2934
+ def doModifyAlarmPolicy(args, parsed_globals):
2831
2935
  g_param = parse_global_arg(parsed_globals)
2832
2936
 
2833
2937
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2856,11 +2960,11 @@ def doDescribeDiagDBInstances(args, parsed_globals):
2856
2960
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
2857
2961
  client._sdkVersion += ("_CLI_" + __version__)
2858
2962
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2859
- model = models.DescribeDiagDBInstancesRequest()
2963
+ model = models.ModifyAlarmPolicyRequest()
2860
2964
  model.from_json_string(json.dumps(args))
2861
2965
  start_time = time.time()
2862
2966
  while True:
2863
- rsp = client.DescribeDiagDBInstances(model)
2967
+ rsp = client.ModifyAlarmPolicy(model)
2864
2968
  result = rsp.to_json_string()
2865
2969
  try:
2866
2970
  json_obj = json.loads(result)
@@ -2931,7 +3035,7 @@ def doCreateUserAutonomyProfile(args, parsed_globals):
2931
3035
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2932
3036
 
2933
3037
 
2934
- def doOpenAuditService(args, parsed_globals):
3038
+ def doCreateMailProfile(args, parsed_globals):
2935
3039
  g_param = parse_global_arg(parsed_globals)
2936
3040
 
2937
3041
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2960,11 +3064,11 @@ def doOpenAuditService(args, parsed_globals):
2960
3064
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
2961
3065
  client._sdkVersion += ("_CLI_" + __version__)
2962
3066
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2963
- model = models.OpenAuditServiceRequest()
3067
+ model = models.CreateMailProfileRequest()
2964
3068
  model.from_json_string(json.dumps(args))
2965
3069
  start_time = time.time()
2966
3070
  while True:
2967
- rsp = client.OpenAuditService(model)
3071
+ rsp = client.CreateMailProfile(model)
2968
3072
  result = rsp.to_json_string()
2969
3073
  try:
2970
3074
  json_obj = json.loads(result)
@@ -3035,7 +3139,7 @@ def doAddUserContact(args, parsed_globals):
3035
3139
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3036
3140
 
3037
3141
 
3038
- def doDescribeIndexRecommendInfo(args, parsed_globals):
3142
+ def doDescribeDiagDBInstances(args, parsed_globals):
3039
3143
  g_param = parse_global_arg(parsed_globals)
3040
3144
 
3041
3145
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3064,11 +3168,11 @@ def doDescribeIndexRecommendInfo(args, parsed_globals):
3064
3168
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
3065
3169
  client._sdkVersion += ("_CLI_" + __version__)
3066
3170
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3067
- model = models.DescribeIndexRecommendInfoRequest()
3171
+ model = models.DescribeDiagDBInstancesRequest()
3068
3172
  model.from_json_string(json.dumps(args))
3069
3173
  start_time = time.time()
3070
3174
  while True:
3071
- rsp = client.DescribeIndexRecommendInfo(model)
3175
+ rsp = client.DescribeDiagDBInstances(model)
3072
3176
  result = rsp.to_json_string()
3073
3177
  try:
3074
3178
  json_obj = json.loads(result)
@@ -4193,7 +4297,7 @@ MODELS_MAP = {
4193
4297
 
4194
4298
  ACTION_MAP = {
4195
4299
  "DescribeDBAutonomyEvents": doDescribeDBAutonomyEvents,
4196
- "VerifyUserAccount": doVerifyUserAccount,
4300
+ "OpenAuditService": doOpenAuditService,
4197
4301
  "DescribeSecurityAuditLogDownloadUrls": doDescribeSecurityAuditLogDownloadUrls,
4198
4302
  "DeleteDBDiagReportTasks": doDeleteDBDiagReportTasks,
4199
4303
  "DescribeMailProfile": doDescribeMailProfile,
@@ -4203,12 +4307,12 @@ ACTION_MAP = {
4203
4307
  "DescribeDBPerfTimeSeries": doDescribeDBPerfTimeSeries,
4204
4308
  "DescribeTopSpaceSchemas": doDescribeTopSpaceSchemas,
4205
4309
  "DescribeMySqlProcessList": doDescribeMySqlProcessList,
4206
- "CreateMailProfile": doCreateMailProfile,
4310
+ "DescribeIndexRecommendInfo": doDescribeIndexRecommendInfo,
4207
4311
  "DescribeDBDiagReportTasks": doDescribeDBDiagReportTasks,
4208
4312
  "CancelDBAutonomyEvent": doCancelDBAutonomyEvent,
4313
+ "VerifyUserAccount": doVerifyUserAccount,
4209
4314
  "DescribeAuditLogFiles": doDescribeAuditLogFiles,
4210
4315
  "CreateRedisBigKeyAnalysisTask": doCreateRedisBigKeyAnalysisTask,
4211
- "ModifyAlarmPolicy": doModifyAlarmPolicy,
4212
4316
  "DeleteAuditLogFile": doDeleteAuditLogFile,
4213
4317
  "DescribeAllUserGroup": doDescribeAllUserGroup,
4214
4318
  "DescribeDBDiagEvents": doDescribeDBDiagEvents,
@@ -4231,6 +4335,7 @@ ACTION_MAP = {
4231
4335
  "DescribeDBAutonomyActions": doDescribeDBAutonomyActions,
4232
4336
  "ModifyAuditService": doModifyAuditService,
4233
4337
  "DescribeRedisCommandCostStatistics": doDescribeRedisCommandCostStatistics,
4338
+ "DescribeRedisTopCostCommands": doDescribeRedisTopCostCommands,
4234
4339
  "CreateAuditLogFile": doCreateAuditLogFile,
4235
4340
  "DescribeRedisTopBigKeys": doDescribeRedisTopBigKeys,
4236
4341
  "DescribeSecurityAuditLogExportTasks": doDescribeSecurityAuditLogExportTasks,
@@ -4244,13 +4349,14 @@ ACTION_MAP = {
4244
4349
  "DescribeRedisTopKeyPrefixList": doDescribeRedisTopKeyPrefixList,
4245
4350
  "DescribeSlowLogTimeSeriesStats": doDescribeSlowLogTimeSeriesStats,
4246
4351
  "DescribeTopSpaceSchemaTimeSeries": doDescribeTopSpaceSchemaTimeSeries,
4352
+ "DescribeHealthScoreTimeSeries": doDescribeHealthScoreTimeSeries,
4247
4353
  "DeleteSqlFilters": doDeleteSqlFilters,
4248
4354
  "CancelKillTask": doCancelKillTask,
4249
- "DescribeDiagDBInstances": doDescribeDiagDBInstances,
4355
+ "ModifyAlarmPolicy": doModifyAlarmPolicy,
4250
4356
  "CreateUserAutonomyProfile": doCreateUserAutonomyProfile,
4251
- "OpenAuditService": doOpenAuditService,
4357
+ "CreateMailProfile": doCreateMailProfile,
4252
4358
  "AddUserContact": doAddUserContact,
4253
- "DescribeIndexRecommendInfo": doDescribeIndexRecommendInfo,
4359
+ "DescribeDiagDBInstances": doDescribeDiagDBInstances,
4254
4360
  "DescribeIndexRecommendAggregationSlowLogs": doDescribeIndexRecommendAggregationSlowLogs,
4255
4361
  "DescribeProxyProcessStatistics": doDescribeProxyProcessStatistics,
4256
4362
  "CancelDBAutonomyAction": doCancelDBAutonomyAction,
@@ -273,6 +273,13 @@
273
273
  "output": "DescribeHealthScoreResponse",
274
274
  "status": "online"
275
275
  },
276
+ "DescribeHealthScoreTimeSeries": {
277
+ "document": "获取指定时间段内的健康得分趋势",
278
+ "input": "DescribeHealthScoreTimeSeriesRequest",
279
+ "name": "获取实例健康得分趋势",
280
+ "output": "DescribeHealthScoreTimeSeriesResponse",
281
+ "status": "online"
282
+ },
276
283
  "DescribeIndexRecommendAggregationSlowLogs": {
277
284
  "document": "查询某张表的慢查模板概览,这个接口是对用户点击对应的推荐索引后,展示慢日志用的",
278
285
  "input": "DescribeIndexRecommendAggregationSlowLogsRequest",
@@ -371,6 +378,13 @@
371
378
  "output": "DescribeRedisTopBigKeysResponse",
372
379
  "status": "online"
373
380
  },
381
+ "DescribeRedisTopCostCommands": {
382
+ "document": "获取指定时间段内Redis 访问命令 cost top N",
383
+ "input": "DescribeRedisTopCostCommandsRequest",
384
+ "name": "查询访问命令Cost TopN",
385
+ "output": "DescribeRedisTopCostCommandsResponse",
386
+ "status": "online"
387
+ },
374
388
  "DescribeRedisTopHotKeys": {
375
389
  "document": "热Key分析",
376
390
  "input": "DescribeRedisTopHotKeysRequest",
@@ -4505,6 +4519,70 @@
4505
4519
  ],
4506
4520
  "type": "object"
4507
4521
  },
4522
+ "DescribeHealthScoreTimeSeriesRequest": {
4523
+ "document": "DescribeHealthScoreTimeSeries请求参数结构体",
4524
+ "members": [
4525
+ {
4526
+ "disabled": false,
4527
+ "document": "开始时间,如“2021-05-27 00:00:00”,支持的最早查询时间为当前时间的前30天。",
4528
+ "example": "2025-09-03T10:41:59+08:00",
4529
+ "member": "datetime_iso",
4530
+ "name": "StartTime",
4531
+ "required": true,
4532
+ "type": "string"
4533
+ },
4534
+ {
4535
+ "disabled": false,
4536
+ "document": "结束时间,如“2021-05-27 01:00:00”,支持的最早查询时间为当前时间的前30天。",
4537
+ "example": "2025-09-03T10:41:59+08:00",
4538
+ "member": "datetime_iso",
4539
+ "name": "EndTime",
4540
+ "required": true,
4541
+ "type": "string"
4542
+ },
4543
+ {
4544
+ "disabled": false,
4545
+ "document": "实例ID列表。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。",
4546
+ "example": "cdb-test",
4547
+ "member": "string",
4548
+ "name": "InstanceId",
4549
+ "required": true,
4550
+ "type": "string"
4551
+ },
4552
+ {
4553
+ "disabled": false,
4554
+ "document": "服务产品类型,支持值包括:\"mysql\" - 云数据库 MySQL,\"redis\" - 云数据库 Redis,\"mariadb\"-数据库mariadb 默认为\"mysql\"。",
4555
+ "example": "cdb",
4556
+ "member": "string",
4557
+ "name": "Product",
4558
+ "required": true,
4559
+ "type": "string"
4560
+ }
4561
+ ],
4562
+ "type": "object"
4563
+ },
4564
+ "DescribeHealthScoreTimeSeriesResponse": {
4565
+ "document": "DescribeHealthScoreTimeSeries返回参数结构体",
4566
+ "members": [
4567
+ {
4568
+ "disabled": false,
4569
+ "document": "健康得分趋势数据",
4570
+ "example": "无",
4571
+ "member": "HealthScoreTimeSeriesData",
4572
+ "name": "Data",
4573
+ "output_required": true,
4574
+ "type": "object",
4575
+ "value_allowed_null": false
4576
+ },
4577
+ {
4578
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4579
+ "member": "string",
4580
+ "name": "RequestId",
4581
+ "type": "string"
4582
+ }
4583
+ ],
4584
+ "type": "object"
4585
+ },
4508
4586
  "DescribeIndexRecommendAggregationSlowLogsRequest": {
4509
4587
  "document": "DescribeIndexRecommendAggregationSlowLogs请求参数结构体",
4510
4588
  "members": [
@@ -5768,6 +5846,79 @@
5768
5846
  ],
5769
5847
  "type": "object"
5770
5848
  },
5849
+ "DescribeRedisTopCostCommandsRequest": {
5850
+ "document": "DescribeRedisTopCostCommands请求参数结构体",
5851
+ "members": [
5852
+ {
5853
+ "disabled": false,
5854
+ "document": "开始时间,如“2021-05-27 00:00:00”,支持的最早查询时间为当前时间的前30天。",
5855
+ "example": "2025-09-03T10:41:59+08:00",
5856
+ "member": "datetime_iso",
5857
+ "name": "StartTime",
5858
+ "required": true,
5859
+ "type": "string"
5860
+ },
5861
+ {
5862
+ "disabled": false,
5863
+ "document": "结束时间,如“2021-05-27 01:00:00”,支持的最早查询时间为当前时间的前30天。",
5864
+ "example": "2025-09-03T10:41:59+08:00",
5865
+ "member": "datetime_iso",
5866
+ "name": "EndTime",
5867
+ "required": true,
5868
+ "type": "string"
5869
+ },
5870
+ {
5871
+ "disabled": false,
5872
+ "document": "实例ID列表。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。",
5873
+ "example": "crs-ml76e662g",
5874
+ "member": "string",
5875
+ "name": "InstanceId",
5876
+ "required": true,
5877
+ "type": "string"
5878
+ },
5879
+ {
5880
+ "disabled": false,
5881
+ "document": "服务产品类型,支持值包括:\"mysql\" - 云数据库 MySQL,\"redis\" - 云数据库 Redis,\"mariadb\"-数据库mariadb 默认为\"mysql\"。",
5882
+ "example": "redis",
5883
+ "member": "string",
5884
+ "name": "Product",
5885
+ "required": true,
5886
+ "type": "string"
5887
+ },
5888
+ {
5889
+ "disabled": false,
5890
+ "document": "默认前20条",
5891
+ "example": "20",
5892
+ "member": "uint64",
5893
+ "name": "Limit",
5894
+ "required": false,
5895
+ "type": "int"
5896
+ }
5897
+ ],
5898
+ "type": "object"
5899
+ },
5900
+ "DescribeRedisTopCostCommandsResponse": {
5901
+ "document": "DescribeRedisTopCostCommands返回参数结构体",
5902
+ "members": [
5903
+ {
5904
+ "disabled": false,
5905
+ "document": "命令列表",
5906
+ "example": "无",
5907
+ "member": "RedisCostCmd",
5908
+ "name": "TopCostCmdList",
5909
+ "output_required": true,
5910
+ "type": "list",
5911
+ "value_allowed_null": false
5912
+ },
5913
+ {
5914
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5915
+ "member": "string",
5916
+ "name": "RequestId",
5917
+ "type": "string"
5918
+ }
5919
+ ],
5920
+ "type": "object"
5921
+ },
5771
5922
  "DescribeRedisTopHotKeysRequest": {
5772
5923
  "document": "DescribeRedisTopHotKeys请求参数结构体",
5773
5924
  "members": [
@@ -7777,6 +7928,72 @@
7777
7928
  ],
7778
7929
  "usage": "out"
7779
7930
  },
7931
+ "HealthScoreTimeSeriesData": {
7932
+ "document": "健康得分趋势",
7933
+ "members": [
7934
+ {
7935
+ "disabled": false,
7936
+ "document": "平均得分",
7937
+ "example": "98.5",
7938
+ "member": "float",
7939
+ "name": "Avg",
7940
+ "output_required": true,
7941
+ "type": "float",
7942
+ "value_allowed_null": false
7943
+ },
7944
+ {
7945
+ "disabled": false,
7946
+ "document": "健康状态\n1-health\n2-warning\n3-critical",
7947
+ "example": "1",
7948
+ "member": "uint64",
7949
+ "name": "HealthStatus",
7950
+ "output_required": true,
7951
+ "type": "int",
7952
+ "value_allowed_null": false
7953
+ },
7954
+ {
7955
+ "disabled": false,
7956
+ "document": "指标名称",
7957
+ "example": "health_score",
7958
+ "member": "string",
7959
+ "name": "Metric",
7960
+ "output_required": true,
7961
+ "type": "string",
7962
+ "value_allowed_null": false
7963
+ },
7964
+ {
7965
+ "disabled": false,
7966
+ "document": "得分序列",
7967
+ "example": " [100, 100, 100]",
7968
+ "member": "uint64",
7969
+ "name": "Series",
7970
+ "output_required": true,
7971
+ "type": "list",
7972
+ "value_allowed_null": false
7973
+ },
7974
+ {
7975
+ "disabled": false,
7976
+ "document": "时间序列,单位:毫秒数",
7977
+ "example": " [1757174400, 1757174700, 1757175000]",
7978
+ "member": "uint64",
7979
+ "name": "Timestamp",
7980
+ "output_required": true,
7981
+ "type": "list",
7982
+ "value_allowed_null": false
7983
+ },
7984
+ {
7985
+ "disabled": false,
7986
+ "document": "单位",
7987
+ "example": "分",
7988
+ "member": "string",
7989
+ "name": "Unit",
7990
+ "output_required": true,
7991
+ "type": "string",
7992
+ "value_allowed_null": false
7993
+ }
7994
+ ],
7995
+ "usage": "out"
7996
+ },
7780
7997
  "HealthStatus": {
7781
7998
  "document": "实例健康详情。",
7782
7999
  "members": [
@@ -9846,6 +10063,32 @@
9846
10063
  ],
9847
10064
  "usage": "out"
9848
10065
  },
10066
+ "RedisCostCmd": {
10067
+ "document": "redis命令cost详情",
10068
+ "members": [
10069
+ {
10070
+ "disabled": false,
10071
+ "document": "命令",
10072
+ "example": "ping",
10073
+ "member": "string",
10074
+ "name": "Cmd",
10075
+ "output_required": true,
10076
+ "type": "string",
10077
+ "value_allowed_null": false
10078
+ },
10079
+ {
10080
+ "disabled": false,
10081
+ "document": "最大cost",
10082
+ "example": "2",
10083
+ "member": "uint64",
10084
+ "name": "MaxCost",
10085
+ "output_required": true,
10086
+ "type": "int",
10087
+ "value_allowed_null": false
10088
+ }
10089
+ ],
10090
+ "usage": "out"
10091
+ },
9849
10092
  "RedisInstanceConf": {
9850
10093
  "document": "Redis实例内存配置参数",
9851
10094
  "members": [