tccli 3.0.1342.1__py2.py3-none-any.whl → 3.0.1344.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +6 -0
  3. tccli/services/ams/v20201229/api.json +46 -46
  4. tccli/services/ams/v20201229/examples.json +1 -1
  5. tccli/services/apm/apm_client.py +53 -0
  6. tccli/services/apm/v20210622/api.json +107 -0
  7. tccli/services/apm/v20210622/examples.json +8 -0
  8. tccli/services/batch/batch_client.py +53 -0
  9. tccli/services/batch/v20170312/api.json +125 -0
  10. tccli/services/batch/v20170312/examples.json +8 -0
  11. tccli/services/bh/v20230418/api.json +282 -1
  12. tccli/services/bh/v20230418/examples.json +3 -3
  13. tccli/services/bi/v20220105/api.json +9 -0
  14. tccli/services/ccc/v20200210/api.json +9 -0
  15. tccli/services/cdb/v20170320/api.json +40 -40
  16. tccli/services/cdb/v20170320/examples.json +3 -3
  17. tccli/services/cdwch/cdwch_client.py +53 -0
  18. tccli/services/cdwch/v20200915/api.json +410 -0
  19. tccli/services/cdwch/v20200915/examples.json +8 -0
  20. tccli/services/cdwdoris/v20211228/api.json +22 -2
  21. tccli/services/cfg/v20210820/api.json +72 -0
  22. tccli/services/ckafka/v20190819/api.json +21 -1
  23. tccli/services/csip/csip_client.py +163 -4
  24. tccli/services/csip/v20221121/api.json +967 -164
  25. tccli/services/csip/v20221121/examples.json +29 -5
  26. tccli/services/cvm/v20170312/api.json +16 -5
  27. tccli/services/cvm/v20170312/examples.json +1 -1
  28. tccli/services/dlc/v20210125/api.json +65 -1
  29. tccli/services/ecm/v20190719/api.json +14 -14
  30. tccli/services/emr/emr_client.py +167 -8
  31. tccli/services/emr/v20190103/api.json +809 -14
  32. tccli/services/emr/v20190103/examples.json +24 -0
  33. tccli/services/es/v20250101/examples.json +2 -2
  34. tccli/services/ess/v20201111/api.json +16 -7
  35. tccli/services/essbasic/v20210526/api.json +3 -3
  36. tccli/services/gs/v20191118/api.json +40 -1
  37. tccli/services/gs/v20191118/examples.json +2 -2
  38. tccli/services/hunyuan/v20230901/api.json +1 -1
  39. tccli/services/igtm/__init__.py +4 -0
  40. tccli/services/igtm/igtm_client.py +1373 -0
  41. tccli/services/igtm/v20231024/api.json +3569 -0
  42. tccli/services/igtm/v20231024/examples.json +207 -0
  43. tccli/services/ims/v20201229/api.json +20 -28
  44. tccli/services/ioa/ioa_client.py +114 -8
  45. tccli/services/ioa/v20220601/api.json +218 -3
  46. tccli/services/ioa/v20220601/examples.json +16 -0
  47. tccli/services/iss/v20230517/api.json +11 -2
  48. tccli/services/kms/v20190118/api.json +4 -4
  49. tccli/services/lighthouse/v20200324/api.json +1 -1
  50. tccli/services/mongodb/mongodb_client.py +57 -4
  51. tccli/services/mongodb/v20190725/api.json +189 -0
  52. tccli/services/mongodb/v20190725/examples.json +8 -0
  53. tccli/services/mps/v20190612/api.json +43 -5
  54. tccli/services/ocr/v20181119/api.json +137 -118
  55. tccli/services/partners/v20180321/api.json +1 -1
  56. tccli/services/securitylake/__init__.py +4 -0
  57. tccli/services/securitylake/securitylake_client.py +207 -0
  58. tccli/services/securitylake/v20240117/api.json +723 -0
  59. tccli/services/securitylake/v20240117/examples.json +13 -0
  60. tccli/services/tcbr/v20220217/api.json +70 -0
  61. tccli/services/tdmq/v20200217/api.json +263 -5
  62. tccli/services/tdmq/v20200217/examples.json +1 -1
  63. tccli/services/teo/teo_client.py +269 -4
  64. tccli/services/teo/v20220901/api.json +502 -23
  65. tccli/services/teo/v20220901/examples.json +77 -1
  66. tccli/services/tione/tione_client.py +57 -4
  67. tccli/services/tione/v20211111/api.json +283 -1
  68. tccli/services/tione/v20211111/examples.json +8 -0
  69. tccli/services/tke/v20180525/api.json +37 -28
  70. tccli/services/tms/v20201229/api.json +73 -80
  71. tccli/services/trocket/v20230308/api.json +80 -80
  72. tccli/services/trocket/v20230308/examples.json +1 -1
  73. tccli/services/tsf/tsf_client.py +61 -8
  74. tccli/services/tsf/v20180326/api.json +3161 -2106
  75. tccli/services/tsf/v20180326/examples.json +8 -0
  76. tccli/services/vdb/v20230616/api.json +49 -0
  77. tccli/services/vdb/v20230616/examples.json +1 -1
  78. tccli/services/vm/v20210922/api.json +8 -8
  79. tccli/services/vpc/v20170312/api.json +1 -1
  80. tccli/services/wav/v20210129/api.json +10 -10
  81. tccli/services/wav/v20210129/examples.json +3 -3
  82. tccli/services/wedata/v20210820/api.json +11 -0
  83. {tccli-3.0.1342.1.dist-info → tccli-3.0.1344.1.dist-info}/METADATA +2 -2
  84. {tccli-3.0.1342.1.dist-info → tccli-3.0.1344.1.dist-info}/RECORD +87 -79
  85. {tccli-3.0.1342.1.dist-info → tccli-3.0.1344.1.dist-info}/WHEEL +0 -0
  86. {tccli-3.0.1342.1.dist-info → tccli-3.0.1344.1.dist-info}/entry_points.txt +0 -0
  87. {tccli-3.0.1342.1.dist-info → tccli-3.0.1344.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1342.1'
1
+ __version__ = '3.0.1344.1'
@@ -411,6 +411,9 @@ SERVICE_VERSIONS = {
411
411
  "ig": [
412
412
  "2021-05-18"
413
413
  ],
414
+ "igtm": [
415
+ "2023-10-24"
416
+ ],
414
417
  "iir": [
415
418
  "2020-04-17"
416
419
  ],
@@ -573,6 +576,9 @@ SERVICE_VERSIONS = {
573
576
  "scf": [
574
577
  "2018-04-16"
575
578
  ],
579
+ "securitylake": [
580
+ "2024-01-17"
581
+ ],
576
582
  "ses": [
577
583
  "2020-10-02"
578
584
  ],
@@ -285,7 +285,7 @@
285
285
  {
286
286
  "disabled": false,
287
287
  "document": "*内测中,敬请期待*",
288
- "example": "暂无",
288
+ "example": "cmn",
289
289
  "member": "string",
290
290
  "name": "SubLabelCode",
291
291
  "output_required": true,
@@ -300,18 +300,18 @@
300
300
  "members": [
301
301
  {
302
302
  "disabled": false,
303
- "document": "该字段用于返回检测结果需要检测的内容类型,此处固定为**Moan**(呻吟)以调用呻吟检测功能。\n注意:此字段可能返回 null,表示取不到有效值。",
304
- "example": "",
303
+ "document": "该字段用于返回检测结果需要检测的内容类型,此处固定为**Moan**(呻吟)以调用呻吟检测功能。",
304
+ "example": "Moan",
305
305
  "member": "string",
306
306
  "name": "Label",
307
307
  "output_required": true,
308
308
  "type": "string",
309
- "value_allowed_null": true
309
+ "value_allowed_null": false
310
310
  },
311
311
  {
312
312
  "disabled": false,
313
313
  "document": "该字段用于返回呻吟检测的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表音频越有可能属于呻吟内容。",
314
- "example": "",
314
+ "example": "89",
315
315
  "member": "int64",
316
316
  "name": "Score",
317
317
  "output_required": true,
@@ -321,7 +321,7 @@
321
321
  {
322
322
  "disabled": false,
323
323
  "document": "该字段用于返回对应呻吟标签的片段在音频文件内的开始时间,单位为秒。",
324
- "example": "",
324
+ "example": "0",
325
325
  "member": "float",
326
326
  "name": "StartTime",
327
327
  "output_required": true,
@@ -331,7 +331,7 @@
331
331
  {
332
332
  "disabled": false,
333
333
  "document": "该字段用于返回对应呻吟标签的片段在音频文件内的结束时间,单位为秒。",
334
- "example": "",
334
+ "example": "15",
335
335
  "member": "float",
336
336
  "name": "EndTime",
337
337
  "output_required": true,
@@ -350,18 +350,18 @@
350
350
  },
351
351
  {
352
352
  "disabled": false,
353
- "document": "该字段用于返回当前标签(Lable)下的二级标签。\n注意:此字段可能返回 null,表示取不到有效值。",
354
- "example": "",
353
+ "document": "该字段用于返回当前标签(Lable)下的二级标签。",
354
+ "example": "PornMoan",
355
355
  "member": "string",
356
356
  "name": "SubLabel",
357
357
  "output_required": true,
358
358
  "type": "string",
359
- "value_allowed_null": true
359
+ "value_allowed_null": false
360
360
  },
361
361
  {
362
362
  "disabled": false,
363
363
  "document": "该字段用于返回基于恶意标签的后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过",
364
- "example": "Pass",
364
+ "example": "Review",
365
365
  "member": "string",
366
366
  "name": "Suggestion",
367
367
  "output_required": true,
@@ -376,43 +376,43 @@
376
376
  "members": [
377
377
  {
378
378
  "disabled": false,
379
- "document": "该字段用于返回检测结果需要检测的内容类型。\n注意:此字段可能返回 null,表示取不到有效值。",
379
+ "document": "该字段用于返回检测结果需要检测的内容类型。",
380
380
  "example": "cmn",
381
381
  "member": "string",
382
382
  "name": "Label",
383
383
  "output_required": true,
384
384
  "type": "string",
385
- "value_allowed_null": true
385
+ "value_allowed_null": false
386
386
  },
387
387
  {
388
388
  "disabled": false,
389
- "document": "该字段用于返回呻吟检测的置信度,取值范围:0(置信度最低)-100(置信度最高),越高代表音频越有可能属于说话人声纹。\n注意:此字段可能返回 null,表示取不到有效值。",
389
+ "document": "该字段用于返回呻吟检测的置信度,取值范围:0(置信度最低)-100(置信度最高),越高代表音频越有可能属于说话人声纹。",
390
390
  "example": "80",
391
391
  "member": "int64",
392
392
  "name": "Score",
393
393
  "output_required": true,
394
394
  "type": "int",
395
- "value_allowed_null": true
395
+ "value_allowed_null": false
396
396
  },
397
397
  {
398
398
  "disabled": false,
399
- "document": "该字段用于返回对应说话人的片段在音频文件内的开始时间,单位为秒。\n注意:此字段可能返回 null,表示取不到有效值。",
399
+ "document": "该字段用于返回对应说话人的片段在音频文件内的开始时间,单位为秒。",
400
400
  "example": "1",
401
401
  "member": "float",
402
402
  "name": "StartTime",
403
403
  "output_required": true,
404
404
  "type": "float",
405
- "value_allowed_null": true
405
+ "value_allowed_null": false
406
406
  },
407
407
  {
408
408
  "disabled": false,
409
- "document": "该字段用于返回对应说话人的片段在音频文件内的结束时间,单位为秒。\n注意:此字段可能返回 null,表示取不到有效值。",
409
+ "document": "该字段用于返回对应说话人的片段在音频文件内的结束时间,单位为秒。",
410
410
  "example": "15",
411
411
  "member": "float",
412
412
  "name": "EndTime",
413
413
  "output_required": true,
414
414
  "type": "float",
415
- "value_allowed_null": true
415
+ "value_allowed_null": false
416
416
  }
417
417
  ],
418
418
  "usage": "out"
@@ -423,7 +423,7 @@
423
423
  {
424
424
  "disabled": false,
425
425
  "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。",
426
- "example": "",
426
+ "example": "Ad",
427
427
  "member": "string",
428
428
  "name": "Label",
429
429
  "output_required": true,
@@ -433,7 +433,7 @@
433
433
  {
434
434
  "disabled": false,
435
435
  "document": "该字段用于返回ASR识别出的文本内容命中的关键词信息,用于标注内容违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;若返回值为空,Score不为空,则代表识别结果所对应的恶意标签(Label)来自于语义模型判断的返回值。",
436
- "example": "",
436
+ "example": "加微信",
437
437
  "member": "string",
438
438
  "name": "Keywords",
439
439
  "output_required": true,
@@ -443,7 +443,7 @@
443
443
  {
444
444
  "disabled": false,
445
445
  "document": "该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。",
446
- "example": "",
446
+ "example": "LibId_1",
447
447
  "member": "string",
448
448
  "name": "LibId",
449
449
  "output_required": true,
@@ -453,7 +453,7 @@
453
453
  {
454
454
  "disabled": false,
455
455
  "document": "该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。",
456
- "example": "",
456
+ "example": "测试词库",
457
457
  "member": "string",
458
458
  "name": "LibName",
459
459
  "output_required": true,
@@ -463,7 +463,7 @@
463
463
  {
464
464
  "disabled": false,
465
465
  "document": "该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。",
466
- "example": "",
466
+ "example": "100",
467
467
  "member": "int64",
468
468
  "name": "Score",
469
469
  "output_required": true,
@@ -473,7 +473,7 @@
473
473
  {
474
474
  "disabled": false,
475
475
  "document": "该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>\n返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过",
476
- "example": "",
476
+ "example": "Block",
477
477
  "member": "string",
478
478
  "name": "Suggestion",
479
479
  "output_required": true,
@@ -483,7 +483,7 @@
483
483
  {
484
484
  "disabled": false,
485
485
  "document": "该字段用于返回自定义关键词对应的词库类型,取值为**1**(黑白库)和**2**(自定义关键词库),若未配置自定义关键词库,则默认值为1(黑白库匹配)。",
486
- "example": "",
486
+ "example": "1",
487
487
  "member": "int64",
488
488
  "name": "LibType",
489
489
  "output_required": true,
@@ -493,7 +493,7 @@
493
493
  {
494
494
  "disabled": false,
495
495
  "document": "该字段用于返回当前标签(Lable)下的二级标签。",
496
- "example": "",
496
+ "example": "Add",
497
497
  "member": "string",
498
498
  "name": "SubLabel",
499
499
  "output_required": true,
@@ -1306,7 +1306,7 @@
1306
1306
  {
1307
1307
  "disabled": false,
1308
1308
  "document": "场景",
1309
- "example": "",
1309
+ "example": "Ad",
1310
1310
  "member": "string",
1311
1311
  "name": "Scene",
1312
1312
  "output_required": false,
@@ -1315,8 +1315,8 @@
1315
1315
  },
1316
1316
  {
1317
1317
  "disabled": false,
1318
- "document": "建议",
1319
- "example": "",
1318
+ "document": "建议值",
1319
+ "example": "Review",
1320
1320
  "member": "int64",
1321
1321
  "name": "Suggestion",
1322
1322
  "output_required": false,
@@ -1326,7 +1326,7 @@
1326
1326
  {
1327
1327
  "disabled": false,
1328
1328
  "document": "标签",
1329
- "example": "",
1329
+ "example": "Ad",
1330
1330
  "member": "string",
1331
1331
  "name": "Label",
1332
1332
  "output_required": false,
@@ -1336,7 +1336,7 @@
1336
1336
  {
1337
1337
  "disabled": false,
1338
1338
  "document": "名称:歌曲名,语种名,说话人名 等",
1339
- "example": "",
1339
+ "example": "测试歌曲",
1340
1340
  "member": "string",
1341
1341
  "name": "Name",
1342
1342
  "output_required": false,
@@ -1346,7 +1346,7 @@
1346
1346
  {
1347
1347
  "disabled": false,
1348
1348
  "document": "得分",
1349
- "example": "",
1349
+ "example": "70",
1350
1350
  "member": "int64",
1351
1351
  "name": "Score",
1352
1352
  "output_required": false,
@@ -1356,7 +1356,7 @@
1356
1356
  {
1357
1357
  "disabled": false,
1358
1358
  "document": "开始时间",
1359
- "example": "",
1359
+ "example": "0",
1360
1360
  "member": "float",
1361
1361
  "name": "StartTime",
1362
1362
  "output_required": false,
@@ -1366,7 +1366,7 @@
1366
1366
  {
1367
1367
  "disabled": false,
1368
1368
  "document": "结束时间",
1369
- "example": "",
1369
+ "example": "15",
1370
1370
  "member": "float",
1371
1371
  "name": "EndTime",
1372
1372
  "output_required": false,
@@ -1556,7 +1556,7 @@
1556
1556
  {
1557
1557
  "disabled": false,
1558
1558
  "document": "标签",
1559
- "example": "",
1559
+ "example": "cmn",
1560
1560
  "member": "string",
1561
1561
  "name": "Label",
1562
1562
  "output_required": false,
@@ -1566,7 +1566,7 @@
1566
1566
  {
1567
1567
  "disabled": false,
1568
1568
  "document": "得分",
1569
- "example": "",
1569
+ "example": "90",
1570
1570
  "member": "int64",
1571
1571
  "name": "Score",
1572
1572
  "output_required": false,
@@ -1576,7 +1576,7 @@
1576
1576
  {
1577
1577
  "disabled": false,
1578
1578
  "document": "开始时间",
1579
- "example": "",
1579
+ "example": "0",
1580
1580
  "member": "float",
1581
1581
  "name": "StartTime",
1582
1582
  "output_required": false,
@@ -1586,7 +1586,7 @@
1586
1586
  {
1587
1587
  "disabled": false,
1588
1588
  "document": "结束时间",
1589
- "example": "",
1589
+ "example": "15",
1590
1590
  "member": "string",
1591
1591
  "name": "EndTime",
1592
1592
  "output_required": false,
@@ -2070,7 +2070,7 @@
2070
2070
  {
2071
2071
  "disabled": false,
2072
2072
  "document": "一级标签",
2073
- "example": "",
2073
+ "example": "Ad",
2074
2074
  "member": "string",
2075
2075
  "name": "Label",
2076
2076
  "output_required": false,
@@ -2080,7 +2080,7 @@
2080
2080
  {
2081
2081
  "disabled": false,
2082
2082
  "document": "二级标签",
2083
- "example": "",
2083
+ "example": "Add",
2084
2084
  "member": "string",
2085
2085
  "name": "SubLabel",
2086
2086
  "output_required": false,
@@ -2090,7 +2090,7 @@
2090
2090
  {
2091
2091
  "disabled": false,
2092
2092
  "document": "风险等级",
2093
- "example": "",
2093
+ "example": "1",
2094
2094
  "member": "string",
2095
2095
  "name": "RiskLevel",
2096
2096
  "output_required": false,
@@ -2100,7 +2100,7 @@
2100
2100
  {
2101
2101
  "disabled": false,
2102
2102
  "document": "出行音频角色",
2103
- "example": "",
2103
+ "example": "AudioRole_1",
2104
2104
  "member": "string",
2105
2105
  "name": "AudioRole",
2106
2106
  "output_required": false,
@@ -2110,7 +2110,7 @@
2110
2110
  {
2111
2111
  "disabled": false,
2112
2112
  "document": "出行语音文本",
2113
- "example": "",
2113
+ "example": "出行文本",
2114
2114
  "member": "string",
2115
2115
  "name": "AudioText",
2116
2116
  "output_required": false,
@@ -2120,7 +2120,7 @@
2120
2120
  {
2121
2121
  "disabled": false,
2122
2122
  "document": "开始时间",
2123
- "example": "",
2123
+ "example": "0",
2124
2124
  "member": "float",
2125
2125
  "name": "StartTime",
2126
2126
  "output_required": false,
@@ -2130,7 +2130,7 @@
2130
2130
  {
2131
2131
  "disabled": false,
2132
2132
  "document": "结束时间",
2133
- "example": "",
2133
+ "example": "15",
2134
2134
  "member": "float",
2135
2135
  "name": "EndTime",
2136
2136
  "output_required": false,
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "document": "查看审核任务列表",
38
38
  "input": "POST / HTTP/1.1\nHost: ams.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTasks\n<公共请求参数>\n\n{\n \"Filter\": {\n \"Type\": \"AUDIO\"\n }\n}",
39
- "output": "{\n \"Response\": {\n \"Total\": \"382\",\n \"Data\": [\n {\n \"DataId\": \"317xxx867800\",\n \"TaskId\": \"w-audio-xxxxx_ouZOdcjYeN\",\n \"Status\": \"FINISH\",\n \"Name\": \"test\",\n \"BizType\": \"audit_txxxxx_xmly\",\n \"Type\": \"AUDIO\",\n \"Suggestion\": \"Review\",\n \"MediaInfo\": {\n \"Codecs\": \"\",\n \"Duration\": 177,\n \"Width\": 0,\n \"Height\": 0,\n \"Thumbnail\": \"\"\n },\n \"Labels\": [\n {\n \"Label\": \"Abuse\",\n \"Suggestion\": \"Review\",\n \"Score\": 86,\n \"SubLabel\": \"Uncivilized\"\n }\n ],\n \"InputInfo\": {\n \"Type\": \"URL\",\n \"Url\": \"https://xxxx.com\",\n \"BucketInfo\": null\n },\n \"CreatedAt\": \"2024-10-23T08:41:07.947Z\",\n \"UpdatedAt\": \"2024-10-23T08:41:53.739Z\"\n }\n ],\n \"PageToken\": \".Zxi2o_ouxxxxjYeN\",\n \"RequestId\": \"8172167d-8755-43d8-a7ce-76f3103059ac\"\n }\n}",
39
+ "output": "{\n \"Response\": {\n \"Total\": \"382\",\n \"Data\": [\n {\n \"DataId\": \"317xxx867800\",\n \"TaskId\": \"w-audio-xxxxx_ouZOdcjYeN\",\n \"Status\": \"FINISH\",\n \"Name\": \"测试视频\",\n \"BizType\": \"audit_txxxxx_xmly\",\n \"Type\": \"AUDIO\",\n \"Suggestion\": \"Review\",\n \"MediaInfo\": {\n \"Codecs\": \"\",\n \"Duration\": 177,\n \"Width\": 0,\n \"Height\": 0,\n \"Thumbnail\": \"\"\n },\n \"Labels\": [\n {\n \"Label\": \"Abuse\",\n \"Suggestion\": \"Review\",\n \"Score\": 86,\n \"SubLabel\": \"Uncivilized\"\n }\n ],\n \"InputInfo\": {\n \"Type\": \"URL\",\n \"Url\": \"https://xxxx.com\",\n \"BucketInfo\": null\n },\n \"CreatedAt\": \"2024-10-23T08:41:07.947Z\",\n \"UpdatedAt\": \"2024-10-23T08:41:53.739Z\"\n }\n ],\n \"PageToken\": \".Zxi2o_ouxxxxjYeN\",\n \"RequestId\": \"8172167d-8755-43d8-a7ce-76f3103059ac\"\n }\n}",
40
40
  "title": "查看审核任务列表"
41
41
  }
42
42
  ]
@@ -17,6 +17,58 @@ from tencentcloud.apm.v20210622 import models as models_v20210622
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
+ def doCreateProfileTask(args, parsed_globals):
21
+ g_param = parse_global_arg(parsed_globals)
22
+
23
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
+ cred = credential.CVMRoleCredential()
25
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
+ cred = credential.STSAssumeRoleCredential(
27
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
+ )
30
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
31
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
+ else:
33
+ cred = credential.Credential(
34
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
+ )
36
+ http_profile = HttpProfile(
37
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
+ reqMethod="POST",
39
+ endpoint=g_param[OptionsDefine.Endpoint],
40
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
+ )
42
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
+ if g_param[OptionsDefine.Language]:
44
+ profile.language = g_param[OptionsDefine.Language]
45
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
+ client = mod.ApmClient(cred, g_param[OptionsDefine.Region], profile)
47
+ client._sdkVersion += ("_CLI_" + __version__)
48
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
+ model = models.CreateProfileTaskRequest()
50
+ model.from_json_string(json.dumps(args))
51
+ start_time = time.time()
52
+ while True:
53
+ rsp = client.CreateProfileTask(model)
54
+ result = rsp.to_json_string()
55
+ try:
56
+ json_obj = json.loads(result)
57
+ except TypeError as e:
58
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
59
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
+ break
61
+ cur_time = time.time()
62
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
+ else:
67
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
+
71
+
20
72
  def doDescribeGeneralApmApplicationConfig(args, parsed_globals):
21
73
  g_param = parse_global_arg(parsed_globals)
22
74
 
@@ -704,6 +756,7 @@ MODELS_MAP = {
704
756
  }
705
757
 
706
758
  ACTION_MAP = {
759
+ "CreateProfileTask": doCreateProfileTask,
707
760
  "DescribeGeneralApmApplicationConfig": doDescribeGeneralApmApplicationConfig,
708
761
  "DescribeTagValues": doDescribeTagValues,
709
762
  "DescribeGeneralSpanList": doDescribeGeneralSpanList,
@@ -7,6 +7,13 @@
7
7
  "output": "CreateApmInstanceResponse",
8
8
  "status": "online"
9
9
  },
10
+ "CreateProfileTask": {
11
+ "document": "创建事件任务",
12
+ "input": "CreateProfileTaskRequest",
13
+ "name": "创建性能剖析事件任务",
14
+ "output": "CreateProfileTaskResponse",
15
+ "status": "online"
16
+ },
10
17
  "DescribeApmAgent": {
11
18
  "document": "获取 APM 接入点",
12
19
  "input": "DescribeApmAgentRequest",
@@ -1069,6 +1076,106 @@
1069
1076
  ],
1070
1077
  "type": "object"
1071
1078
  },
1079
+ "CreateProfileTaskRequest": {
1080
+ "document": "CreateProfileTask请求参数结构体",
1081
+ "members": [
1082
+ {
1083
+ "disabled": false,
1084
+ "document": "应用名称",
1085
+ "example": "springboot-service",
1086
+ "member": "string",
1087
+ "name": "ServiceName",
1088
+ "required": true,
1089
+ "type": "string"
1090
+ },
1091
+ {
1092
+ "disabled": false,
1093
+ "document": "APM业务系统ID",
1094
+ "example": "apm-eQls4MGPr",
1095
+ "member": "string",
1096
+ "name": "InstanceId",
1097
+ "required": true,
1098
+ "type": "string"
1099
+ },
1100
+ {
1101
+ "disabled": false,
1102
+ "document": "应用实例(在线)",
1103
+ "example": "127.0.0.1",
1104
+ "member": "string",
1105
+ "name": "ServiceInstance",
1106
+ "required": true,
1107
+ "type": "string"
1108
+ },
1109
+ {
1110
+ "disabled": false,
1111
+ "document": "事件类型(cpu、alloc)",
1112
+ "example": "cpu",
1113
+ "member": "string",
1114
+ "name": "Event",
1115
+ "required": true,
1116
+ "type": "string"
1117
+ },
1118
+ {
1119
+ "disabled": false,
1120
+ "document": "任务持续时长(单位:毫秒),范围限制在5~180秒",
1121
+ "example": "5000",
1122
+ "member": "int64",
1123
+ "name": "Duration",
1124
+ "required": true,
1125
+ "type": "int"
1126
+ },
1127
+ {
1128
+ "disabled": false,
1129
+ "document": "执行次数,范围限制在1~100次",
1130
+ "example": "1",
1131
+ "member": "int64",
1132
+ "name": "AllTimes",
1133
+ "required": true,
1134
+ "type": "int"
1135
+ },
1136
+ {
1137
+ "disabled": false,
1138
+ "document": "开始时间戳,0代表从当前开始(单位:秒)",
1139
+ "example": "0",
1140
+ "member": "int64",
1141
+ "name": "StartTime",
1142
+ "required": false,
1143
+ "type": "int"
1144
+ },
1145
+ {
1146
+ "disabled": false,
1147
+ "document": "任务执行间隔(单位:毫秒),范围限制在10~600秒,不可小于1.5倍的Duration",
1148
+ "example": "5000",
1149
+ "member": "int64",
1150
+ "name": "TaskInterval",
1151
+ "required": false,
1152
+ "type": "int"
1153
+ }
1154
+ ],
1155
+ "type": "object"
1156
+ },
1157
+ "CreateProfileTaskResponse": {
1158
+ "document": "CreateProfileTask返回参数结构体",
1159
+ "members": [
1160
+ {
1161
+ "disabled": false,
1162
+ "document": "任务ID",
1163
+ "example": "100001",
1164
+ "member": "int64",
1165
+ "name": "TaskId",
1166
+ "output_required": true,
1167
+ "type": "int",
1168
+ "value_allowed_null": false
1169
+ },
1170
+ {
1171
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1172
+ "member": "string",
1173
+ "name": "RequestId",
1174
+ "type": "string"
1175
+ }
1176
+ ],
1177
+ "type": "object"
1178
+ },
1072
1179
  "DescribeApmAgentRequest": {
1073
1180
  "document": "DescribeApmAgent请求参数结构体",
1074
1181
  "members": [
@@ -8,6 +8,14 @@
8
8
  "title": "创建 APM 业务系统"
9
9
  }
10
10
  ],
11
+ "CreateProfileTask": [
12
+ {
13
+ "document": "成功示例",
14
+ "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateProfileTask\n<公共请求参数>\n\n{\n \"ServiceName\": \"springboot-service\",\n \"InstanceId\": \"apm-ewyzCXlxj\",\n \"ServiceInstance\": \"127.0.0.1\",\n \"StartTime\": 0,\n \"Duration\": 5000,\n \"Event\": \"cpu\",\n \"AllTimes\": 1,\n \"TaskInterval\": 10000\n}",
15
+ "output": "{\n \"Response\": {\n \"RequestId\": \"eac7cf53-1900-4367-9076-a5649ddd4dbb\",\n \"TaskId\": 10001\n }\n}",
16
+ "title": "成功示例"
17
+ }
18
+ ],
11
19
  "DescribeApmAgent": [
12
20
  {
13
21
  "document": "获取 APM 接入点示例",
@@ -17,6 +17,58 @@ from tencentcloud.batch.v20170312 import models as models_v20170312
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
+ def doDescribeJobMonitorData(args, parsed_globals):
21
+ g_param = parse_global_arg(parsed_globals)
22
+
23
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
+ cred = credential.CVMRoleCredential()
25
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
+ cred = credential.STSAssumeRoleCredential(
27
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
+ )
30
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
31
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
+ else:
33
+ cred = credential.Credential(
34
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
+ )
36
+ http_profile = HttpProfile(
37
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
+ reqMethod="POST",
39
+ endpoint=g_param[OptionsDefine.Endpoint],
40
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
+ )
42
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
+ if g_param[OptionsDefine.Language]:
44
+ profile.language = g_param[OptionsDefine.Language]
45
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
+ client = mod.BatchClient(cred, g_param[OptionsDefine.Region], profile)
47
+ client._sdkVersion += ("_CLI_" + __version__)
48
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
+ model = models.DescribeJobMonitorDataRequest()
50
+ model.from_json_string(json.dumps(args))
51
+ start_time = time.time()
52
+ while True:
53
+ rsp = client.DescribeJobMonitorData(model)
54
+ result = rsp.to_json_string()
55
+ try:
56
+ json_obj = json.loads(result)
57
+ except TypeError as e:
58
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
59
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
+ break
61
+ cur_time = time.time()
62
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
+ else:
67
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
+
71
+
20
72
  def doDescribeCvmZoneInstanceConfigInfos(args, parsed_globals):
21
73
  g_param = parse_global_arg(parsed_globals)
22
74
 
@@ -1536,6 +1588,7 @@ MODELS_MAP = {
1536
1588
  }
1537
1589
 
1538
1590
  ACTION_MAP = {
1591
+ "DescribeJobMonitorData": doDescribeJobMonitorData,
1539
1592
  "DescribeCvmZoneInstanceConfigInfos": doDescribeCvmZoneInstanceConfigInfos,
1540
1593
  "CreateTaskTemplate": doCreateTaskTemplate,
1541
1594
  "TerminateComputeNode": doTerminateComputeNode,