tencentcloud-sdk-python 3.0.1491__py2.py3-none-any.whl → 3.1.6__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 (391) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aai/v20180522/aai_client_async.py +100 -0
  3. tencentcloud/aca/v20210323/aca_client_async.py +170 -0
  4. tencentcloud/acp/v20220105/acp_client_async.py +170 -0
  5. tencentcloud/advisor/v20200721/advisor_client_async.py +62 -0
  6. tencentcloud/af/v20200226/af_client_async.py +86 -0
  7. tencentcloud/afc/v20200226/afc_client_async.py +82 -0
  8. tencentcloud/ags/v20250920/ags_client_async.py +243 -0
  9. tencentcloud/ai3d/v20250513/ai3d_client_async.py +102 -0
  10. tencentcloud/aiart/v20221229/aiart_client_async.py +513 -0
  11. tencentcloud/ame/v20190916/ame_client_async.py +586 -0
  12. tencentcloud/ams/v20200608/ams_client_async.py +179 -0
  13. tencentcloud/ams/v20201229/ams_client_async.py +169 -0
  14. tencentcloud/anicloud/v20220923/anicloud_client_async.py +80 -0
  15. tencentcloud/antiddos/v20200309/antiddos_client_async.py +1718 -0
  16. tencentcloud/ape/v20200513/ape_client_async.py +170 -0
  17. tencentcloud/api/v20201106/api_client_async.py +80 -0
  18. tencentcloud/apigateway/v20180808/apigateway_client_async.py +1830 -0
  19. tencentcloud/apm/v20210622/apm_client_async.py +495 -0
  20. tencentcloud/asr/v20190614/asr_client_async.py +647 -0
  21. tencentcloud/asw/v20200722/asw_client_async.py +188 -0
  22. tencentcloud/autoscaling/v20180419/autoscaling_client.py +1 -0
  23. tencentcloud/autoscaling/v20180419/autoscaling_client_async.py +1230 -0
  24. tencentcloud/autoscaling/v20180419/models.py +36 -0
  25. tencentcloud/ba/v20200720/ba_client_async.py +81 -0
  26. tencentcloud/batch/v20170312/batch_client_async.py +582 -0
  27. tencentcloud/bda/v20200324/bda_client_async.py +116 -0
  28. tencentcloud/bh/v20230418/bh_client.py +230 -0
  29. tencentcloud/bh/v20230418/bh_client_async.py +1844 -0
  30. tencentcloud/bh/v20230418/models.py +1677 -216
  31. tencentcloud/bi/v20220105/bi_client_async.py +548 -0
  32. tencentcloud/billing/v20180709/billing_client_async.py +1149 -0
  33. tencentcloud/bizlive/v20190313/bizlive_client_async.py +134 -0
  34. tencentcloud/bm/v20180423/bm_client_async.py +1012 -0
  35. tencentcloud/bma/v20210624/bma_client_async.py +530 -0
  36. tencentcloud/bma/v20221115/bma_client_async.py +224 -0
  37. tencentcloud/bmeip/v20180625/bmeip_client_async.py +386 -0
  38. tencentcloud/bmlb/v20180625/bmlb_client_async.py +908 -0
  39. tencentcloud/bmvpc/v20180625/bmvpc_client_async.py +1171 -0
  40. tencentcloud/bpaas/v20181217/bpaas_client_async.py +62 -0
  41. tencentcloud/bri/v20190328/bri_client_async.py +58 -0
  42. tencentcloud/bsca/v20210811/bsca_client_async.py +152 -0
  43. tencentcloud/btoe/v20210303/btoe_client_async.py +267 -0
  44. tencentcloud/btoe/v20210514/btoe_client_async.py +287 -0
  45. tencentcloud/ca/v20230228/ca_client_async.py +80 -0
  46. tencentcloud/cam/v20190116/cam_client_async.py +1684 -0
  47. tencentcloud/captcha/v20190722/captcha_client_async.py +350 -0
  48. tencentcloud/car/v20220110/car_client_async.py +134 -0
  49. tencentcloud/cat/v20180409/cat_client_async.py +279 -0
  50. tencentcloud/cbs/v20170312/cbs_client_async.py +959 -0
  51. tencentcloud/ccc/v20200210/ccc_client_async.py +1494 -0
  52. tencentcloud/ccc/v20200210/models.py +15 -0
  53. tencentcloud/cdb/v20170320/cdb_client_async.py +3254 -0
  54. tencentcloud/cdb/v20170320/models.py +74 -44
  55. tencentcloud/cdc/v20201214/cdc_client_async.py +440 -0
  56. tencentcloud/cdn/v20180606/cdn_client_async.py +1090 -0
  57. tencentcloud/cds/v20180420/cds_client_async.py +116 -0
  58. tencentcloud/cdwch/v20200915/cdwch_client_async.py +548 -0
  59. tencentcloud/cdwch/v20200915/models.py +34 -4
  60. tencentcloud/cdwdoris/v20211228/cdwdoris_client_async.py +1106 -0
  61. tencentcloud/cdwpg/v20201230/cdwpg_client_async.py +458 -0
  62. tencentcloud/cdz/v20221123/cdz_client_async.py +62 -0
  63. tencentcloud/cfg/v20210820/cfg_client_async.py +332 -0
  64. tencentcloud/cfs/v20190719/cfs_client_async.py +1054 -0
  65. tencentcloud/cfs/v20190719/models.py +40 -0
  66. tencentcloud/cfw/v20190904/cfw_client.py +23 -0
  67. tencentcloud/cfw/v20190904/cfw_client_async.py +2067 -0
  68. tencentcloud/cfw/v20190904/models.py +784 -8
  69. tencentcloud/chc/v20230418/chc_client_async.py +710 -0
  70. tencentcloud/chdfs/v20190718/chdfs_client_async.py +546 -0
  71. tencentcloud/chdfs/v20201112/chdfs_client_async.py +548 -0
  72. tencentcloud/ciam/v20220331/ciam_client_async.py +440 -0
  73. tencentcloud/cii/v20201210/cii_client_async.py +80 -0
  74. tencentcloud/cii/v20210408/cii_client_async.py +262 -0
  75. tencentcloud/cim/v20190318/cim_client_async.py +44 -0
  76. tencentcloud/ckafka/v20190819/ckafka_client.py +92 -0
  77. tencentcloud/ckafka/v20190819/ckafka_client_async.py +1701 -0
  78. tencentcloud/ckafka/v20190819/errorcodes.py +3 -0
  79. tencentcloud/ckafka/v20190819/models.py +741 -62
  80. tencentcloud/clb/v20180317/clb_client_async.py +1683 -0
  81. tencentcloud/cloudapp/v20220530/cloudapp_client_async.py +175 -0
  82. tencentcloud/cloudaudit/v20190319/cloudaudit_client_async.py +372 -0
  83. tencentcloud/cloudhsm/v20191112/cloudhsm_client_async.py +278 -0
  84. tencentcloud/cloudhsm/v20191112/models.py +49 -0
  85. tencentcloud/cloudstudio/v20230508/cloudstudio_client_async.py +188 -0
  86. tencentcloud/cls/v20201016/cls_client.py +92 -0
  87. tencentcloud/cls/v20201016/cls_client_async.py +2362 -0
  88. tencentcloud/cls/v20201016/models.py +1427 -74
  89. tencentcloud/cme/v20191029/cme_client_async.py +983 -0
  90. tencentcloud/cmq/v20190304/cmq_client_async.py +62 -0
  91. tencentcloud/cms/v20190321/cms_client_async.py +134 -0
  92. tencentcloud/common/abstract_client_async.py +654 -0
  93. tencentcloud/common/common_client_async.py +45 -0
  94. tencentcloud/common/http/request_async.py +62 -0
  95. tencentcloud/common/retry_async.py +87 -0
  96. tencentcloud/config/v20220802/config_client_async.py +152 -0
  97. tencentcloud/controlcenter/v20230110/controlcenter_client_async.py +116 -0
  98. tencentcloud/cpdp/v20190820/cpdp_client_async.py +3979 -0
  99. tencentcloud/csip/v20221121/csip_client.py +1 -1
  100. tencentcloud/csip/v20221121/csip_client_async.py +1502 -0
  101. tencentcloud/csip/v20221121/models.py +105 -0
  102. tencentcloud/csxg/v20230303/csxg_client_async.py +116 -0
  103. tencentcloud/ctem/v20231128/ctem_client.py +644 -0
  104. tencentcloud/ctem/v20231128/ctem_client_async.py +1124 -0
  105. tencentcloud/ctem/v20231128/models.py +4999 -711
  106. tencentcloud/ctsdb/v20230202/ctsdb_client_async.py +69 -0
  107. tencentcloud/cvm/v20170312/cvm_client.py +1 -1
  108. tencentcloud/cvm/v20170312/cvm_client_async.py +2025 -0
  109. tencentcloud/cvm/v20170312/errorcodes.py +3 -0
  110. tencentcloud/cvm/v20170312/models.py +14 -14
  111. tencentcloud/cwp/v20180228/cwp_client_async.py +9288 -0
  112. tencentcloud/cws/v20180312/cws_client_async.py +368 -0
  113. tencentcloud/cynosdb/v20190107/cynosdb_client_async.py +3068 -0
  114. tencentcloud/cynosdb/v20190107/models.py +99 -2
  115. tencentcloud/dasb/v20191018/dasb_client_async.py +1160 -0
  116. tencentcloud/dataagent/v20250513/dataagent_client_async.py +224 -0
  117. tencentcloud/dataagent/v20250513/models.py +15 -0
  118. tencentcloud/dayu/v20180709/dayu_client_async.py +2042 -0
  119. tencentcloud/dbbrain/v20191016/dbbrain_client_async.py +530 -0
  120. tencentcloud/dbbrain/v20210527/dbbrain_client.py +23 -0
  121. tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +1538 -0
  122. tencentcloud/dbbrain/v20210527/models.py +463 -12
  123. tencentcloud/dbdc/v20201029/dbdc_client_async.py +134 -0
  124. tencentcloud/dc/v20180410/dc_client_async.py +425 -0
  125. tencentcloud/dcdb/v20180411/dcdb_client_async.py +1541 -0
  126. tencentcloud/dlc/v20210125/dlc_client.py +23 -0
  127. tencentcloud/dlc/v20210125/dlc_client_async.py +3322 -0
  128. tencentcloud/dlc/v20210125/errorcodes.py +9 -0
  129. tencentcloud/dlc/v20210125/models.py +1424 -17
  130. tencentcloud/dnspod/v20210323/dnspod_client_async.py +1710 -0
  131. tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
  132. tencentcloud/dnspod/v20210323/models.py +2 -2
  133. tencentcloud/domain/v20180808/domain_client_async.py +1022 -0
  134. tencentcloud/drm/v20181115/drm_client_async.py +231 -0
  135. tencentcloud/ds/v20180523/ds_client_async.py +244 -0
  136. tencentcloud/dsgc/v20190723/dsgc_client_async.py +2452 -0
  137. tencentcloud/dsgc/v20190723/models.py +36 -36
  138. tencentcloud/dts/v20180330/dts_client_async.py +438 -0
  139. tencentcloud/dts/v20211206/dts_client.py +184 -0
  140. tencentcloud/dts/v20211206/dts_client_async.py +1480 -0
  141. tencentcloud/dts/v20211206/models.py +1275 -98
  142. tencentcloud/eb/v20210416/eb_client_async.py +602 -0
  143. tencentcloud/ecc/v20181213/ecc_client_async.py +100 -0
  144. tencentcloud/ecdn/v20191012/ecdn_client_async.py +162 -0
  145. tencentcloud/ecm/v20190719/ecm_client_async.py +2602 -0
  146. tencentcloud/eiam/v20210420/eiam_client_async.py +782 -0
  147. tencentcloud/eis/v20200715/eis_client_async.py +80 -0
  148. tencentcloud/eis/v20210601/eis_client_async.py +116 -0
  149. tencentcloud/emr/v20190103/emr_client.py +23 -0
  150. tencentcloud/emr/v20190103/emr_client_async.py +1659 -0
  151. tencentcloud/emr/v20190103/models.py +395 -0
  152. tencentcloud/es/v20180416/es_client_async.py +1209 -0
  153. tencentcloud/es/v20250101/es_client.py +6 -5
  154. tencentcloud/es/v20250101/es_client_async.py +216 -0
  155. tencentcloud/es/v20250101/models.py +6 -6
  156. tencentcloud/ess/v20201111/ess_client.py +6 -2
  157. tencentcloud/ess/v20201111/ess_client_async.py +3406 -0
  158. tencentcloud/ess/v20201111/models.py +468 -19
  159. tencentcloud/essbasic/v20201222/essbasic_client_async.py +1029 -0
  160. tencentcloud/essbasic/v20210526/essbasic_client.py +1 -1
  161. tencentcloud/essbasic/v20210526/essbasic_client_async.py +2757 -0
  162. tencentcloud/essbasic/v20210526/models.py +320 -6
  163. tencentcloud/evt/__init__.py +0 -0
  164. tencentcloud/evt/v20250217/__init__.py +0 -0
  165. tencentcloud/evt/v20250217/errorcodes.py +15 -0
  166. tencentcloud/evt/v20250217/evt_client.py +49 -0
  167. tencentcloud/evt/v20250217/evt_client_async.py +44 -0
  168. tencentcloud/evt/v20250217/models.py +228 -0
  169. tencentcloud/facefusion/v20181201/facefusion_client_async.py +86 -0
  170. tencentcloud/facefusion/v20220927/facefusion_client_async.py +83 -0
  171. tencentcloud/faceid/v20180301/errorcodes.py +0 -6
  172. tencentcloud/faceid/v20180301/faceid_client.py +0 -23
  173. tencentcloud/faceid/v20180301/faceid_client_async.py +674 -0
  174. tencentcloud/faceid/v20180301/models.py +45 -195
  175. tencentcloud/fmu/v20191213/fmu_client_async.py +161 -0
  176. tencentcloud/ft/v20200304/ft_client_async.py +134 -0
  177. tencentcloud/gaap/v20180529/gaap_client_async.py +1865 -0
  178. tencentcloud/gme/v20180711/gme_client_async.py +865 -0
  179. tencentcloud/goosefs/v20220519/goosefs_client_async.py +514 -0
  180. tencentcloud/gs/v20191118/gs_client.py +46 -0
  181. tencentcloud/gs/v20191118/gs_client_async.py +1527 -0
  182. tencentcloud/gs/v20191118/models.py +227 -0
  183. tencentcloud/gwlb/v20240906/gwlb_client_async.py +373 -0
  184. tencentcloud/habo/v20181203/habo_client_async.py +62 -0
  185. tencentcloud/hai/v20230812/hai_client_async.py +316 -0
  186. tencentcloud/hasim/v20210716/hasim_client_async.py +422 -0
  187. tencentcloud/hcm/v20181106/hcm_client_async.py +44 -0
  188. tencentcloud/hunyuan/v20230901/hunyuan_client_async.py +469 -0
  189. tencentcloud/iai/v20180301/iai_client.py +0 -44
  190. tencentcloud/iai/v20180301/iai_client_async.py +728 -0
  191. tencentcloud/iai/v20180301/models.py +0 -171
  192. tencentcloud/iai/v20200303/iai_client.py +1 -35
  193. tencentcloud/iai/v20200303/iai_client_async.py +802 -0
  194. tencentcloud/iai/v20200303/models.py +0 -175
  195. tencentcloud/iap/v20240713/iap_client_async.py +134 -0
  196. tencentcloud/ic/v20190307/ic_client_async.py +193 -0
  197. tencentcloud/icr/v20211014/icr_client_async.py +44 -0
  198. tencentcloud/ie/v20200304/ie_client_async.py +206 -0
  199. tencentcloud/ig/v20210518/ig_client_async.py +44 -0
  200. tencentcloud/igtm/v20231024/igtm_client_async.py +494 -0
  201. tencentcloud/igtm/v20231024/models.py +110 -0
  202. tencentcloud/ims/v20200713/ims_client_async.py +60 -0
  203. tencentcloud/ims/v20201229/ims_client_async.py +132 -0
  204. tencentcloud/ioa/v20220601/ioa_client_async.py +512 -0
  205. tencentcloud/iot/v20180123/iot_client_async.py +838 -0
  206. tencentcloud/iotcloud/v20180614/iotcloud_client_async.py +1268 -0
  207. tencentcloud/iotcloud/v20210408/iotcloud_client_async.py +1340 -0
  208. tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +161 -0
  209. tencentcloud/iotexplorer/v20190423/iotexplorer_client_async.py +3632 -0
  210. tencentcloud/iotexplorer/v20190423/models.py +1669 -337
  211. tencentcloud/iotvideo/v20191126/iotvideo_client_async.py +1278 -0
  212. tencentcloud/iotvideo/v20201215/iotvideo_client_async.py +1448 -0
  213. tencentcloud/iotvideo/v20211125/iotvideo_client_async.py +1970 -0
  214. tencentcloud/iotvideoindustry/v20201201/iotvideoindustry_client_async.py +1921 -0
  215. tencentcloud/irp/v20220324/irp_client_async.py +98 -0
  216. tencentcloud/irp/v20220805/irp_client_async.py +152 -0
  217. tencentcloud/iss/v20230517/iss_client_async.py +1686 -0
  218. tencentcloud/iss/v20230517/models.py +2 -2
  219. tencentcloud/ivld/v20210903/ivld_client_async.py +636 -0
  220. tencentcloud/keewidb/v20220308/keewidb_client_async.py +711 -0
  221. tencentcloud/kms/v20190118/kms_client_async.py +1252 -0
  222. tencentcloud/lcic/v20220817/lcic_client_async.py +1331 -0
  223. tencentcloud/lighthouse/v20200324/lighthouse_client_async.py +2331 -0
  224. tencentcloud/live/v20180801/live_client.py +0 -25
  225. tencentcloud/live/v20180801/live_client_async.py +3758 -0
  226. tencentcloud/live/v20180801/models.py +0 -282
  227. tencentcloud/lke/v20231130/lke_client_async.py +1923 -0
  228. tencentcloud/lke/v20231130/models.py +82 -0
  229. tencentcloud/lkeap/v20240522/lkeap_client.py +3 -13
  230. tencentcloud/lkeap/v20240522/lkeap_client_async.py +618 -0
  231. tencentcloud/lowcode/v20210108/lowcode_client_async.py +332 -0
  232. tencentcloud/mall/v20230518/mall_client_async.py +44 -0
  233. tencentcloud/mariadb/v20170312/mariadb_client_async.py +1505 -0
  234. tencentcloud/market/v20191010/market_client_async.py +62 -0
  235. tencentcloud/memcached/v20190318/memcached_client_async.py +44 -0
  236. tencentcloud/mmps/v20200710/mmps_client_async.py +296 -0
  237. tencentcloud/mna/v20210119/mna_client_async.py +764 -0
  238. tencentcloud/mongodb/v20180408/mongodb_client_async.py +260 -0
  239. tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
  240. tencentcloud/mongodb/v20190725/models.py +390 -2
  241. tencentcloud/mongodb/v20190725/mongodb_client.py +46 -0
  242. tencentcloud/mongodb/v20190725/mongodb_client_async.py +1220 -0
  243. tencentcloud/monitor/v20180724/monitor_client_async.py +3099 -0
  244. tencentcloud/monitor/v20230616/monitor_client_async.py +44 -0
  245. tencentcloud/mps/v20190612/errorcodes.py +9 -0
  246. tencentcloud/mps/v20190612/models.py +2329 -290
  247. tencentcloud/mps/v20190612/mps_client.py +232 -0
  248. tencentcloud/mps/v20190612/mps_client_async.py +2729 -0
  249. tencentcloud/mqtt/v20240516/mqtt_client_async.py +1153 -0
  250. tencentcloud/mrs/v20200910/mrs_client_async.py +231 -0
  251. tencentcloud/ms/v20180408/ms_client_async.py +450 -0
  252. tencentcloud/msp/v20180319/msp_client_async.py +154 -0
  253. tencentcloud/nlp/v20190408/nlp_client_async.py +140 -0
  254. tencentcloud/npp/v20190823/npp_client_async.py +170 -0
  255. tencentcloud/oceanus/v20190422/oceanus_client_async.py +844 -0
  256. tencentcloud/ocr/v20181119/models.py +232 -0
  257. tencentcloud/ocr/v20181119/ocr_client_async.py +2228 -0
  258. tencentcloud/omics/v20221128/omics_client_async.py +386 -0
  259. tencentcloud/organization/v20181225/organization_client_async.py +386 -0
  260. tencentcloud/organization/v20210331/organization_client_async.py +2348 -0
  261. tencentcloud/partners/v20180321/partners_client_async.py +444 -0
  262. tencentcloud/postgres/v20170312/errorcodes.py +6 -0
  263. tencentcloud/postgres/v20170312/postgres_client_async.py +1908 -0
  264. tencentcloud/privatedns/v20201028/errorcodes.py +9 -0
  265. tencentcloud/privatedns/v20201028/models.py +783 -17
  266. tencentcloud/privatedns/v20201028/privatedns_client.py +93 -1
  267. tencentcloud/privatedns/v20201028/privatedns_client_async.py +746 -0
  268. tencentcloud/pts/v20210728/pts_client_async.py +890 -0
  269. tencentcloud/rce/v20201103/rce_client_async.py +224 -0
  270. tencentcloud/redis/v20180412/redis_client_async.py +2008 -0
  271. tencentcloud/region/v20220627/region_client_async.py +80 -0
  272. tencentcloud/rum/v20210622/rum_client_async.py +999 -0
  273. tencentcloud/scf/v20180416/errorcodes.py +6 -0
  274. tencentcloud/scf/v20180416/models.py +263 -0
  275. tencentcloud/scf/v20180416/scf_client_async.py +984 -0
  276. tencentcloud/securitylake/v20240117/securitylake_client_async.py +44 -0
  277. tencentcloud/ses/v20201002/ses_client_async.py +657 -0
  278. tencentcloud/smh/v20210712/smh_client_async.py +296 -0
  279. tencentcloud/smop/v20201203/smop_client_async.py +46 -0
  280. tencentcloud/sms/v20190711/sms_client_async.py +326 -0
  281. tencentcloud/sms/v20210111/sms_client_async.py +365 -0
  282. tencentcloud/soe/v20180724/soe_client_async.py +98 -0
  283. tencentcloud/sqlserver/v20180328/sqlserver_client_async.py +2693 -0
  284. tencentcloud/ssa/v20180608/ssa_client_async.py +440 -0
  285. tencentcloud/ssl/v20191205/ssl_client_async.py +1257 -0
  286. tencentcloud/sslpod/v20190605/sslpod_client_async.py +206 -0
  287. tencentcloud/ssm/v20190923/ssm_client_async.py +468 -0
  288. tencentcloud/sts/v20180813/sts_client_async.py +205 -0
  289. tencentcloud/svp/v20240125/svp_client_async.py +116 -0
  290. tencentcloud/taf/v20200210/taf_client_async.py +44 -0
  291. tencentcloud/tag/v20180813/tag_client_async.py +584 -0
  292. tencentcloud/tat/v20201028/tat_client_async.py +565 -0
  293. tencentcloud/tbaas/v20180416/tbaas_client_async.py +458 -0
  294. tencentcloud/tbp/v20190311/tbp_client_async.py +98 -0
  295. tencentcloud/tbp/v20190627/tbp_client_async.py +62 -0
  296. tencentcloud/tcaplusdb/v20190823/tcaplusdb_client_async.py +986 -0
  297. tencentcloud/tcb/v20180608/tcb_client_async.py +1632 -0
  298. tencentcloud/tcbr/v20220217/models.py +15 -0
  299. tencentcloud/tcbr/v20220217/tcbr_client_async.py +206 -0
  300. tencentcloud/tccatalog/v20241024/tccatalog_client_async.py +98 -0
  301. tencentcloud/tchd/v20230306/tchd_client_async.py +65 -0
  302. tencentcloud/tcm/v20210413/tcm_client_async.py +242 -0
  303. tencentcloud/tcr/v20190924/tcr_client_async.py +2008 -0
  304. tencentcloud/tcss/v20201101/tcss_client_async.py +6169 -0
  305. tencentcloud/tdai/v20250717/models.py +55 -10
  306. tencentcloud/tdai/v20250717/tdai_client.py +1 -1
  307. tencentcloud/tdai/v20250717/tdai_client_async.py +350 -0
  308. tencentcloud/tdcpg/v20211118/tdcpg_client_async.py +482 -0
  309. tencentcloud/tdid/v20210519/tdid_client_async.py +353 -0
  310. tencentcloud/tdmq/v20200217/errorcodes.py +3 -0
  311. tencentcloud/tdmq/v20200217/models.py +636 -904
  312. tencentcloud/tdmq/v20200217/tdmq_client.py +44 -73
  313. tencentcloud/tdmq/v20200217/tdmq_client_async.py +2732 -0
  314. tencentcloud/tds/v20220801/tds_client_async.py +116 -0
  315. tencentcloud/tem/v20201221/tem_client_async.py +332 -0
  316. tencentcloud/tem/v20210701/tem_client_async.py +949 -0
  317. tencentcloud/teo/v20220106/teo_client_async.py +120 -0
  318. tencentcloud/teo/v20220901/models.py +267 -4
  319. tencentcloud/teo/v20220901/teo_client_async.py +3609 -0
  320. tencentcloud/thpc/v20211109/thpc_client_async.py +98 -0
  321. tencentcloud/thpc/v20220401/thpc_client_async.py +321 -0
  322. tencentcloud/thpc/v20230321/models.py +30 -0
  323. tencentcloud/thpc/v20230321/thpc_client_async.py +591 -0
  324. tencentcloud/tia/v20180226/tia_client_async.py +206 -0
  325. tencentcloud/tiia/v20190529/tiia_client_async.py +536 -0
  326. tencentcloud/tione/v20191022/tione_client_async.py +422 -0
  327. tencentcloud/tione/v20211111/tione_client_async.py +1003 -0
  328. tencentcloud/tiw/v20190919/tiw_client_async.py +656 -0
  329. tencentcloud/tke/v20180525/errorcodes.py +3 -0
  330. tencentcloud/tke/v20180525/models.py +3129 -288
  331. tencentcloud/tke/v20180525/tke_client.py +414 -0
  332. tencentcloud/tke/v20180525/tke_client_async.py +4562 -0
  333. tencentcloud/tke/v20220501/tke_client_async.py +343 -0
  334. tencentcloud/tkgdq/v20190411/tkgdq_client_async.py +80 -0
  335. tencentcloud/tms/v20200713/tms_client_async.py +98 -0
  336. tencentcloud/tms/v20201229/tms_client_async.py +97 -0
  337. tencentcloud/tmt/v20180321/tmt_client_async.py +183 -0
  338. tencentcloud/tourism/v20230215/tourism_client_async.py +44 -0
  339. tencentcloud/trabbit/v20230418/trabbit_client_async.py +548 -0
  340. tencentcloud/trocket/v20230308/trocket_client_async.py +1390 -0
  341. tencentcloud/trp/v20210515/trp_client_async.py +1002 -0
  342. tencentcloud/trro/v20220325/trro_client_async.py +588 -0
  343. tencentcloud/trtc/v20190722/errorcodes.py +3 -0
  344. tencentcloud/trtc/v20190722/models.py +21 -6
  345. tencentcloud/trtc/v20190722/trtc_client.py +1 -0
  346. tencentcloud/trtc/v20190722/trtc_client_async.py +1516 -0
  347. tencentcloud/tse/v20201207/tse_client_async.py +2240 -0
  348. tencentcloud/tsf/v20180326/models.py +4 -4
  349. tencentcloud/tsf/v20180326/tsf_client_async.py +4143 -0
  350. tencentcloud/tsi/v20210325/tsi_client_async.py +104 -0
  351. tencentcloud/tsw/v20200924/tsw_client_async.py +44 -0
  352. tencentcloud/tsw/v20210412/tsw_client_async.py +80 -0
  353. tencentcloud/tts/v20190823/tts_client_async.py +107 -0
  354. tencentcloud/vcg/v20240404/vcg_client_async.py +62 -0
  355. tencentcloud/vclm/v20240523/errorcodes.py +27 -0
  356. tencentcloud/vclm/v20240523/models.py +415 -16
  357. tencentcloud/vclm/v20240523/vclm_client.py +47 -0
  358. tencentcloud/vclm/v20240523/vclm_client_async.py +263 -0
  359. tencentcloud/vcube/v20220410/models.py +98 -0
  360. tencentcloud/vcube/v20220410/vcube_client.py +46 -0
  361. tencentcloud/vcube/v20220410/vcube_client_async.py +674 -0
  362. tencentcloud/vdb/v20230616/vdb_client_async.py +278 -0
  363. tencentcloud/vm/v20200709/vm_client_async.py +120 -0
  364. tencentcloud/vm/v20201229/vm_client_async.py +139 -0
  365. tencentcloud/vm/v20210922/models.py +2 -2
  366. tencentcloud/vm/v20210922/vm_client_async.py +148 -0
  367. tencentcloud/vms/v20200902/vms_client_async.py +62 -0
  368. tencentcloud/vod/v20180717/models.py +6 -2
  369. tencentcloud/vod/v20180717/vod_client_async.py +3712 -0
  370. tencentcloud/vod/v20240718/vod_client_async.py +160 -0
  371. tencentcloud/vpc/v20170312/vpc_client_async.py +8139 -0
  372. tencentcloud/vrs/v20200824/vrs_client_async.py +182 -0
  373. tencentcloud/vtc/v20240223/vtc_client_async.py +132 -0
  374. tencentcloud/waf/v20180125/models.py +3924 -0
  375. tencentcloud/waf/v20180125/waf_client.py +230 -0
  376. tencentcloud/waf/v20180125/waf_client_async.py +3542 -0
  377. tencentcloud/wav/v20210129/wav_client_async.py +494 -0
  378. tencentcloud/wedata/v20210820/wedata_client_async.py +5384 -0
  379. tencentcloud/wedata/v20250806/wedata_client_async.py +2168 -0
  380. tencentcloud/weilingwith/v20230427/weilingwith_client_async.py +1180 -0
  381. tencentcloud/wsa/v20250508/wsa_client_async.py +44 -0
  382. tencentcloud/wss/v20180426/wss_client_async.py +80 -0
  383. tencentcloud/yinsuda/v20220527/yinsuda_client_async.py +386 -0
  384. tencentcloud/yunjing/v20180228/yunjing_client_async.py +1826 -0
  385. tencentcloud/yunsou/v20180504/yunsou_client_async.py +62 -0
  386. tencentcloud/yunsou/v20191115/yunsou_client_async.py +62 -0
  387. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/METADATA +3 -1
  388. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/RECORD +391 -103
  389. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/LICENSE +0 -0
  390. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/WHEEL +0 -0
  391. {tencentcloud_sdk_python-3.0.1491.dist-info → tencentcloud_sdk_python-3.1.6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2362 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.cls.v20201016 import models
20
+ from typing import Dict
21
+
22
+
23
+ class ClsClient(AbstractClient):
24
+ _apiVersion = '2020-10-16'
25
+ _endpoint = 'cls.tencentcloudapi.com'
26
+ _service = 'cls'
27
+
28
+ async def AddMachineGroupInfo(
29
+ self,
30
+ request: models.AddMachineGroupInfoRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AddMachineGroupInfoResponse:
33
+ """
34
+ 用于添加机器组信息
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AddMachineGroupInfo"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AddMachineGroupInfoResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def ApplyConfigToMachineGroup(
47
+ self,
48
+ request: models.ApplyConfigToMachineGroupRequest,
49
+ opts: Dict = None,
50
+ ) -> models.ApplyConfigToMachineGroupResponse:
51
+ """
52
+ 应用采集配置到指定机器组
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "ApplyConfigToMachineGroup"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.ApplyConfigToMachineGroupResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def CheckFunction(
65
+ self,
66
+ request: models.CheckFunctionRequest,
67
+ opts: Dict = None,
68
+ ) -> models.CheckFunctionResponse:
69
+ """
70
+ 本接口用于数据加工DSL函数的语法校验。
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "CheckFunction"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.CheckFunctionResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def CheckRechargeKafkaServer(
83
+ self,
84
+ request: models.CheckRechargeKafkaServerRequest,
85
+ opts: Dict = None,
86
+ ) -> models.CheckRechargeKafkaServerResponse:
87
+ """
88
+ 本接口用于校验Kafka服务集群是否可以正常访问
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "CheckRechargeKafkaServer"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.CheckRechargeKafkaServerResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def CloseKafkaConsumer(
101
+ self,
102
+ request: models.CloseKafkaConsumerRequest,
103
+ opts: Dict = None,
104
+ ) -> models.CloseKafkaConsumerResponse:
105
+ """
106
+ 关闭Kafka协议消费
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "CloseKafkaConsumer"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.CloseKafkaConsumerResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def CreateAlarm(
119
+ self,
120
+ request: models.CreateAlarmRequest,
121
+ opts: Dict = None,
122
+ ) -> models.CreateAlarmResponse:
123
+ """
124
+ 本接口用于创建告警策略。
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "CreateAlarm"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.CreateAlarmResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def CreateAlarmNotice(
137
+ self,
138
+ request: models.CreateAlarmNoticeRequest,
139
+ opts: Dict = None,
140
+ ) -> models.CreateAlarmNoticeResponse:
141
+ """
142
+ 该接口用于创建通知渠道组,提供两种配置模式,二选一:
143
+ 1,简易模式,提供最基本的通知渠道功能。需填写如下参数:
144
+ - Type
145
+ - NoticeReceivers
146
+ - WebCallbacks
147
+
148
+ 2,高级模式,在简易模式基础上,支持设定规则,为不同类型的告警分别设定通知渠道,并支持告警升级功能。需填写如下参数:
149
+ - NoticeRules
150
+ """
151
+
152
+ kwargs = {}
153
+ kwargs["action"] = "CreateAlarmNotice"
154
+ kwargs["params"] = request._serialize()
155
+ kwargs["resp_cls"] = models.CreateAlarmNoticeResponse
156
+ kwargs["headers"] = request.headers
157
+ kwargs["opts"] = opts or {}
158
+
159
+ return await self.call_and_deserialize(**kwargs)
160
+
161
+ async def CreateAlarmShield(
162
+ self,
163
+ request: models.CreateAlarmShieldRequest,
164
+ opts: Dict = None,
165
+ ) -> models.CreateAlarmShieldResponse:
166
+ """
167
+ 该接口用于创建告警屏蔽规则。
168
+ """
169
+
170
+ kwargs = {}
171
+ kwargs["action"] = "CreateAlarmShield"
172
+ kwargs["params"] = request._serialize()
173
+ kwargs["resp_cls"] = models.CreateAlarmShieldResponse
174
+ kwargs["headers"] = request.headers
175
+ kwargs["opts"] = opts or {}
176
+
177
+ return await self.call_and_deserialize(**kwargs)
178
+
179
+ async def CreateCloudProductLogCollection(
180
+ self,
181
+ request: models.CreateCloudProductLogCollectionRequest,
182
+ opts: Dict = None,
183
+ ) -> models.CreateCloudProductLogCollectionResponse:
184
+ """
185
+ 内部云产品接入使用相关接口
186
+ """
187
+
188
+ kwargs = {}
189
+ kwargs["action"] = "CreateCloudProductLogCollection"
190
+ kwargs["params"] = request._serialize()
191
+ kwargs["resp_cls"] = models.CreateCloudProductLogCollectionResponse
192
+ kwargs["headers"] = request.headers
193
+ kwargs["opts"] = opts or {}
194
+
195
+ return await self.call_and_deserialize(**kwargs)
196
+
197
+ async def CreateConfig(
198
+ self,
199
+ request: models.CreateConfigRequest,
200
+ opts: Dict = None,
201
+ ) -> models.CreateConfigResponse:
202
+ """
203
+ 创建采集规则配置
204
+ """
205
+
206
+ kwargs = {}
207
+ kwargs["action"] = "CreateConfig"
208
+ kwargs["params"] = request._serialize()
209
+ kwargs["resp_cls"] = models.CreateConfigResponse
210
+ kwargs["headers"] = request.headers
211
+ kwargs["opts"] = opts or {}
212
+
213
+ return await self.call_and_deserialize(**kwargs)
214
+
215
+ async def CreateConfigExtra(
216
+ self,
217
+ request: models.CreateConfigExtraRequest,
218
+ opts: Dict = None,
219
+ ) -> models.CreateConfigExtraResponse:
220
+ """
221
+ 本接口用于创建特殊采集配置任务,特殊采集配置应用于自建K8S环境的采集Agent
222
+ """
223
+
224
+ kwargs = {}
225
+ kwargs["action"] = "CreateConfigExtra"
226
+ kwargs["params"] = request._serialize()
227
+ kwargs["resp_cls"] = models.CreateConfigExtraResponse
228
+ kwargs["headers"] = request.headers
229
+ kwargs["opts"] = opts or {}
230
+
231
+ return await self.call_and_deserialize(**kwargs)
232
+
233
+ async def CreateConsoleSharing(
234
+ self,
235
+ request: models.CreateConsoleSharingRequest,
236
+ opts: Dict = None,
237
+ ) -> models.CreateConsoleSharingResponse:
238
+ """
239
+ 创建控制台分享
240
+ """
241
+
242
+ kwargs = {}
243
+ kwargs["action"] = "CreateConsoleSharing"
244
+ kwargs["params"] = request._serialize()
245
+ kwargs["resp_cls"] = models.CreateConsoleSharingResponse
246
+ kwargs["headers"] = request.headers
247
+ kwargs["opts"] = opts or {}
248
+
249
+ return await self.call_and_deserialize(**kwargs)
250
+
251
+ async def CreateConsumer(
252
+ self,
253
+ request: models.CreateConsumerRequest,
254
+ opts: Dict = None,
255
+ ) -> models.CreateConsumerResponse:
256
+ """
257
+ 本接口用于创建投递CKafka任务
258
+ """
259
+
260
+ kwargs = {}
261
+ kwargs["action"] = "CreateConsumer"
262
+ kwargs["params"] = request._serialize()
263
+ kwargs["resp_cls"] = models.CreateConsumerResponse
264
+ kwargs["headers"] = request.headers
265
+ kwargs["opts"] = opts or {}
266
+
267
+ return await self.call_and_deserialize(**kwargs)
268
+
269
+ async def CreateCosRecharge(
270
+ self,
271
+ request: models.CreateCosRechargeRequest,
272
+ opts: Dict = None,
273
+ ) -> models.CreateCosRechargeResponse:
274
+ """
275
+ 本接口用于创建cos导入任务
276
+ """
277
+
278
+ kwargs = {}
279
+ kwargs["action"] = "CreateCosRecharge"
280
+ kwargs["params"] = request._serialize()
281
+ kwargs["resp_cls"] = models.CreateCosRechargeResponse
282
+ kwargs["headers"] = request.headers
283
+ kwargs["opts"] = opts or {}
284
+
285
+ return await self.call_and_deserialize(**kwargs)
286
+
287
+ async def CreateDashboardSubscribe(
288
+ self,
289
+ request: models.CreateDashboardSubscribeRequest,
290
+ opts: Dict = None,
291
+ ) -> models.CreateDashboardSubscribeResponse:
292
+ """
293
+ 此接口用于创建仪表盘订阅
294
+ """
295
+
296
+ kwargs = {}
297
+ kwargs["action"] = "CreateDashboardSubscribe"
298
+ kwargs["params"] = request._serialize()
299
+ kwargs["resp_cls"] = models.CreateDashboardSubscribeResponse
300
+ kwargs["headers"] = request.headers
301
+ kwargs["opts"] = opts or {}
302
+
303
+ return await self.call_and_deserialize(**kwargs)
304
+
305
+ async def CreateDataTransform(
306
+ self,
307
+ request: models.CreateDataTransformRequest,
308
+ opts: Dict = None,
309
+ ) -> models.CreateDataTransformResponse:
310
+ """
311
+ 本接口用于创建数据加工任务。
312
+ """
313
+
314
+ kwargs = {}
315
+ kwargs["action"] = "CreateDataTransform"
316
+ kwargs["params"] = request._serialize()
317
+ kwargs["resp_cls"] = models.CreateDataTransformResponse
318
+ kwargs["headers"] = request.headers
319
+ kwargs["opts"] = opts or {}
320
+
321
+ return await self.call_and_deserialize(**kwargs)
322
+
323
+ async def CreateDeliverCloudFunction(
324
+ self,
325
+ request: models.CreateDeliverCloudFunctionRequest,
326
+ opts: Dict = None,
327
+ ) -> models.CreateDeliverCloudFunctionResponse:
328
+ """
329
+ 本接口用于创建投递SCF任务
330
+ """
331
+
332
+ kwargs = {}
333
+ kwargs["action"] = "CreateDeliverCloudFunction"
334
+ kwargs["params"] = request._serialize()
335
+ kwargs["resp_cls"] = models.CreateDeliverCloudFunctionResponse
336
+ kwargs["headers"] = request.headers
337
+ kwargs["opts"] = opts or {}
338
+
339
+ return await self.call_and_deserialize(**kwargs)
340
+
341
+ async def CreateDlcDeliver(
342
+ self,
343
+ request: models.CreateDlcDeliverRequest,
344
+ opts: Dict = None,
345
+ ) -> models.CreateDlcDeliverResponse:
346
+ """
347
+ 创建DLC投递任务
348
+ """
349
+
350
+ kwargs = {}
351
+ kwargs["action"] = "CreateDlcDeliver"
352
+ kwargs["params"] = request._serialize()
353
+ kwargs["resp_cls"] = models.CreateDlcDeliverResponse
354
+ kwargs["headers"] = request.headers
355
+ kwargs["opts"] = opts or {}
356
+
357
+ return await self.call_and_deserialize(**kwargs)
358
+
359
+ async def CreateExport(
360
+ self,
361
+ request: models.CreateExportRequest,
362
+ opts: Dict = None,
363
+ ) -> models.CreateExportResponse:
364
+ """
365
+ 本接口仅创建下载任务。任务返回的下载地址,请用户调用[DescribeExports](https://cloud.tencent.com/document/product/614/56449)查看任务列表,其中有下载地址CosPath参数。
366
+ """
367
+
368
+ kwargs = {}
369
+ kwargs["action"] = "CreateExport"
370
+ kwargs["params"] = request._serialize()
371
+ kwargs["resp_cls"] = models.CreateExportResponse
372
+ kwargs["headers"] = request.headers
373
+ kwargs["opts"] = opts or {}
374
+
375
+ return await self.call_and_deserialize(**kwargs)
376
+
377
+ async def CreateIndex(
378
+ self,
379
+ request: models.CreateIndexRequest,
380
+ opts: Dict = None,
381
+ ) -> models.CreateIndexResponse:
382
+ """
383
+ 本接口用于创建索引
384
+ """
385
+
386
+ kwargs = {}
387
+ kwargs["action"] = "CreateIndex"
388
+ kwargs["params"] = request._serialize()
389
+ kwargs["resp_cls"] = models.CreateIndexResponse
390
+ kwargs["headers"] = request.headers
391
+ kwargs["opts"] = opts or {}
392
+
393
+ return await self.call_and_deserialize(**kwargs)
394
+
395
+ async def CreateKafkaRecharge(
396
+ self,
397
+ request: models.CreateKafkaRechargeRequest,
398
+ opts: Dict = None,
399
+ ) -> models.CreateKafkaRechargeResponse:
400
+ """
401
+ 本接口用于创建Kafka数据订阅任务
402
+ """
403
+
404
+ kwargs = {}
405
+ kwargs["action"] = "CreateKafkaRecharge"
406
+ kwargs["params"] = request._serialize()
407
+ kwargs["resp_cls"] = models.CreateKafkaRechargeResponse
408
+ kwargs["headers"] = request.headers
409
+ kwargs["opts"] = opts or {}
410
+
411
+ return await self.call_and_deserialize(**kwargs)
412
+
413
+ async def CreateLogset(
414
+ self,
415
+ request: models.CreateLogsetRequest,
416
+ opts: Dict = None,
417
+ ) -> models.CreateLogsetResponse:
418
+ """
419
+ 本接口用于创建日志集,返回新创建的日志集的 ID。
420
+ """
421
+
422
+ kwargs = {}
423
+ kwargs["action"] = "CreateLogset"
424
+ kwargs["params"] = request._serialize()
425
+ kwargs["resp_cls"] = models.CreateLogsetResponse
426
+ kwargs["headers"] = request.headers
427
+ kwargs["opts"] = opts or {}
428
+
429
+ return await self.call_and_deserialize(**kwargs)
430
+
431
+ async def CreateMachineGroup(
432
+ self,
433
+ request: models.CreateMachineGroupRequest,
434
+ opts: Dict = None,
435
+ ) -> models.CreateMachineGroupResponse:
436
+ """
437
+ 创建机器组
438
+ """
439
+
440
+ kwargs = {}
441
+ kwargs["action"] = "CreateMachineGroup"
442
+ kwargs["params"] = request._serialize()
443
+ kwargs["resp_cls"] = models.CreateMachineGroupResponse
444
+ kwargs["headers"] = request.headers
445
+ kwargs["opts"] = opts or {}
446
+
447
+ return await self.call_and_deserialize(**kwargs)
448
+
449
+ async def CreateNoticeContent(
450
+ self,
451
+ request: models.CreateNoticeContentRequest,
452
+ opts: Dict = None,
453
+ ) -> models.CreateNoticeContentResponse:
454
+ """
455
+ 该接口用于创建通知内容。
456
+ """
457
+
458
+ kwargs = {}
459
+ kwargs["action"] = "CreateNoticeContent"
460
+ kwargs["params"] = request._serialize()
461
+ kwargs["resp_cls"] = models.CreateNoticeContentResponse
462
+ kwargs["headers"] = request.headers
463
+ kwargs["opts"] = opts or {}
464
+
465
+ return await self.call_and_deserialize(**kwargs)
466
+
467
+ async def CreateScheduledSql(
468
+ self,
469
+ request: models.CreateScheduledSqlRequest,
470
+ opts: Dict = None,
471
+ ) -> models.CreateScheduledSqlResponse:
472
+ """
473
+ 本接口用于创建定时SQL分析任务
474
+ """
475
+
476
+ kwargs = {}
477
+ kwargs["action"] = "CreateScheduledSql"
478
+ kwargs["params"] = request._serialize()
479
+ kwargs["resp_cls"] = models.CreateScheduledSqlResponse
480
+ kwargs["headers"] = request.headers
481
+ kwargs["opts"] = opts or {}
482
+
483
+ return await self.call_and_deserialize(**kwargs)
484
+
485
+ async def CreateShipper(
486
+ self,
487
+ request: models.CreateShipperRequest,
488
+ opts: Dict = None,
489
+ ) -> models.CreateShipperResponse:
490
+ """
491
+ 新建投递到COS的任务,【!!!注意】使用此接口,需要检查是否配置了投递COS的角色和权限。如果没有配置,请参考文档投递权限查看和配置https://cloud.tencent.com/document/product/614/71623。
492
+ """
493
+
494
+ kwargs = {}
495
+ kwargs["action"] = "CreateShipper"
496
+ kwargs["params"] = request._serialize()
497
+ kwargs["resp_cls"] = models.CreateShipperResponse
498
+ kwargs["headers"] = request.headers
499
+ kwargs["opts"] = opts or {}
500
+
501
+ return await self.call_and_deserialize(**kwargs)
502
+
503
+ async def CreateTopic(
504
+ self,
505
+ request: models.CreateTopicRequest,
506
+ opts: Dict = None,
507
+ ) -> models.CreateTopicResponse:
508
+ """
509
+ 本接口用于创建日志或指标主题。
510
+ """
511
+
512
+ kwargs = {}
513
+ kwargs["action"] = "CreateTopic"
514
+ kwargs["params"] = request._serialize()
515
+ kwargs["resp_cls"] = models.CreateTopicResponse
516
+ kwargs["headers"] = request.headers
517
+ kwargs["opts"] = opts or {}
518
+
519
+ return await self.call_and_deserialize(**kwargs)
520
+
521
+ async def CreateWebCallback(
522
+ self,
523
+ request: models.CreateWebCallbackRequest,
524
+ opts: Dict = None,
525
+ ) -> models.CreateWebCallbackResponse:
526
+ """
527
+ 该接口用于创建告警渠道回调配置。
528
+ """
529
+
530
+ kwargs = {}
531
+ kwargs["action"] = "CreateWebCallback"
532
+ kwargs["params"] = request._serialize()
533
+ kwargs["resp_cls"] = models.CreateWebCallbackResponse
534
+ kwargs["headers"] = request.headers
535
+ kwargs["opts"] = opts or {}
536
+
537
+ return await self.call_and_deserialize(**kwargs)
538
+
539
+ async def DeleteAlarm(
540
+ self,
541
+ request: models.DeleteAlarmRequest,
542
+ opts: Dict = None,
543
+ ) -> models.DeleteAlarmResponse:
544
+ """
545
+ 本接口用于删除告警策略。
546
+ """
547
+
548
+ kwargs = {}
549
+ kwargs["action"] = "DeleteAlarm"
550
+ kwargs["params"] = request._serialize()
551
+ kwargs["resp_cls"] = models.DeleteAlarmResponse
552
+ kwargs["headers"] = request.headers
553
+ kwargs["opts"] = opts or {}
554
+
555
+ return await self.call_and_deserialize(**kwargs)
556
+
557
+ async def DeleteAlarmNotice(
558
+ self,
559
+ request: models.DeleteAlarmNoticeRequest,
560
+ opts: Dict = None,
561
+ ) -> models.DeleteAlarmNoticeResponse:
562
+ """
563
+ 该接口用于删除通知渠道组
564
+ """
565
+
566
+ kwargs = {}
567
+ kwargs["action"] = "DeleteAlarmNotice"
568
+ kwargs["params"] = request._serialize()
569
+ kwargs["resp_cls"] = models.DeleteAlarmNoticeResponse
570
+ kwargs["headers"] = request.headers
571
+ kwargs["opts"] = opts or {}
572
+
573
+ return await self.call_and_deserialize(**kwargs)
574
+
575
+ async def DeleteAlarmShield(
576
+ self,
577
+ request: models.DeleteAlarmShieldRequest,
578
+ opts: Dict = None,
579
+ ) -> models.DeleteAlarmShieldResponse:
580
+ """
581
+ 该接口用于删除告警屏蔽规则。当告警屏蔽规则在生效中或者是在失效中,无法被删除
582
+ """
583
+
584
+ kwargs = {}
585
+ kwargs["action"] = "DeleteAlarmShield"
586
+ kwargs["params"] = request._serialize()
587
+ kwargs["resp_cls"] = models.DeleteAlarmShieldResponse
588
+ kwargs["headers"] = request.headers
589
+ kwargs["opts"] = opts or {}
590
+
591
+ return await self.call_and_deserialize(**kwargs)
592
+
593
+ async def DeleteCloudProductLogCollection(
594
+ self,
595
+ request: models.DeleteCloudProductLogCollectionRequest,
596
+ opts: Dict = None,
597
+ ) -> models.DeleteCloudProductLogCollectionResponse:
598
+ """
599
+ 内部云产品接入使用相关接口
600
+ """
601
+
602
+ kwargs = {}
603
+ kwargs["action"] = "DeleteCloudProductLogCollection"
604
+ kwargs["params"] = request._serialize()
605
+ kwargs["resp_cls"] = models.DeleteCloudProductLogCollectionResponse
606
+ kwargs["headers"] = request.headers
607
+ kwargs["opts"] = opts or {}
608
+
609
+ return await self.call_and_deserialize(**kwargs)
610
+
611
+ async def DeleteConfig(
612
+ self,
613
+ request: models.DeleteConfigRequest,
614
+ opts: Dict = None,
615
+ ) -> models.DeleteConfigResponse:
616
+ """
617
+ 删除采集规则配置
618
+ """
619
+
620
+ kwargs = {}
621
+ kwargs["action"] = "DeleteConfig"
622
+ kwargs["params"] = request._serialize()
623
+ kwargs["resp_cls"] = models.DeleteConfigResponse
624
+ kwargs["headers"] = request.headers
625
+ kwargs["opts"] = opts or {}
626
+
627
+ return await self.call_and_deserialize(**kwargs)
628
+
629
+ async def DeleteConfigExtra(
630
+ self,
631
+ request: models.DeleteConfigExtraRequest,
632
+ opts: Dict = None,
633
+ ) -> models.DeleteConfigExtraResponse:
634
+ """
635
+ 本接口用于删除特殊采集规则配置,特殊采集配置应用于自建K8S环境的采集Agent
636
+ """
637
+
638
+ kwargs = {}
639
+ kwargs["action"] = "DeleteConfigExtra"
640
+ kwargs["params"] = request._serialize()
641
+ kwargs["resp_cls"] = models.DeleteConfigExtraResponse
642
+ kwargs["headers"] = request.headers
643
+ kwargs["opts"] = opts or {}
644
+
645
+ return await self.call_and_deserialize(**kwargs)
646
+
647
+ async def DeleteConfigFromMachineGroup(
648
+ self,
649
+ request: models.DeleteConfigFromMachineGroupRequest,
650
+ opts: Dict = None,
651
+ ) -> models.DeleteConfigFromMachineGroupResponse:
652
+ """
653
+ 删除应用到机器组的采集配置
654
+ """
655
+
656
+ kwargs = {}
657
+ kwargs["action"] = "DeleteConfigFromMachineGroup"
658
+ kwargs["params"] = request._serialize()
659
+ kwargs["resp_cls"] = models.DeleteConfigFromMachineGroupResponse
660
+ kwargs["headers"] = request.headers
661
+ kwargs["opts"] = opts or {}
662
+
663
+ return await self.call_and_deserialize(**kwargs)
664
+
665
+ async def DeleteConsoleSharing(
666
+ self,
667
+ request: models.DeleteConsoleSharingRequest,
668
+ opts: Dict = None,
669
+ ) -> models.DeleteConsoleSharingResponse:
670
+ """
671
+ 删除控制台分享
672
+ """
673
+
674
+ kwargs = {}
675
+ kwargs["action"] = "DeleteConsoleSharing"
676
+ kwargs["params"] = request._serialize()
677
+ kwargs["resp_cls"] = models.DeleteConsoleSharingResponse
678
+ kwargs["headers"] = request.headers
679
+ kwargs["opts"] = opts or {}
680
+
681
+ return await self.call_and_deserialize(**kwargs)
682
+
683
+ async def DeleteConsumer(
684
+ self,
685
+ request: models.DeleteConsumerRequest,
686
+ opts: Dict = None,
687
+ ) -> models.DeleteConsumerResponse:
688
+ """
689
+ 删除投递Ckafka任务
690
+ """
691
+
692
+ kwargs = {}
693
+ kwargs["action"] = "DeleteConsumer"
694
+ kwargs["params"] = request._serialize()
695
+ kwargs["resp_cls"] = models.DeleteConsumerResponse
696
+ kwargs["headers"] = request.headers
697
+ kwargs["opts"] = opts or {}
698
+
699
+ return await self.call_and_deserialize(**kwargs)
700
+
701
+ async def DeleteCosRecharge(
702
+ self,
703
+ request: models.DeleteCosRechargeRequest,
704
+ opts: Dict = None,
705
+ ) -> models.DeleteCosRechargeResponse:
706
+ """
707
+ 本接口用于删除cos导入任务
708
+ """
709
+
710
+ kwargs = {}
711
+ kwargs["action"] = "DeleteCosRecharge"
712
+ kwargs["params"] = request._serialize()
713
+ kwargs["resp_cls"] = models.DeleteCosRechargeResponse
714
+ kwargs["headers"] = request.headers
715
+ kwargs["opts"] = opts or {}
716
+
717
+ return await self.call_and_deserialize(**kwargs)
718
+
719
+ async def DeleteDashboardSubscribe(
720
+ self,
721
+ request: models.DeleteDashboardSubscribeRequest,
722
+ opts: Dict = None,
723
+ ) -> models.DeleteDashboardSubscribeResponse:
724
+ """
725
+ 此接口用于删除仪表盘订阅
726
+ """
727
+
728
+ kwargs = {}
729
+ kwargs["action"] = "DeleteDashboardSubscribe"
730
+ kwargs["params"] = request._serialize()
731
+ kwargs["resp_cls"] = models.DeleteDashboardSubscribeResponse
732
+ kwargs["headers"] = request.headers
733
+ kwargs["opts"] = opts or {}
734
+
735
+ return await self.call_and_deserialize(**kwargs)
736
+
737
+ async def DeleteDataTransform(
738
+ self,
739
+ request: models.DeleteDataTransformRequest,
740
+ opts: Dict = None,
741
+ ) -> models.DeleteDataTransformResponse:
742
+ """
743
+ 本接口用于删除数据加工任务
744
+ """
745
+
746
+ kwargs = {}
747
+ kwargs["action"] = "DeleteDataTransform"
748
+ kwargs["params"] = request._serialize()
749
+ kwargs["resp_cls"] = models.DeleteDataTransformResponse
750
+ kwargs["headers"] = request.headers
751
+ kwargs["opts"] = opts or {}
752
+
753
+ return await self.call_and_deserialize(**kwargs)
754
+
755
+ async def DeleteDlcDeliver(
756
+ self,
757
+ request: models.DeleteDlcDeliverRequest,
758
+ opts: Dict = None,
759
+ ) -> models.DeleteDlcDeliverResponse:
760
+ """
761
+ 删除DLC投递任务
762
+ """
763
+
764
+ kwargs = {}
765
+ kwargs["action"] = "DeleteDlcDeliver"
766
+ kwargs["params"] = request._serialize()
767
+ kwargs["resp_cls"] = models.DeleteDlcDeliverResponse
768
+ kwargs["headers"] = request.headers
769
+ kwargs["opts"] = opts or {}
770
+
771
+ return await self.call_and_deserialize(**kwargs)
772
+
773
+ async def DeleteExport(
774
+ self,
775
+ request: models.DeleteExportRequest,
776
+ opts: Dict = None,
777
+ ) -> models.DeleteExportResponse:
778
+ """
779
+ 本接口用于删除日志下载任务
780
+ """
781
+
782
+ kwargs = {}
783
+ kwargs["action"] = "DeleteExport"
784
+ kwargs["params"] = request._serialize()
785
+ kwargs["resp_cls"] = models.DeleteExportResponse
786
+ kwargs["headers"] = request.headers
787
+ kwargs["opts"] = opts or {}
788
+
789
+ return await self.call_and_deserialize(**kwargs)
790
+
791
+ async def DeleteIndex(
792
+ self,
793
+ request: models.DeleteIndexRequest,
794
+ opts: Dict = None,
795
+ ) -> models.DeleteIndexResponse:
796
+ """
797
+ 本接口用于删除日志主题的索引配置,删除索引配置后将无法检索和查询采集到的日志。
798
+ """
799
+
800
+ kwargs = {}
801
+ kwargs["action"] = "DeleteIndex"
802
+ kwargs["params"] = request._serialize()
803
+ kwargs["resp_cls"] = models.DeleteIndexResponse
804
+ kwargs["headers"] = request.headers
805
+ kwargs["opts"] = opts or {}
806
+
807
+ return await self.call_and_deserialize(**kwargs)
808
+
809
+ async def DeleteKafkaRecharge(
810
+ self,
811
+ request: models.DeleteKafkaRechargeRequest,
812
+ opts: Dict = None,
813
+ ) -> models.DeleteKafkaRechargeResponse:
814
+ """
815
+ 本接口用于删除Kafka数据订阅任务
816
+ """
817
+
818
+ kwargs = {}
819
+ kwargs["action"] = "DeleteKafkaRecharge"
820
+ kwargs["params"] = request._serialize()
821
+ kwargs["resp_cls"] = models.DeleteKafkaRechargeResponse
822
+ kwargs["headers"] = request.headers
823
+ kwargs["opts"] = opts or {}
824
+
825
+ return await self.call_and_deserialize(**kwargs)
826
+
827
+ async def DeleteLogset(
828
+ self,
829
+ request: models.DeleteLogsetRequest,
830
+ opts: Dict = None,
831
+ ) -> models.DeleteLogsetResponse:
832
+ """
833
+ 本接口用于删除日志集。
834
+ """
835
+
836
+ kwargs = {}
837
+ kwargs["action"] = "DeleteLogset"
838
+ kwargs["params"] = request._serialize()
839
+ kwargs["resp_cls"] = models.DeleteLogsetResponse
840
+ kwargs["headers"] = request.headers
841
+ kwargs["opts"] = opts or {}
842
+
843
+ return await self.call_and_deserialize(**kwargs)
844
+
845
+ async def DeleteMachineGroup(
846
+ self,
847
+ request: models.DeleteMachineGroupRequest,
848
+ opts: Dict = None,
849
+ ) -> models.DeleteMachineGroupResponse:
850
+ """
851
+ 删除机器组
852
+ """
853
+
854
+ kwargs = {}
855
+ kwargs["action"] = "DeleteMachineGroup"
856
+ kwargs["params"] = request._serialize()
857
+ kwargs["resp_cls"] = models.DeleteMachineGroupResponse
858
+ kwargs["headers"] = request.headers
859
+ kwargs["opts"] = opts or {}
860
+
861
+ return await self.call_and_deserialize(**kwargs)
862
+
863
+ async def DeleteMachineGroupInfo(
864
+ self,
865
+ request: models.DeleteMachineGroupInfoRequest,
866
+ opts: Dict = None,
867
+ ) -> models.DeleteMachineGroupInfoResponse:
868
+ """
869
+ 用于删除机器组信息
870
+ """
871
+
872
+ kwargs = {}
873
+ kwargs["action"] = "DeleteMachineGroupInfo"
874
+ kwargs["params"] = request._serialize()
875
+ kwargs["resp_cls"] = models.DeleteMachineGroupInfoResponse
876
+ kwargs["headers"] = request.headers
877
+ kwargs["opts"] = opts or {}
878
+
879
+ return await self.call_and_deserialize(**kwargs)
880
+
881
+ async def DeleteNoticeContent(
882
+ self,
883
+ request: models.DeleteNoticeContentRequest,
884
+ opts: Dict = None,
885
+ ) -> models.DeleteNoticeContentResponse:
886
+ """
887
+ 该接口用于删除通知内容配置
888
+ """
889
+
890
+ kwargs = {}
891
+ kwargs["action"] = "DeleteNoticeContent"
892
+ kwargs["params"] = request._serialize()
893
+ kwargs["resp_cls"] = models.DeleteNoticeContentResponse
894
+ kwargs["headers"] = request.headers
895
+ kwargs["opts"] = opts or {}
896
+
897
+ return await self.call_and_deserialize(**kwargs)
898
+
899
+ async def DeleteScheduledSql(
900
+ self,
901
+ request: models.DeleteScheduledSqlRequest,
902
+ opts: Dict = None,
903
+ ) -> models.DeleteScheduledSqlResponse:
904
+ """
905
+ 本接口用于删除定时SQL分析任务
906
+ """
907
+
908
+ kwargs = {}
909
+ kwargs["action"] = "DeleteScheduledSql"
910
+ kwargs["params"] = request._serialize()
911
+ kwargs["resp_cls"] = models.DeleteScheduledSqlResponse
912
+ kwargs["headers"] = request.headers
913
+ kwargs["opts"] = opts or {}
914
+
915
+ return await self.call_and_deserialize(**kwargs)
916
+
917
+ async def DeleteShipper(
918
+ self,
919
+ request: models.DeleteShipperRequest,
920
+ opts: Dict = None,
921
+ ) -> models.DeleteShipperResponse:
922
+ """
923
+ 删除投递COS任务
924
+ """
925
+
926
+ kwargs = {}
927
+ kwargs["action"] = "DeleteShipper"
928
+ kwargs["params"] = request._serialize()
929
+ kwargs["resp_cls"] = models.DeleteShipperResponse
930
+ kwargs["headers"] = request.headers
931
+ kwargs["opts"] = opts or {}
932
+
933
+ return await self.call_and_deserialize(**kwargs)
934
+
935
+ async def DeleteTopic(
936
+ self,
937
+ request: models.DeleteTopicRequest,
938
+ opts: Dict = None,
939
+ ) -> models.DeleteTopicResponse:
940
+ """
941
+ 本接口用于删除日志或指标主题。
942
+ """
943
+
944
+ kwargs = {}
945
+ kwargs["action"] = "DeleteTopic"
946
+ kwargs["params"] = request._serialize()
947
+ kwargs["resp_cls"] = models.DeleteTopicResponse
948
+ kwargs["headers"] = request.headers
949
+ kwargs["opts"] = opts or {}
950
+
951
+ return await self.call_and_deserialize(**kwargs)
952
+
953
+ async def DeleteWebCallback(
954
+ self,
955
+ request: models.DeleteWebCallbackRequest,
956
+ opts: Dict = None,
957
+ ) -> models.DeleteWebCallbackResponse:
958
+ """
959
+ 该接口用于删除告警渠道回调配置。
960
+ """
961
+
962
+ kwargs = {}
963
+ kwargs["action"] = "DeleteWebCallback"
964
+ kwargs["params"] = request._serialize()
965
+ kwargs["resp_cls"] = models.DeleteWebCallbackResponse
966
+ kwargs["headers"] = request.headers
967
+ kwargs["opts"] = opts or {}
968
+
969
+ return await self.call_and_deserialize(**kwargs)
970
+
971
+ async def DescribeAlarmNotices(
972
+ self,
973
+ request: models.DescribeAlarmNoticesRequest,
974
+ opts: Dict = None,
975
+ ) -> models.DescribeAlarmNoticesResponse:
976
+ """
977
+ 该接口用于获取通知渠道组列表
978
+ """
979
+
980
+ kwargs = {}
981
+ kwargs["action"] = "DescribeAlarmNotices"
982
+ kwargs["params"] = request._serialize()
983
+ kwargs["resp_cls"] = models.DescribeAlarmNoticesResponse
984
+ kwargs["headers"] = request.headers
985
+ kwargs["opts"] = opts or {}
986
+
987
+ return await self.call_and_deserialize(**kwargs)
988
+
989
+ async def DescribeAlarmShields(
990
+ self,
991
+ request: models.DescribeAlarmShieldsRequest,
992
+ opts: Dict = None,
993
+ ) -> models.DescribeAlarmShieldsResponse:
994
+ """
995
+ 获取告警屏蔽配置规则
996
+ """
997
+
998
+ kwargs = {}
999
+ kwargs["action"] = "DescribeAlarmShields"
1000
+ kwargs["params"] = request._serialize()
1001
+ kwargs["resp_cls"] = models.DescribeAlarmShieldsResponse
1002
+ kwargs["headers"] = request.headers
1003
+ kwargs["opts"] = opts or {}
1004
+
1005
+ return await self.call_and_deserialize(**kwargs)
1006
+
1007
+ async def DescribeAlarms(
1008
+ self,
1009
+ request: models.DescribeAlarmsRequest,
1010
+ opts: Dict = None,
1011
+ ) -> models.DescribeAlarmsResponse:
1012
+ """
1013
+ 本接口用于获取告警策略列表。
1014
+ """
1015
+
1016
+ kwargs = {}
1017
+ kwargs["action"] = "DescribeAlarms"
1018
+ kwargs["params"] = request._serialize()
1019
+ kwargs["resp_cls"] = models.DescribeAlarmsResponse
1020
+ kwargs["headers"] = request.headers
1021
+ kwargs["opts"] = opts or {}
1022
+
1023
+ return await self.call_and_deserialize(**kwargs)
1024
+
1025
+ async def DescribeAlertRecordHistory(
1026
+ self,
1027
+ request: models.DescribeAlertRecordHistoryRequest,
1028
+ opts: Dict = None,
1029
+ ) -> models.DescribeAlertRecordHistoryResponse:
1030
+ """
1031
+ 获取告警历史,例如今天未恢复的告警
1032
+ """
1033
+
1034
+ kwargs = {}
1035
+ kwargs["action"] = "DescribeAlertRecordHistory"
1036
+ kwargs["params"] = request._serialize()
1037
+ kwargs["resp_cls"] = models.DescribeAlertRecordHistoryResponse
1038
+ kwargs["headers"] = request.headers
1039
+ kwargs["opts"] = opts or {}
1040
+
1041
+ return await self.call_and_deserialize(**kwargs)
1042
+
1043
+ async def DescribeCloudProductLogTasks(
1044
+ self,
1045
+ request: models.DescribeCloudProductLogTasksRequest,
1046
+ opts: Dict = None,
1047
+ ) -> models.DescribeCloudProductLogTasksResponse:
1048
+ """
1049
+ 云产品接入使用相关接口
1050
+ """
1051
+
1052
+ kwargs = {}
1053
+ kwargs["action"] = "DescribeCloudProductLogTasks"
1054
+ kwargs["params"] = request._serialize()
1055
+ kwargs["resp_cls"] = models.DescribeCloudProductLogTasksResponse
1056
+ kwargs["headers"] = request.headers
1057
+ kwargs["opts"] = opts or {}
1058
+
1059
+ return await self.call_and_deserialize(**kwargs)
1060
+
1061
+ async def DescribeConfigExtras(
1062
+ self,
1063
+ request: models.DescribeConfigExtrasRequest,
1064
+ opts: Dict = None,
1065
+ ) -> models.DescribeConfigExtrasResponse:
1066
+ """
1067
+ 本接口用于获取特殊采集配置,特殊采集配置应用于自建K8S环境的采集Agent
1068
+ """
1069
+
1070
+ kwargs = {}
1071
+ kwargs["action"] = "DescribeConfigExtras"
1072
+ kwargs["params"] = request._serialize()
1073
+ kwargs["resp_cls"] = models.DescribeConfigExtrasResponse
1074
+ kwargs["headers"] = request.headers
1075
+ kwargs["opts"] = opts or {}
1076
+
1077
+ return await self.call_and_deserialize(**kwargs)
1078
+
1079
+ async def DescribeConfigMachineGroups(
1080
+ self,
1081
+ request: models.DescribeConfigMachineGroupsRequest,
1082
+ opts: Dict = None,
1083
+ ) -> models.DescribeConfigMachineGroupsResponse:
1084
+ """
1085
+ 获取采集规则配置所绑定的机器组
1086
+ """
1087
+
1088
+ kwargs = {}
1089
+ kwargs["action"] = "DescribeConfigMachineGroups"
1090
+ kwargs["params"] = request._serialize()
1091
+ kwargs["resp_cls"] = models.DescribeConfigMachineGroupsResponse
1092
+ kwargs["headers"] = request.headers
1093
+ kwargs["opts"] = opts or {}
1094
+
1095
+ return await self.call_and_deserialize(**kwargs)
1096
+
1097
+ async def DescribeConfigs(
1098
+ self,
1099
+ request: models.DescribeConfigsRequest,
1100
+ opts: Dict = None,
1101
+ ) -> models.DescribeConfigsResponse:
1102
+ """
1103
+ 获取采集规则配置
1104
+ """
1105
+
1106
+ kwargs = {}
1107
+ kwargs["action"] = "DescribeConfigs"
1108
+ kwargs["params"] = request._serialize()
1109
+ kwargs["resp_cls"] = models.DescribeConfigsResponse
1110
+ kwargs["headers"] = request.headers
1111
+ kwargs["opts"] = opts or {}
1112
+
1113
+ return await self.call_and_deserialize(**kwargs)
1114
+
1115
+ async def DescribeConsoleSharingList(
1116
+ self,
1117
+ request: models.DescribeConsoleSharingListRequest,
1118
+ opts: Dict = None,
1119
+ ) -> models.DescribeConsoleSharingListResponse:
1120
+ """
1121
+ 批量查询控制台分享列表
1122
+ """
1123
+
1124
+ kwargs = {}
1125
+ kwargs["action"] = "DescribeConsoleSharingList"
1126
+ kwargs["params"] = request._serialize()
1127
+ kwargs["resp_cls"] = models.DescribeConsoleSharingListResponse
1128
+ kwargs["headers"] = request.headers
1129
+ kwargs["opts"] = opts or {}
1130
+
1131
+ return await self.call_and_deserialize(**kwargs)
1132
+
1133
+ async def DescribeConsumer(
1134
+ self,
1135
+ request: models.DescribeConsumerRequest,
1136
+ opts: Dict = None,
1137
+ ) -> models.DescribeConsumerResponse:
1138
+ """
1139
+ 本接口用于获取投递配置
1140
+ """
1141
+
1142
+ kwargs = {}
1143
+ kwargs["action"] = "DescribeConsumer"
1144
+ kwargs["params"] = request._serialize()
1145
+ kwargs["resp_cls"] = models.DescribeConsumerResponse
1146
+ kwargs["headers"] = request.headers
1147
+ kwargs["opts"] = opts or {}
1148
+
1149
+ return await self.call_and_deserialize(**kwargs)
1150
+
1151
+ async def DescribeCosRecharges(
1152
+ self,
1153
+ request: models.DescribeCosRechargesRequest,
1154
+ opts: Dict = None,
1155
+ ) -> models.DescribeCosRechargesResponse:
1156
+ """
1157
+ 本接口用于获取cos导入配置
1158
+ """
1159
+
1160
+ kwargs = {}
1161
+ kwargs["action"] = "DescribeCosRecharges"
1162
+ kwargs["params"] = request._serialize()
1163
+ kwargs["resp_cls"] = models.DescribeCosRechargesResponse
1164
+ kwargs["headers"] = request.headers
1165
+ kwargs["opts"] = opts or {}
1166
+
1167
+ return await self.call_and_deserialize(**kwargs)
1168
+
1169
+ async def DescribeDashboardSubscribes(
1170
+ self,
1171
+ request: models.DescribeDashboardSubscribesRequest,
1172
+ opts: Dict = None,
1173
+ ) -> models.DescribeDashboardSubscribesResponse:
1174
+ """
1175
+ 本接口用于获取仪表盘订阅列表,支持分页
1176
+ """
1177
+
1178
+ kwargs = {}
1179
+ kwargs["action"] = "DescribeDashboardSubscribes"
1180
+ kwargs["params"] = request._serialize()
1181
+ kwargs["resp_cls"] = models.DescribeDashboardSubscribesResponse
1182
+ kwargs["headers"] = request.headers
1183
+ kwargs["opts"] = opts or {}
1184
+
1185
+ return await self.call_and_deserialize(**kwargs)
1186
+
1187
+ async def DescribeDashboards(
1188
+ self,
1189
+ request: models.DescribeDashboardsRequest,
1190
+ opts: Dict = None,
1191
+ ) -> models.DescribeDashboardsResponse:
1192
+ """
1193
+ 本接口用于获取仪表盘
1194
+ """
1195
+
1196
+ kwargs = {}
1197
+ kwargs["action"] = "DescribeDashboards"
1198
+ kwargs["params"] = request._serialize()
1199
+ kwargs["resp_cls"] = models.DescribeDashboardsResponse
1200
+ kwargs["headers"] = request.headers
1201
+ kwargs["opts"] = opts or {}
1202
+
1203
+ return await self.call_and_deserialize(**kwargs)
1204
+
1205
+ async def DescribeDataTransformInfo(
1206
+ self,
1207
+ request: models.DescribeDataTransformInfoRequest,
1208
+ opts: Dict = None,
1209
+ ) -> models.DescribeDataTransformInfoResponse:
1210
+ """
1211
+ 本接口用于获取数据加工任务列表基本信息
1212
+ """
1213
+
1214
+ kwargs = {}
1215
+ kwargs["action"] = "DescribeDataTransformInfo"
1216
+ kwargs["params"] = request._serialize()
1217
+ kwargs["resp_cls"] = models.DescribeDataTransformInfoResponse
1218
+ kwargs["headers"] = request.headers
1219
+ kwargs["opts"] = opts or {}
1220
+
1221
+ return await self.call_and_deserialize(**kwargs)
1222
+
1223
+ async def DescribeDlcDelivers(
1224
+ self,
1225
+ request: models.DescribeDlcDeliversRequest,
1226
+ opts: Dict = None,
1227
+ ) -> models.DescribeDlcDeliversResponse:
1228
+ """
1229
+ 获取告警渠道回调配置列表。
1230
+ """
1231
+
1232
+ kwargs = {}
1233
+ kwargs["action"] = "DescribeDlcDelivers"
1234
+ kwargs["params"] = request._serialize()
1235
+ kwargs["resp_cls"] = models.DescribeDlcDeliversResponse
1236
+ kwargs["headers"] = request.headers
1237
+ kwargs["opts"] = opts or {}
1238
+
1239
+ return await self.call_and_deserialize(**kwargs)
1240
+
1241
+ async def DescribeExports(
1242
+ self,
1243
+ request: models.DescribeExportsRequest,
1244
+ opts: Dict = None,
1245
+ ) -> models.DescribeExportsResponse:
1246
+ """
1247
+ 本接口用于获取日志下载任务列表
1248
+ """
1249
+
1250
+ kwargs = {}
1251
+ kwargs["action"] = "DescribeExports"
1252
+ kwargs["params"] = request._serialize()
1253
+ kwargs["resp_cls"] = models.DescribeExportsResponse
1254
+ kwargs["headers"] = request.headers
1255
+ kwargs["opts"] = opts or {}
1256
+
1257
+ return await self.call_and_deserialize(**kwargs)
1258
+
1259
+ async def DescribeIndex(
1260
+ self,
1261
+ request: models.DescribeIndexRequest,
1262
+ opts: Dict = None,
1263
+ ) -> models.DescribeIndexResponse:
1264
+ """
1265
+ 本接口用于获取索引配置信息
1266
+ """
1267
+
1268
+ kwargs = {}
1269
+ kwargs["action"] = "DescribeIndex"
1270
+ kwargs["params"] = request._serialize()
1271
+ kwargs["resp_cls"] = models.DescribeIndexResponse
1272
+ kwargs["headers"] = request.headers
1273
+ kwargs["opts"] = opts or {}
1274
+
1275
+ return await self.call_and_deserialize(**kwargs)
1276
+
1277
+ async def DescribeKafkaConsumer(
1278
+ self,
1279
+ request: models.DescribeKafkaConsumerRequest,
1280
+ opts: Dict = None,
1281
+ ) -> models.DescribeKafkaConsumerResponse:
1282
+ """
1283
+ 获取Kafka协议消费信息
1284
+ """
1285
+
1286
+ kwargs = {}
1287
+ kwargs["action"] = "DescribeKafkaConsumer"
1288
+ kwargs["params"] = request._serialize()
1289
+ kwargs["resp_cls"] = models.DescribeKafkaConsumerResponse
1290
+ kwargs["headers"] = request.headers
1291
+ kwargs["opts"] = opts or {}
1292
+
1293
+ return await self.call_and_deserialize(**kwargs)
1294
+
1295
+ async def DescribeKafkaConsumerGroupDetail(
1296
+ self,
1297
+ request: models.DescribeKafkaConsumerGroupDetailRequest,
1298
+ opts: Dict = None,
1299
+ ) -> models.DescribeKafkaConsumerGroupDetailResponse:
1300
+ """
1301
+ 获取Kafka协议消费组详情
1302
+ """
1303
+
1304
+ kwargs = {}
1305
+ kwargs["action"] = "DescribeKafkaConsumerGroupDetail"
1306
+ kwargs["params"] = request._serialize()
1307
+ kwargs["resp_cls"] = models.DescribeKafkaConsumerGroupDetailResponse
1308
+ kwargs["headers"] = request.headers
1309
+ kwargs["opts"] = opts or {}
1310
+
1311
+ return await self.call_and_deserialize(**kwargs)
1312
+
1313
+ async def DescribeKafkaConsumerGroupList(
1314
+ self,
1315
+ request: models.DescribeKafkaConsumerGroupListRequest,
1316
+ opts: Dict = None,
1317
+ ) -> models.DescribeKafkaConsumerGroupListResponse:
1318
+ """
1319
+ 获取Kafka协议消费组信息列表
1320
+ """
1321
+
1322
+ kwargs = {}
1323
+ kwargs["action"] = "DescribeKafkaConsumerGroupList"
1324
+ kwargs["params"] = request._serialize()
1325
+ kwargs["resp_cls"] = models.DescribeKafkaConsumerGroupListResponse
1326
+ kwargs["headers"] = request.headers
1327
+ kwargs["opts"] = opts or {}
1328
+
1329
+ return await self.call_and_deserialize(**kwargs)
1330
+
1331
+ async def DescribeKafkaRecharges(
1332
+ self,
1333
+ request: models.DescribeKafkaRechargesRequest,
1334
+ opts: Dict = None,
1335
+ ) -> models.DescribeKafkaRechargesResponse:
1336
+ """
1337
+ 本接口用于获取Kafka数据订阅任务
1338
+ """
1339
+
1340
+ kwargs = {}
1341
+ kwargs["action"] = "DescribeKafkaRecharges"
1342
+ kwargs["params"] = request._serialize()
1343
+ kwargs["resp_cls"] = models.DescribeKafkaRechargesResponse
1344
+ kwargs["headers"] = request.headers
1345
+ kwargs["opts"] = opts or {}
1346
+
1347
+ return await self.call_and_deserialize(**kwargs)
1348
+
1349
+ async def DescribeLogContext(
1350
+ self,
1351
+ request: models.DescribeLogContextRequest,
1352
+ opts: Dict = None,
1353
+ ) -> models.DescribeLogContextResponse:
1354
+ """
1355
+ 本接口用于搜索日志上下文附近的内容,详情参考[上下文检索](https://cloud.tencent.com/document/product/614/53248)。
1356
+ API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
1357
+ """
1358
+
1359
+ kwargs = {}
1360
+ kwargs["action"] = "DescribeLogContext"
1361
+ kwargs["params"] = request._serialize()
1362
+ kwargs["resp_cls"] = models.DescribeLogContextResponse
1363
+ kwargs["headers"] = request.headers
1364
+ kwargs["opts"] = opts or {}
1365
+
1366
+ return await self.call_and_deserialize(**kwargs)
1367
+
1368
+ async def DescribeLogHistogram(
1369
+ self,
1370
+ request: models.DescribeLogHistogramRequest,
1371
+ opts: Dict = None,
1372
+ ) -> models.DescribeLogHistogramResponse:
1373
+ """
1374
+ 本接口用于构建日志数量直方图
1375
+ """
1376
+
1377
+ kwargs = {}
1378
+ kwargs["action"] = "DescribeLogHistogram"
1379
+ kwargs["params"] = request._serialize()
1380
+ kwargs["resp_cls"] = models.DescribeLogHistogramResponse
1381
+ kwargs["headers"] = request.headers
1382
+ kwargs["opts"] = opts or {}
1383
+
1384
+ return await self.call_and_deserialize(**kwargs)
1385
+
1386
+ async def DescribeLogsets(
1387
+ self,
1388
+ request: models.DescribeLogsetsRequest,
1389
+ opts: Dict = None,
1390
+ ) -> models.DescribeLogsetsResponse:
1391
+ """
1392
+ 本接口用于获取日志集信息列表。
1393
+ """
1394
+
1395
+ kwargs = {}
1396
+ kwargs["action"] = "DescribeLogsets"
1397
+ kwargs["params"] = request._serialize()
1398
+ kwargs["resp_cls"] = models.DescribeLogsetsResponse
1399
+ kwargs["headers"] = request.headers
1400
+ kwargs["opts"] = opts or {}
1401
+
1402
+ return await self.call_and_deserialize(**kwargs)
1403
+
1404
+ async def DescribeMachineGroupConfigs(
1405
+ self,
1406
+ request: models.DescribeMachineGroupConfigsRequest,
1407
+ opts: Dict = None,
1408
+ ) -> models.DescribeMachineGroupConfigsResponse:
1409
+ """
1410
+ 获取机器组绑定的采集规则配置
1411
+ """
1412
+
1413
+ kwargs = {}
1414
+ kwargs["action"] = "DescribeMachineGroupConfigs"
1415
+ kwargs["params"] = request._serialize()
1416
+ kwargs["resp_cls"] = models.DescribeMachineGroupConfigsResponse
1417
+ kwargs["headers"] = request.headers
1418
+ kwargs["opts"] = opts or {}
1419
+
1420
+ return await self.call_and_deserialize(**kwargs)
1421
+
1422
+ async def DescribeMachineGroups(
1423
+ self,
1424
+ request: models.DescribeMachineGroupsRequest,
1425
+ opts: Dict = None,
1426
+ ) -> models.DescribeMachineGroupsResponse:
1427
+ """
1428
+ 获取机器组信息列表
1429
+ """
1430
+
1431
+ kwargs = {}
1432
+ kwargs["action"] = "DescribeMachineGroups"
1433
+ kwargs["params"] = request._serialize()
1434
+ kwargs["resp_cls"] = models.DescribeMachineGroupsResponse
1435
+ kwargs["headers"] = request.headers
1436
+ kwargs["opts"] = opts or {}
1437
+
1438
+ return await self.call_and_deserialize(**kwargs)
1439
+
1440
+ async def DescribeMachines(
1441
+ self,
1442
+ request: models.DescribeMachinesRequest,
1443
+ opts: Dict = None,
1444
+ ) -> models.DescribeMachinesResponse:
1445
+ """
1446
+ 获取指定机器组下的机器状态
1447
+ """
1448
+
1449
+ kwargs = {}
1450
+ kwargs["action"] = "DescribeMachines"
1451
+ kwargs["params"] = request._serialize()
1452
+ kwargs["resp_cls"] = models.DescribeMachinesResponse
1453
+ kwargs["headers"] = request.headers
1454
+ kwargs["opts"] = opts or {}
1455
+
1456
+ return await self.call_and_deserialize(**kwargs)
1457
+
1458
+ async def DescribeNoticeContents(
1459
+ self,
1460
+ request: models.DescribeNoticeContentsRequest,
1461
+ opts: Dict = None,
1462
+ ) -> models.DescribeNoticeContentsResponse:
1463
+ """
1464
+ 获取通知内容列表
1465
+ """
1466
+
1467
+ kwargs = {}
1468
+ kwargs["action"] = "DescribeNoticeContents"
1469
+ kwargs["params"] = request._serialize()
1470
+ kwargs["resp_cls"] = models.DescribeNoticeContentsResponse
1471
+ kwargs["headers"] = request.headers
1472
+ kwargs["opts"] = opts or {}
1473
+
1474
+ return await self.call_and_deserialize(**kwargs)
1475
+
1476
+ async def DescribePartitions(
1477
+ self,
1478
+ request: models.DescribePartitionsRequest,
1479
+ opts: Dict = None,
1480
+ ) -> models.DescribePartitionsResponse:
1481
+ """
1482
+ 该接口已废弃,如需获取分区数量,请使用DescribeTopics接口。
1483
+ """
1484
+
1485
+ kwargs = {}
1486
+ kwargs["action"] = "DescribePartitions"
1487
+ kwargs["params"] = request._serialize()
1488
+ kwargs["resp_cls"] = models.DescribePartitionsResponse
1489
+ kwargs["headers"] = request.headers
1490
+ kwargs["opts"] = opts or {}
1491
+
1492
+ return await self.call_and_deserialize(**kwargs)
1493
+
1494
+ async def DescribeScheduledSqlInfo(
1495
+ self,
1496
+ request: models.DescribeScheduledSqlInfoRequest,
1497
+ opts: Dict = None,
1498
+ ) -> models.DescribeScheduledSqlInfoResponse:
1499
+ """
1500
+ 本接口用于获取定时SQL分析任务列表
1501
+ """
1502
+
1503
+ kwargs = {}
1504
+ kwargs["action"] = "DescribeScheduledSqlInfo"
1505
+ kwargs["params"] = request._serialize()
1506
+ kwargs["resp_cls"] = models.DescribeScheduledSqlInfoResponse
1507
+ kwargs["headers"] = request.headers
1508
+ kwargs["opts"] = opts or {}
1509
+
1510
+ return await self.call_and_deserialize(**kwargs)
1511
+
1512
+ async def DescribeShipperTasks(
1513
+ self,
1514
+ request: models.DescribeShipperTasksRequest,
1515
+ opts: Dict = None,
1516
+ ) -> models.DescribeShipperTasksResponse:
1517
+ """
1518
+ 获取投递任务列表
1519
+ """
1520
+
1521
+ kwargs = {}
1522
+ kwargs["action"] = "DescribeShipperTasks"
1523
+ kwargs["params"] = request._serialize()
1524
+ kwargs["resp_cls"] = models.DescribeShipperTasksResponse
1525
+ kwargs["headers"] = request.headers
1526
+ kwargs["opts"] = opts or {}
1527
+
1528
+ return await self.call_and_deserialize(**kwargs)
1529
+
1530
+ async def DescribeShippers(
1531
+ self,
1532
+ request: models.DescribeShippersRequest,
1533
+ opts: Dict = None,
1534
+ ) -> models.DescribeShippersResponse:
1535
+ """
1536
+ 获取投递到COS的任务配置信息
1537
+ """
1538
+
1539
+ kwargs = {}
1540
+ kwargs["action"] = "DescribeShippers"
1541
+ kwargs["params"] = request._serialize()
1542
+ kwargs["resp_cls"] = models.DescribeShippersResponse
1543
+ kwargs["headers"] = request.headers
1544
+ kwargs["opts"] = opts or {}
1545
+
1546
+ return await self.call_and_deserialize(**kwargs)
1547
+
1548
+ async def DescribeTopics(
1549
+ self,
1550
+ request: models.DescribeTopicsRequest,
1551
+ opts: Dict = None,
1552
+ ) -> models.DescribeTopicsResponse:
1553
+ """
1554
+ 本接口用于获取日志或指标主题列表,支持分页
1555
+ """
1556
+
1557
+ kwargs = {}
1558
+ kwargs["action"] = "DescribeTopics"
1559
+ kwargs["params"] = request._serialize()
1560
+ kwargs["resp_cls"] = models.DescribeTopicsResponse
1561
+ kwargs["headers"] = request.headers
1562
+ kwargs["opts"] = opts or {}
1563
+
1564
+ return await self.call_and_deserialize(**kwargs)
1565
+
1566
+ async def DescribeWebCallbacks(
1567
+ self,
1568
+ request: models.DescribeWebCallbacksRequest,
1569
+ opts: Dict = None,
1570
+ ) -> models.DescribeWebCallbacksResponse:
1571
+ """
1572
+ 获取告警渠道回调配置列表。
1573
+ """
1574
+
1575
+ kwargs = {}
1576
+ kwargs["action"] = "DescribeWebCallbacks"
1577
+ kwargs["params"] = request._serialize()
1578
+ kwargs["resp_cls"] = models.DescribeWebCallbacksResponse
1579
+ kwargs["headers"] = request.headers
1580
+ kwargs["opts"] = opts or {}
1581
+
1582
+ return await self.call_and_deserialize(**kwargs)
1583
+
1584
+ async def GetAlarmLog(
1585
+ self,
1586
+ request: models.GetAlarmLogRequest,
1587
+ opts: Dict = None,
1588
+ ) -> models.GetAlarmLogResponse:
1589
+ """
1590
+ 本接口用于获取告警策略执行详情
1591
+ """
1592
+
1593
+ kwargs = {}
1594
+ kwargs["action"] = "GetAlarmLog"
1595
+ kwargs["params"] = request._serialize()
1596
+ kwargs["resp_cls"] = models.GetAlarmLogResponse
1597
+ kwargs["headers"] = request.headers
1598
+ kwargs["opts"] = opts or {}
1599
+
1600
+ return await self.call_and_deserialize(**kwargs)
1601
+
1602
+ async def MergePartition(
1603
+ self,
1604
+ request: models.MergePartitionRequest,
1605
+ opts: Dict = None,
1606
+ ) -> models.MergePartitionResponse:
1607
+ """
1608
+ 该接口已废弃,如需修改分区数量,请使用ModifyTopic接口。
1609
+ """
1610
+
1611
+ kwargs = {}
1612
+ kwargs["action"] = "MergePartition"
1613
+ kwargs["params"] = request._serialize()
1614
+ kwargs["resp_cls"] = models.MergePartitionResponse
1615
+ kwargs["headers"] = request.headers
1616
+ kwargs["opts"] = opts or {}
1617
+
1618
+ return await self.call_and_deserialize(**kwargs)
1619
+
1620
+ async def ModifyAlarm(
1621
+ self,
1622
+ request: models.ModifyAlarmRequest,
1623
+ opts: Dict = None,
1624
+ ) -> models.ModifyAlarmResponse:
1625
+ """
1626
+ 本接口用于修改告警策略。需要至少修改一项有效内容。
1627
+ """
1628
+
1629
+ kwargs = {}
1630
+ kwargs["action"] = "ModifyAlarm"
1631
+ kwargs["params"] = request._serialize()
1632
+ kwargs["resp_cls"] = models.ModifyAlarmResponse
1633
+ kwargs["headers"] = request.headers
1634
+ kwargs["opts"] = opts or {}
1635
+
1636
+ return await self.call_and_deserialize(**kwargs)
1637
+
1638
+ async def ModifyAlarmNotice(
1639
+ self,
1640
+ request: models.ModifyAlarmNoticeRequest,
1641
+ opts: Dict = None,
1642
+ ) -> models.ModifyAlarmNoticeResponse:
1643
+ """
1644
+ 该接口用于修改通知渠道组
1645
+ """
1646
+
1647
+ kwargs = {}
1648
+ kwargs["action"] = "ModifyAlarmNotice"
1649
+ kwargs["params"] = request._serialize()
1650
+ kwargs["resp_cls"] = models.ModifyAlarmNoticeResponse
1651
+ kwargs["headers"] = request.headers
1652
+ kwargs["opts"] = opts or {}
1653
+
1654
+ return await self.call_and_deserialize(**kwargs)
1655
+
1656
+ async def ModifyAlarmShield(
1657
+ self,
1658
+ request: models.ModifyAlarmShieldRequest,
1659
+ opts: Dict = None,
1660
+ ) -> models.ModifyAlarmShieldResponse:
1661
+ """
1662
+ 该接口用于修改告警屏蔽规则。当告警屏蔽规则为失效中时,无法对其进行修改
1663
+ """
1664
+
1665
+ kwargs = {}
1666
+ kwargs["action"] = "ModifyAlarmShield"
1667
+ kwargs["params"] = request._serialize()
1668
+ kwargs["resp_cls"] = models.ModifyAlarmShieldResponse
1669
+ kwargs["headers"] = request.headers
1670
+ kwargs["opts"] = opts or {}
1671
+
1672
+ return await self.call_and_deserialize(**kwargs)
1673
+
1674
+ async def ModifyCloudProductLogCollection(
1675
+ self,
1676
+ request: models.ModifyCloudProductLogCollectionRequest,
1677
+ opts: Dict = None,
1678
+ ) -> models.ModifyCloudProductLogCollectionResponse:
1679
+ """
1680
+ 内部云产品接入使用相关接口
1681
+ """
1682
+
1683
+ kwargs = {}
1684
+ kwargs["action"] = "ModifyCloudProductLogCollection"
1685
+ kwargs["params"] = request._serialize()
1686
+ kwargs["resp_cls"] = models.ModifyCloudProductLogCollectionResponse
1687
+ kwargs["headers"] = request.headers
1688
+ kwargs["opts"] = opts or {}
1689
+
1690
+ return await self.call_and_deserialize(**kwargs)
1691
+
1692
+ async def ModifyConfig(
1693
+ self,
1694
+ request: models.ModifyConfigRequest,
1695
+ opts: Dict = None,
1696
+ ) -> models.ModifyConfigResponse:
1697
+ """
1698
+ 修改采集规则配置
1699
+ """
1700
+
1701
+ kwargs = {}
1702
+ kwargs["action"] = "ModifyConfig"
1703
+ kwargs["params"] = request._serialize()
1704
+ kwargs["resp_cls"] = models.ModifyConfigResponse
1705
+ kwargs["headers"] = request.headers
1706
+ kwargs["opts"] = opts or {}
1707
+
1708
+ return await self.call_and_deserialize(**kwargs)
1709
+
1710
+ async def ModifyConfigExtra(
1711
+ self,
1712
+ request: models.ModifyConfigExtraRequest,
1713
+ opts: Dict = None,
1714
+ ) -> models.ModifyConfigExtraResponse:
1715
+ """
1716
+ 本接口用于修改特殊采集配置任务,特殊采集配置应用于自建K8S环境的采集Agent
1717
+ """
1718
+
1719
+ kwargs = {}
1720
+ kwargs["action"] = "ModifyConfigExtra"
1721
+ kwargs["params"] = request._serialize()
1722
+ kwargs["resp_cls"] = models.ModifyConfigExtraResponse
1723
+ kwargs["headers"] = request.headers
1724
+ kwargs["opts"] = opts or {}
1725
+
1726
+ return await self.call_and_deserialize(**kwargs)
1727
+
1728
+ async def ModifyConsoleSharing(
1729
+ self,
1730
+ request: models.ModifyConsoleSharingRequest,
1731
+ opts: Dict = None,
1732
+ ) -> models.ModifyConsoleSharingResponse:
1733
+ """
1734
+ 修改控制台分享,目前仅允许修改有效期
1735
+ """
1736
+
1737
+ kwargs = {}
1738
+ kwargs["action"] = "ModifyConsoleSharing"
1739
+ kwargs["params"] = request._serialize()
1740
+ kwargs["resp_cls"] = models.ModifyConsoleSharingResponse
1741
+ kwargs["headers"] = request.headers
1742
+ kwargs["opts"] = opts or {}
1743
+
1744
+ return await self.call_and_deserialize(**kwargs)
1745
+
1746
+ async def ModifyConsumer(
1747
+ self,
1748
+ request: models.ModifyConsumerRequest,
1749
+ opts: Dict = None,
1750
+ ) -> models.ModifyConsumerResponse:
1751
+ """
1752
+ 本接口用于修改投递Ckafka任务
1753
+ """
1754
+
1755
+ kwargs = {}
1756
+ kwargs["action"] = "ModifyConsumer"
1757
+ kwargs["params"] = request._serialize()
1758
+ kwargs["resp_cls"] = models.ModifyConsumerResponse
1759
+ kwargs["headers"] = request.headers
1760
+ kwargs["opts"] = opts or {}
1761
+
1762
+ return await self.call_and_deserialize(**kwargs)
1763
+
1764
+ async def ModifyCosRecharge(
1765
+ self,
1766
+ request: models.ModifyCosRechargeRequest,
1767
+ opts: Dict = None,
1768
+ ) -> models.ModifyCosRechargeResponse:
1769
+ """
1770
+ 本接口用于修改cos导入任务
1771
+ """
1772
+
1773
+ kwargs = {}
1774
+ kwargs["action"] = "ModifyCosRecharge"
1775
+ kwargs["params"] = request._serialize()
1776
+ kwargs["resp_cls"] = models.ModifyCosRechargeResponse
1777
+ kwargs["headers"] = request.headers
1778
+ kwargs["opts"] = opts or {}
1779
+
1780
+ return await self.call_and_deserialize(**kwargs)
1781
+
1782
+ async def ModifyDashboardSubscribe(
1783
+ self,
1784
+ request: models.ModifyDashboardSubscribeRequest,
1785
+ opts: Dict = None,
1786
+ ) -> models.ModifyDashboardSubscribeResponse:
1787
+ """
1788
+ 此接口用于修改仪表盘订阅
1789
+ """
1790
+
1791
+ kwargs = {}
1792
+ kwargs["action"] = "ModifyDashboardSubscribe"
1793
+ kwargs["params"] = request._serialize()
1794
+ kwargs["resp_cls"] = models.ModifyDashboardSubscribeResponse
1795
+ kwargs["headers"] = request.headers
1796
+ kwargs["opts"] = opts or {}
1797
+
1798
+ return await self.call_and_deserialize(**kwargs)
1799
+
1800
+ async def ModifyDataTransform(
1801
+ self,
1802
+ request: models.ModifyDataTransformRequest,
1803
+ opts: Dict = None,
1804
+ ) -> models.ModifyDataTransformResponse:
1805
+ """
1806
+ 本接口用于修改数据加工任务
1807
+ """
1808
+
1809
+ kwargs = {}
1810
+ kwargs["action"] = "ModifyDataTransform"
1811
+ kwargs["params"] = request._serialize()
1812
+ kwargs["resp_cls"] = models.ModifyDataTransformResponse
1813
+ kwargs["headers"] = request.headers
1814
+ kwargs["opts"] = opts or {}
1815
+
1816
+ return await self.call_and_deserialize(**kwargs)
1817
+
1818
+ async def ModifyDlcDeliver(
1819
+ self,
1820
+ request: models.ModifyDlcDeliverRequest,
1821
+ opts: Dict = None,
1822
+ ) -> models.ModifyDlcDeliverResponse:
1823
+ """
1824
+ 修改DLC投递任务
1825
+ """
1826
+
1827
+ kwargs = {}
1828
+ kwargs["action"] = "ModifyDlcDeliver"
1829
+ kwargs["params"] = request._serialize()
1830
+ kwargs["resp_cls"] = models.ModifyDlcDeliverResponse
1831
+ kwargs["headers"] = request.headers
1832
+ kwargs["opts"] = opts or {}
1833
+
1834
+ return await self.call_and_deserialize(**kwargs)
1835
+
1836
+ async def ModifyIndex(
1837
+ self,
1838
+ request: models.ModifyIndexRequest,
1839
+ opts: Dict = None,
1840
+ ) -> models.ModifyIndexResponse:
1841
+ """
1842
+ 本接口用于修改索引配置,该接口除受默认接口请求频率限制外,针对单个日志主题,并发数不能超过1,即同一时间同一个日志主题只能有一个正在执行的索引配置修改操作。
1843
+ """
1844
+
1845
+ kwargs = {}
1846
+ kwargs["action"] = "ModifyIndex"
1847
+ kwargs["params"] = request._serialize()
1848
+ kwargs["resp_cls"] = models.ModifyIndexResponse
1849
+ kwargs["headers"] = request.headers
1850
+ kwargs["opts"] = opts or {}
1851
+
1852
+ return await self.call_and_deserialize(**kwargs)
1853
+
1854
+ async def ModifyKafkaConsumer(
1855
+ self,
1856
+ request: models.ModifyKafkaConsumerRequest,
1857
+ opts: Dict = None,
1858
+ ) -> models.ModifyKafkaConsumerResponse:
1859
+ """
1860
+ 修改Kafka协议消费信息
1861
+ """
1862
+
1863
+ kwargs = {}
1864
+ kwargs["action"] = "ModifyKafkaConsumer"
1865
+ kwargs["params"] = request._serialize()
1866
+ kwargs["resp_cls"] = models.ModifyKafkaConsumerResponse
1867
+ kwargs["headers"] = request.headers
1868
+ kwargs["opts"] = opts or {}
1869
+
1870
+ return await self.call_and_deserialize(**kwargs)
1871
+
1872
+ async def ModifyKafkaConsumerGroupOffset(
1873
+ self,
1874
+ request: models.ModifyKafkaConsumerGroupOffsetRequest,
1875
+ opts: Dict = None,
1876
+ ) -> models.ModifyKafkaConsumerGroupOffsetResponse:
1877
+ """
1878
+ 修改Kafka协议消费组点位
1879
+ """
1880
+
1881
+ kwargs = {}
1882
+ kwargs["action"] = "ModifyKafkaConsumerGroupOffset"
1883
+ kwargs["params"] = request._serialize()
1884
+ kwargs["resp_cls"] = models.ModifyKafkaConsumerGroupOffsetResponse
1885
+ kwargs["headers"] = request.headers
1886
+ kwargs["opts"] = opts or {}
1887
+
1888
+ return await self.call_and_deserialize(**kwargs)
1889
+
1890
+ async def ModifyKafkaRecharge(
1891
+ self,
1892
+ request: models.ModifyKafkaRechargeRequest,
1893
+ opts: Dict = None,
1894
+ ) -> models.ModifyKafkaRechargeResponse:
1895
+ """
1896
+ 本接口用于修改Kafka数据订阅任务
1897
+ """
1898
+
1899
+ kwargs = {}
1900
+ kwargs["action"] = "ModifyKafkaRecharge"
1901
+ kwargs["params"] = request._serialize()
1902
+ kwargs["resp_cls"] = models.ModifyKafkaRechargeResponse
1903
+ kwargs["headers"] = request.headers
1904
+ kwargs["opts"] = opts or {}
1905
+
1906
+ return await self.call_and_deserialize(**kwargs)
1907
+
1908
+ async def ModifyLogset(
1909
+ self,
1910
+ request: models.ModifyLogsetRequest,
1911
+ opts: Dict = None,
1912
+ ) -> models.ModifyLogsetResponse:
1913
+ """
1914
+ 本接口用于修改日志集信息
1915
+ """
1916
+
1917
+ kwargs = {}
1918
+ kwargs["action"] = "ModifyLogset"
1919
+ kwargs["params"] = request._serialize()
1920
+ kwargs["resp_cls"] = models.ModifyLogsetResponse
1921
+ kwargs["headers"] = request.headers
1922
+ kwargs["opts"] = opts or {}
1923
+
1924
+ return await self.call_and_deserialize(**kwargs)
1925
+
1926
+ async def ModifyMachineGroup(
1927
+ self,
1928
+ request: models.ModifyMachineGroupRequest,
1929
+ opts: Dict = None,
1930
+ ) -> models.ModifyMachineGroupResponse:
1931
+ """
1932
+ 修改机器组。
1933
+ 注意:修改接口直接覆盖历史数据,改为本次合法入参数据,请谨慎调用此接口。
1934
+ """
1935
+
1936
+ kwargs = {}
1937
+ kwargs["action"] = "ModifyMachineGroup"
1938
+ kwargs["params"] = request._serialize()
1939
+ kwargs["resp_cls"] = models.ModifyMachineGroupResponse
1940
+ kwargs["headers"] = request.headers
1941
+ kwargs["opts"] = opts or {}
1942
+
1943
+ return await self.call_and_deserialize(**kwargs)
1944
+
1945
+ async def ModifyNoticeContent(
1946
+ self,
1947
+ request: models.ModifyNoticeContentRequest,
1948
+ opts: Dict = None,
1949
+ ) -> models.ModifyNoticeContentResponse:
1950
+ """
1951
+ 该接口用于修改通知内容配置
1952
+ """
1953
+
1954
+ kwargs = {}
1955
+ kwargs["action"] = "ModifyNoticeContent"
1956
+ kwargs["params"] = request._serialize()
1957
+ kwargs["resp_cls"] = models.ModifyNoticeContentResponse
1958
+ kwargs["headers"] = request.headers
1959
+ kwargs["opts"] = opts or {}
1960
+
1961
+ return await self.call_and_deserialize(**kwargs)
1962
+
1963
+ async def ModifyScheduledSql(
1964
+ self,
1965
+ request: models.ModifyScheduledSqlRequest,
1966
+ opts: Dict = None,
1967
+ ) -> models.ModifyScheduledSqlResponse:
1968
+ """
1969
+ 本接口用于修改定时SQL分析任务
1970
+ """
1971
+
1972
+ kwargs = {}
1973
+ kwargs["action"] = "ModifyScheduledSql"
1974
+ kwargs["params"] = request._serialize()
1975
+ kwargs["resp_cls"] = models.ModifyScheduledSqlResponse
1976
+ kwargs["headers"] = request.headers
1977
+ kwargs["opts"] = opts or {}
1978
+
1979
+ return await self.call_and_deserialize(**kwargs)
1980
+
1981
+ async def ModifyShipper(
1982
+ self,
1983
+ request: models.ModifyShipperRequest,
1984
+ opts: Dict = None,
1985
+ ) -> models.ModifyShipperResponse:
1986
+ """
1987
+ 修改现有的投递规则,客户如果使用此接口,需要自行处理CLS对指定bucket的写权限。
1988
+ """
1989
+
1990
+ kwargs = {}
1991
+ kwargs["action"] = "ModifyShipper"
1992
+ kwargs["params"] = request._serialize()
1993
+ kwargs["resp_cls"] = models.ModifyShipperResponse
1994
+ kwargs["headers"] = request.headers
1995
+ kwargs["opts"] = opts or {}
1996
+
1997
+ return await self.call_and_deserialize(**kwargs)
1998
+
1999
+ async def ModifyTopic(
2000
+ self,
2001
+ request: models.ModifyTopicRequest,
2002
+ opts: Dict = None,
2003
+ ) -> models.ModifyTopicResponse:
2004
+ """
2005
+ 本接口用于修改日志或指标主题。
2006
+ """
2007
+
2008
+ kwargs = {}
2009
+ kwargs["action"] = "ModifyTopic"
2010
+ kwargs["params"] = request._serialize()
2011
+ kwargs["resp_cls"] = models.ModifyTopicResponse
2012
+ kwargs["headers"] = request.headers
2013
+ kwargs["opts"] = opts or {}
2014
+
2015
+ return await self.call_and_deserialize(**kwargs)
2016
+
2017
+ async def ModifyWebCallback(
2018
+ self,
2019
+ request: models.ModifyWebCallbackRequest,
2020
+ opts: Dict = None,
2021
+ ) -> models.ModifyWebCallbackResponse:
2022
+ """
2023
+ 该接口用于修改告警渠道回调配置。
2024
+ """
2025
+
2026
+ kwargs = {}
2027
+ kwargs["action"] = "ModifyWebCallback"
2028
+ kwargs["params"] = request._serialize()
2029
+ kwargs["resp_cls"] = models.ModifyWebCallbackResponse
2030
+ kwargs["headers"] = request.headers
2031
+ kwargs["opts"] = opts or {}
2032
+
2033
+ return await self.call_and_deserialize(**kwargs)
2034
+
2035
+ async def OpenKafkaConsumer(
2036
+ self,
2037
+ request: models.OpenKafkaConsumerRequest,
2038
+ opts: Dict = None,
2039
+ ) -> models.OpenKafkaConsumerResponse:
2040
+ """
2041
+ 打开Kafka协议消费功能
2042
+ """
2043
+
2044
+ kwargs = {}
2045
+ kwargs["action"] = "OpenKafkaConsumer"
2046
+ kwargs["params"] = request._serialize()
2047
+ kwargs["resp_cls"] = models.OpenKafkaConsumerResponse
2048
+ kwargs["headers"] = request.headers
2049
+ kwargs["opts"] = opts or {}
2050
+
2051
+ return await self.call_and_deserialize(**kwargs)
2052
+
2053
+ async def PreviewKafkaRecharge(
2054
+ self,
2055
+ request: models.PreviewKafkaRechargeRequest,
2056
+ opts: Dict = None,
2057
+ ) -> models.PreviewKafkaRechargeResponse:
2058
+ """
2059
+ 本接口用于预览Kafka数据订阅任务客户日志信息
2060
+ """
2061
+
2062
+ kwargs = {}
2063
+ kwargs["action"] = "PreviewKafkaRecharge"
2064
+ kwargs["params"] = request._serialize()
2065
+ kwargs["resp_cls"] = models.PreviewKafkaRechargeResponse
2066
+ kwargs["headers"] = request.headers
2067
+ kwargs["opts"] = opts or {}
2068
+
2069
+ return await self.call_and_deserialize(**kwargs)
2070
+
2071
+ async def QueryMetric(
2072
+ self,
2073
+ request: models.QueryMetricRequest,
2074
+ opts: Dict = None,
2075
+ ) -> models.QueryMetricResponse:
2076
+ """
2077
+ 查询指定时刻指标的最新值。
2078
+ 如果该时刻向前推5分钟内均无指标数据,则无相应的查询结果。
2079
+ """
2080
+
2081
+ kwargs = {}
2082
+ kwargs["action"] = "QueryMetric"
2083
+ kwargs["params"] = request._serialize()
2084
+ kwargs["resp_cls"] = models.QueryMetricResponse
2085
+ kwargs["headers"] = request.headers
2086
+ kwargs["opts"] = opts or {}
2087
+
2088
+ return await self.call_and_deserialize(**kwargs)
2089
+
2090
+ async def QueryRangeMetric(
2091
+ self,
2092
+ request: models.QueryRangeMetricRequest,
2093
+ opts: Dict = None,
2094
+ ) -> models.QueryRangeMetricResponse:
2095
+ """
2096
+ 查询指定时间范围内指标的变化趋势
2097
+ """
2098
+
2099
+ kwargs = {}
2100
+ kwargs["action"] = "QueryRangeMetric"
2101
+ kwargs["params"] = request._serialize()
2102
+ kwargs["resp_cls"] = models.QueryRangeMetricResponse
2103
+ kwargs["headers"] = request.headers
2104
+ kwargs["opts"] = opts or {}
2105
+
2106
+ return await self.call_and_deserialize(**kwargs)
2107
+
2108
+ async def RetryShipperTask(
2109
+ self,
2110
+ request: models.RetryShipperTaskRequest,
2111
+ opts: Dict = None,
2112
+ ) -> models.RetryShipperTaskResponse:
2113
+ """
2114
+ 重试失败的投递任务
2115
+ """
2116
+
2117
+ kwargs = {}
2118
+ kwargs["action"] = "RetryShipperTask"
2119
+ kwargs["params"] = request._serialize()
2120
+ kwargs["resp_cls"] = models.RetryShipperTaskResponse
2121
+ kwargs["headers"] = request.headers
2122
+ kwargs["opts"] = opts or {}
2123
+
2124
+ return await self.call_and_deserialize(**kwargs)
2125
+
2126
+ async def SearchCosRechargeInfo(
2127
+ self,
2128
+ request: models.SearchCosRechargeInfoRequest,
2129
+ opts: Dict = None,
2130
+ ) -> models.SearchCosRechargeInfoResponse:
2131
+ """
2132
+ 本接口用于预览cos导入信息
2133
+ """
2134
+
2135
+ kwargs = {}
2136
+ kwargs["action"] = "SearchCosRechargeInfo"
2137
+ kwargs["params"] = request._serialize()
2138
+ kwargs["resp_cls"] = models.SearchCosRechargeInfoResponse
2139
+ kwargs["headers"] = request.headers
2140
+ kwargs["opts"] = opts or {}
2141
+
2142
+ return await self.call_and_deserialize(**kwargs)
2143
+
2144
+ async def SearchDashboardSubscribe(
2145
+ self,
2146
+ request: models.SearchDashboardSubscribeRequest,
2147
+ opts: Dict = None,
2148
+ ) -> models.SearchDashboardSubscribeResponse:
2149
+ """
2150
+ 此接口用于预览仪表盘订阅
2151
+ """
2152
+
2153
+ kwargs = {}
2154
+ kwargs["action"] = "SearchDashboardSubscribe"
2155
+ kwargs["params"] = request._serialize()
2156
+ kwargs["resp_cls"] = models.SearchDashboardSubscribeResponse
2157
+ kwargs["headers"] = request.headers
2158
+ kwargs["opts"] = opts or {}
2159
+
2160
+ return await self.call_and_deserialize(**kwargs)
2161
+
2162
+ async def SearchLog(
2163
+ self,
2164
+ request: models.SearchLogRequest,
2165
+ opts: Dict = None,
2166
+ ) -> models.SearchLogResponse:
2167
+ """
2168
+ 本接口用于检索分析日志,使用该接口时请注意如下事项:
2169
+ 1. 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。
2170
+ 2. 检索语法建议使用日志服务专用检索语法CQL,请使用SyntaxRule参数,将值设置为1,控制台默认也使用该语法规则。
2171
+ 3. API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
2172
+ """
2173
+
2174
+ kwargs = {}
2175
+ kwargs["action"] = "SearchLog"
2176
+ kwargs["params"] = request._serialize()
2177
+ kwargs["resp_cls"] = models.SearchLogResponse
2178
+ kwargs["headers"] = request.headers
2179
+ kwargs["opts"] = opts or {}
2180
+
2181
+ return await self.call_and_deserialize(**kwargs)
2182
+
2183
+ async def SplitPartition(
2184
+ self,
2185
+ request: models.SplitPartitionRequest,
2186
+ opts: Dict = None,
2187
+ ) -> models.SplitPartitionResponse:
2188
+ """
2189
+ 该接口已废弃,如需修改分区数量,请使用ModifyTopic接口。
2190
+ """
2191
+
2192
+ kwargs = {}
2193
+ kwargs["action"] = "SplitPartition"
2194
+ kwargs["params"] = request._serialize()
2195
+ kwargs["resp_cls"] = models.SplitPartitionResponse
2196
+ kwargs["headers"] = request.headers
2197
+ kwargs["opts"] = opts or {}
2198
+
2199
+ return await self.call_and_deserialize(**kwargs)
2200
+
2201
+ async def UploadLog(
2202
+ self,
2203
+ request: models.UploadLogRequest,
2204
+ body: bytes,
2205
+ opts: Dict = None,
2206
+ ) -> models.UploadLogResponse:
2207
+ """
2208
+ ## 提示
2209
+ 为了保障您日志数据的可靠性以及更高效地使用日志服务,建议您使用CLS优化后的接口[上传结构化日志](https://cloud.tencent.com/document/product/614/16873)。
2210
+
2211
+ 同时我们给此接口专门优化定制了多个语言版本的SDK供您选择,SDK提供统一的异步发送、资源控制、自动重试、优雅关闭、感知上报等功能,使上报日志功能更完善,详情请参考[SDK采集](https://cloud.tencent.com/document/product/614/67157)。
2212
+
2213
+ 同时云API上传日志接口也支持同步上传日志数据,如果您选择继续使用此接口请参考下文。
2214
+
2215
+ ## 功能描述
2216
+
2217
+ 本接口用于将日志写入到指定的日志主题。
2218
+
2219
+ #### 输入参数(pb二进制流,位于body中)
2220
+
2221
+ | 字段名 | 类型 | 位置 | 必须 | 含义 |
2222
+ | ------------ | ------- | ---- | ---- | ------------------------------------------------------------ |
2223
+ | logGroupList | message | pb | 是 | logGroup 列表,封装好的日志组列表内容,建议 logGroup 数量不要超过5个 |
2224
+
2225
+ LogGroup 说明:
2226
+
2227
+ | 字段名 | 是否必选 | 含义 |
2228
+ | ----------- | -------- | ------------------------------------------------------------ |
2229
+ | logs | 是 | 日志数组,表示有多个 Log 组成的集合,一个 Log 表示一条日志,一个 LogGroup 中 Log 个数不能超过10000 |
2230
+ | contextFlow | 否 | LogGroup 的唯一ID,需要使用上下文功能时传入。格式:"{上下文ID}-{LogGroupID}"。<br>上下文ID:唯一标识一个上下文(连续滚动的一系列日志文件,或者是需要保序的一系列日志),16进制64位整型字符串。<br>LogGroupID:连续递增的一串整型,16进制64位整型字符串。样例:"102700A66102516A-59F59"。 |
2231
+ | filename | 否 | 日志文件名 |
2232
+ | source | 否 | 日志来源,一般使用机器 IP 作为标识 |
2233
+ | logTags | 否 | 日志的标签列表 |
2234
+
2235
+ Log 说明:
2236
+
2237
+ | 字段名 | 是否必选 | 含义 |
2238
+ | -------- | -------- | ------------------------------------------------------------ |
2239
+ | time | 是 | 日志时间(Unix 格式时间戳),支持秒、毫秒,建议采用毫秒 |
2240
+ | contents | 否 | key-value 格式的日志内容,表示一条日志里的多个 key-value 组合 |
2241
+
2242
+ Content 说明:
2243
+
2244
+ | 字段名 | 是否必选 | 含义 |
2245
+ | ------ | -------- | ------------------------------------------------------------ |
2246
+ | key | 是 | 单条日志里某个字段组的 key 值,不能以`_`开头 |
2247
+ | value | 是 | 单条日志某个字段组的 value 值,单条日志 value 不能超过1MB,LogGroup 中所有 value 总和不能超过5MB |
2248
+
2249
+ LogTag 说明:
2250
+
2251
+ | 字段名 | 是否必选 | 含义 |
2252
+ | ------ | -------- | -------------------------------- |
2253
+ | key | 是 | 自定义的标签 key |
2254
+ | value | 是 | 自定义的标签 key 对应的 value 值 |
2255
+
2256
+ ## PB 编译示例
2257
+
2258
+ 本示例将说明如何使用官方 protoc 编译工具将 PB 描述文件 编译生成为 C++ 语言可调用的上传日志接口。
2259
+
2260
+ > ?目前 protoc 官方支持 Java、C++、Python 等语言的编译,详情请参见 [protoc](https://github.com/protocolbuffers/protobuf)。
2261
+
2262
+ #### 1. 安装 Protocol Buffer
2263
+
2264
+ 下载 [Protocol Buffer](https://main.qcloudimg.com/raw/d7810aaf8b3073fbbc9d4049c21532aa/protobuf-2.6.1.tar.gz) ,解压并安装。示例版本为 protobuf 2.6.1,环境为 Centos 7.3 系统。 解压`protobuf-2.6.1.tar.gz`压缩包至`/usr/local`目录并进入该目录,执行命令如下:
2265
+
2266
+ ```
2267
+ tar -zxvf protobuf-2.6.1.tar.gz -C /usr/local/ && cd /usr/local/protobuf-2.6.1
2268
+ ```
2269
+
2270
+ 开始编译和安装,配置环境变量,执行命令如下:
2271
+
2272
+ ```
2273
+ [root@VM_0_8_centos protobuf-2.6.1]# ./configure
2274
+ [root@VM_0_8_centos protobuf-2.6.1]# make && make install
2275
+ [root@VM_0_8_centos protobuf-2.6.1]# export PATH=$PATH:/usr/local/protobuf-2.6.1/bin
2276
+ ```
2277
+
2278
+ 编译成功后,您可以使用以下命令查看版本:
2279
+
2280
+ ```
2281
+ [root@VM_0_8_centos protobuf-2.6.1]# protoc --version
2282
+ liprotoc 2.6.1
2283
+ ```
2284
+
2285
+ #### 2. 创建 PB 描述文件
2286
+
2287
+ PB 描述文件是通信双方约定的数据交换格式,上传日志时须将规定的协议格式编译成对应语言版本的调用接口,然后添加到工程代码里,详情请参见 [protoc](https://github.com/protocolbuffers/protobuf) 。
2288
+
2289
+ 以日志服务所规定的 PB 数据格式内容为准, 在本地创建 PB 消息描述文件 cls.proto。
2290
+
2291
+ > !PB 描述文件内容不可更改,且文件名须以`.proto`结尾。
2292
+
2293
+ cls.proto 内容(PB 描述文件)如下:
2294
+
2295
+ ```
2296
+ package cls;
2297
+
2298
+ message Log
2299
+ {
2300
+ message Content
2301
+ {
2302
+ required string key = 1; // 每组字段的 key
2303
+ required string value = 2; // 每组字段的 value
2304
+ }
2305
+ required int64 time = 1; // 时间戳,UNIX时间格式
2306
+ repeated Content contents = 2; // 一条日志里的多个kv组合
2307
+ }
2308
+
2309
+ message LogTag
2310
+ {
2311
+ required string key = 1;
2312
+ required string value = 2;
2313
+ }
2314
+
2315
+ message LogGroup
2316
+ {
2317
+ repeated Log logs = 1; // 多条日志合成的日志数组
2318
+ optional string contextFlow = 2; // 目前暂无效用
2319
+ optional string filename = 3; // 日志文件名
2320
+ optional string source = 4; // 日志来源,一般使用机器IP
2321
+ repeated LogTag logTags = 5;
2322
+ }
2323
+
2324
+ message LogGroupList
2325
+ {
2326
+ repeated LogGroup logGroupList = 1; // 日志组列表
2327
+ }
2328
+ ```
2329
+
2330
+ #### 3. 编译生成
2331
+
2332
+ 此例中,使用 proto 编译器生成 C++ 语言的文件,在 cls.proto 文件的同一目录下,执行如下编译命令:
2333
+
2334
+ ```
2335
+ protoc --cpp_out=./ ./cls.proto
2336
+ ```
2337
+
2338
+ > ?`--cpp_out=./`表示编译成 cpp 格式并输出当前目录下,`./cls.proto`表示位于当前目录下的 cls.proto 描述文件。
2339
+
2340
+ 编译成功后,会输出对应语言的代码文件。此例会生成 cls.pb.h 头文件和 [cls.pb.cc](http://cls.pb.cc) 代码实现文件,如下所示:
2341
+
2342
+ ```
2343
+ [root@VM_0_8_centos protobuf-2.6.1]# protoc --cpp_out=./ ./cls.proto
2344
+ [root@VM_0_8_centos protobuf-2.6.1]# ls
2345
+ cls.pb.cc cls.pb.h cls.proto
2346
+ ```
2347
+
2348
+ #### 4. 调用
2349
+
2350
+ 将生成的 cls.pb.h 头文件引入代码中,调用接口进行数据格式封装。
2351
+ """
2352
+
2353
+ kwargs = {}
2354
+ kwargs["action"] = "UploadLog"
2355
+ kwargs["params"] = body
2356
+ kwargs["resp_cls"] = models.UploadLogResponse
2357
+ kwargs["headers"] = request.headers or {}
2358
+ kwargs["headers"].update({"X-CLS-" + k : v for k, v in request._serialize().items()})
2359
+ kwargs["opts"] = opts or {}
2360
+ kwargs["opts"]["IsOctetStream"] = True
2361
+
2362
+ return await self.call_and_deserialize(**kwargs)