tccli 3.0.1253.1__py2.py3-none-any.whl → 3.0.1254.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 (31) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +298 -300
  3. tccli/services/apm/v20210622/examples.json +4 -4
  4. tccli/services/autoscaling/v20180419/api.json +72 -0
  5. tccli/services/cat/v20180409/api.json +4 -4
  6. tccli/services/cdwdoris/v20211228/api.json +152 -122
  7. tccli/services/cdwdoris/v20211228/examples.json +6 -6
  8. tccli/services/clb/v20180317/api.json +1 -1
  9. tccli/services/cvm/cvm_client.py +121 -68
  10. tccli/services/cvm/v20170312/api.json +55 -3
  11. tccli/services/cvm/v20170312/examples.json +8 -0
  12. tccli/services/hunyuan/v20230901/api.json +2 -2
  13. tccli/services/hunyuan/v20230901/examples.json +1 -1
  14. tccli/services/lcic/v20220817/api.json +4 -4
  15. tccli/services/lke/v20231130/api.json +7 -7
  16. tccli/services/mna/v20210119/api.json +36 -36
  17. tccli/services/monitor/v20180724/api.json +32 -32
  18. tccli/services/ssl/v20191205/api.json +9 -0
  19. tccli/services/teo/v20220901/api.json +26 -14
  20. tccli/services/vod/v20180717/api.json +3 -3
  21. tccli/services/vpc/v20170312/api.json +39 -36596
  22. tccli/services/vpc/v20170312/examples.json +5 -3513
  23. tccli/services/vpc/vpc_client.py +4 -20462
  24. tccli/services/wedata/v20210820/api.json +437 -8
  25. tccli/services/wedata/v20210820/examples.json +10 -2
  26. tccli/services/wedata/wedata_client.py +57 -4
  27. {tccli-3.0.1253.1.dist-info → tccli-3.0.1254.1.dist-info}/METADATA +2 -2
  28. {tccli-3.0.1253.1.dist-info → tccli-3.0.1254.1.dist-info}/RECORD +31 -31
  29. {tccli-3.0.1253.1.dist-info → tccli-3.0.1254.1.dist-info}/WHEEL +0 -0
  30. {tccli-3.0.1253.1.dist-info → tccli-3.0.1254.1.dist-info}/entry_points.txt +0 -0
  31. {tccli-3.0.1253.1.dist-info → tccli-3.0.1254.1.dist-info}/license_files/LICENSE +0 -0
@@ -1176,6 +1176,13 @@
1176
1176
  "output": "DescribeTaskScriptResponse",
1177
1177
  "status": "online"
1178
1178
  },
1179
+ "DescribeTaskTableMetricOverview": {
1180
+ "document": "查询实时任务表粒度指标概览",
1181
+ "input": "DescribeTaskTableMetricOverviewRequest",
1182
+ "name": "查询实时任务表粒度指标概览",
1183
+ "output": "DescribeTaskTableMetricOverviewResponse",
1184
+ "status": "online"
1185
+ },
1179
1186
  "DescribeTemplateDimCount": {
1180
1187
  "document": "查询规则模板维度分布情况",
1181
1188
  "input": "DescribeTemplateDimCountRequest",
@@ -7551,8 +7558,8 @@
7551
7558
  },
7552
7559
  {
7553
7560
  "disabled": false,
7554
- "document": "建hive表ddl",
7555
- "example": "\"CREATE TABLE IF NOT EXISTS employee\"",
7561
+ "document": "建hive表ddl的base64编码",
7562
+ "example": "\"Q1JFQVRFIFRBQkxFIGBhYWFgLmBiaWdfdGFibGVfMWAoCmBpZGAgaW50LApgbnVtMWAgaW50LApgbnVtMmAgaW50LApgbnVtM2AgaW50LApgbnVtNGAgaW50LApgbnVtNWAgaW50KQpyb3cgZm9ybWF0IGRlbGltaXRlZCAKZmllbGRzIHRlcm1pbmF0ZWQgYnkgJ1x0JyAKU1RPUkVEIEFTIFBBUlFVRVQ7\"",
7556
7563
  "member": "string",
7557
7564
  "name": "DDLSql",
7558
7565
  "required": true,
@@ -8074,13 +8081,13 @@
8074
8081
  },
8075
8082
  {
8076
8083
  "disabled": false,
8077
- "document": "结果",
8078
- "example": "”true\"",
8084
+ "document": "结果\n注意:此字段可能返回 null,表示取不到有效值。",
8085
+ "example": "null",
8079
8086
  "member": "string",
8080
8087
  "name": "Data",
8081
8088
  "output_required": true,
8082
8089
  "type": "string",
8083
- "value_allowed_null": false
8090
+ "value_allowed_null": true
8084
8091
  },
8085
8092
  {
8086
8093
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -21397,7 +21404,7 @@
21397
21404
  {
21398
21405
  "disabled": false,
21399
21406
  "document": "任务id",
21400
- "example": "\"20220506145218687\"",
21407
+ "example": "20220506145218687",
21401
21408
  "member": "string",
21402
21409
  "name": "TaskId",
21403
21410
  "required": true,
@@ -21406,7 +21413,7 @@
21406
21413
  {
21407
21414
  "disabled": false,
21408
21415
  "document": "项目id",
21409
- "example": "\"11022568003970304\"",
21416
+ "example": "11022568003970304",
21410
21417
  "member": "string",
21411
21418
  "name": "ProjectId",
21412
21419
  "required": true,
@@ -21415,7 +21422,7 @@
21415
21422
  {
21416
21423
  "disabled": false,
21417
21424
  "document": "任务类型:201. stream, 202. offline",
21418
- "example": "\"201",
21425
+ "example": "201",
21419
21426
  "member": "uint64",
21420
21427
  "name": "TaskType",
21421
21428
  "required": true,
@@ -21556,6 +21563,126 @@
21556
21563
  ],
21557
21564
  "type": "object"
21558
21565
  },
21566
+ "DescribeTaskTableMetricOverviewRequest": {
21567
+ "document": "DescribeTaskTableMetricOverview请求参数结构体",
21568
+ "members": [
21569
+ {
21570
+ "disabled": false,
21571
+ "document": "任务TaskId",
21572
+ "example": "\"123\"",
21573
+ "member": "string",
21574
+ "name": "TaskId",
21575
+ "required": true,
21576
+ "type": "string"
21577
+ },
21578
+ {
21579
+ "disabled": false,
21580
+ "document": "来源类型,支持枚举: SOURCE、SINK",
21581
+ "example": "\"SOURCE\"",
21582
+ "member": "string",
21583
+ "name": "NodeType",
21584
+ "required": true,
21585
+ "type": "string"
21586
+ },
21587
+ {
21588
+ "disabled": false,
21589
+ "document": "页码",
21590
+ "example": "1",
21591
+ "member": "int64",
21592
+ "name": "PageNumber",
21593
+ "required": true,
21594
+ "type": "int"
21595
+ },
21596
+ {
21597
+ "disabled": false,
21598
+ "document": "页大小",
21599
+ "example": "10",
21600
+ "member": "int64",
21601
+ "name": "PageSize",
21602
+ "required": true,
21603
+ "type": "int"
21604
+ },
21605
+ {
21606
+ "disabled": false,
21607
+ "document": "项目ID",
21608
+ "example": "\"1\"",
21609
+ "member": "string",
21610
+ "name": "ProjectId",
21611
+ "required": true,
21612
+ "type": "string"
21613
+ },
21614
+ {
21615
+ "disabled": false,
21616
+ "document": "任务类型:201. stream, 202. offline,当前只支持实时201",
21617
+ "example": "201",
21618
+ "member": "int64",
21619
+ "name": "TaskType",
21620
+ "required": false,
21621
+ "type": "int"
21622
+ },
21623
+ {
21624
+ "disabled": false,
21625
+ "document": "根据SchemaName来模糊搜索",
21626
+ "example": "无",
21627
+ "member": "Filter",
21628
+ "name": "Filters",
21629
+ "required": false,
21630
+ "type": "list"
21631
+ },
21632
+ {
21633
+ "disabled": false,
21634
+ "document": "排序",
21635
+ "example": "无",
21636
+ "member": "OrderFields",
21637
+ "name": "OrderFields",
21638
+ "required": false,
21639
+ "type": "list"
21640
+ }
21641
+ ],
21642
+ "type": "object"
21643
+ },
21644
+ "DescribeTaskTableMetricOverviewResponse": {
21645
+ "document": "DescribeTaskTableMetricOverview返回参数结构体",
21646
+ "members": [
21647
+ {
21648
+ "disabled": false,
21649
+ "document": "表粒度指标集合",
21650
+ "example": "无",
21651
+ "member": "TaskTableMetricInfo",
21652
+ "name": "TaskTableMetricInfos",
21653
+ "output_required": true,
21654
+ "type": "list",
21655
+ "value_allowed_null": false
21656
+ },
21657
+ {
21658
+ "disabled": false,
21659
+ "document": "总数",
21660
+ "example": "1",
21661
+ "member": "int64",
21662
+ "name": "TotalCount",
21663
+ "output_required": true,
21664
+ "type": "int",
21665
+ "value_allowed_null": false
21666
+ },
21667
+ {
21668
+ "disabled": false,
21669
+ "document": "返回列表类型\n注意:此字段可能返回 null,表示取不到有效值。",
21670
+ "example": "\"num\"",
21671
+ "member": "string",
21672
+ "name": "MetricType",
21673
+ "output_required": true,
21674
+ "type": "string",
21675
+ "value_allowed_null": true
21676
+ },
21677
+ {
21678
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
21679
+ "member": "string",
21680
+ "name": "RequestId",
21681
+ "type": "string"
21682
+ }
21683
+ ],
21684
+ "type": "object"
21685
+ },
21559
21686
  "DescribeTemplateDimCountRequest": {
21560
21687
  "document": "DescribeTemplateDimCount请求参数结构体",
21561
21688
  "members": [
@@ -32851,6 +32978,32 @@
32851
32978
  ],
32852
32979
  "usage": "in"
32853
32980
  },
32981
+ "OrderFields": {
32982
+ "document": "排序",
32983
+ "members": [
32984
+ {
32985
+ "disabled": false,
32986
+ "document": "字段",
32987
+ "example": "1",
32988
+ "member": "string",
32989
+ "name": "Name",
32990
+ "required": false,
32991
+ "type": "string",
32992
+ "value_allowed_null": false
32993
+ },
32994
+ {
32995
+ "disabled": false,
32996
+ "document": "排序",
32997
+ "example": "desc",
32998
+ "member": "string",
32999
+ "name": "Direction",
33000
+ "required": false,
33001
+ "type": "string",
33002
+ "value_allowed_null": false
33003
+ }
33004
+ ],
33005
+ "usage": "in"
33006
+ },
32854
33007
  "OrganizationalFunction": {
32855
33008
  "document": "包含层级信息的函数",
32856
33009
  "members": [
@@ -45039,6 +45192,282 @@
45039
45192
  ],
45040
45193
  "usage": "out"
45041
45194
  },
45195
+ "TaskTableMetricInfo": {
45196
+ "document": "任务表粒度指标信息",
45197
+ "members": [
45198
+ {
45199
+ "disabled": false,
45200
+ "document": "数据库名称\n注意:此字段可能返回 null,表示取不到有效值。",
45201
+ "example": "无",
45202
+ "member": "string",
45203
+ "name": "DatabaseName",
45204
+ "output_required": true,
45205
+ "type": "string",
45206
+ "value_allowed_null": true
45207
+ },
45208
+ {
45209
+ "disabled": false,
45210
+ "document": "表名称\n注意:此字段可能返回 null,表示取不到有效值。",
45211
+ "example": "无",
45212
+ "member": "string",
45213
+ "name": "TableName",
45214
+ "output_required": true,
45215
+ "type": "string",
45216
+ "value_allowed_null": true
45217
+ },
45218
+ {
45219
+ "disabled": false,
45220
+ "document": "总记录数\n注意:此字段可能返回 null,表示取不到有效值。",
45221
+ "example": "无",
45222
+ "member": "int64",
45223
+ "name": "TotalRecordNum",
45224
+ "output_required": true,
45225
+ "type": "int",
45226
+ "value_allowed_null": true
45227
+ },
45228
+ {
45229
+ "disabled": false,
45230
+ "document": "总字节数\n注意:此字段可能返回 null,表示取不到有效值。",
45231
+ "example": "无",
45232
+ "member": "int64",
45233
+ "name": "TotalRecordByteNum",
45234
+ "output_required": true,
45235
+ "type": "int",
45236
+ "value_allowed_null": true
45237
+ },
45238
+ {
45239
+ "disabled": false,
45240
+ "document": "总脏记录数\n注意:此字段可能返回 null,表示取不到有效值。",
45241
+ "example": "无",
45242
+ "member": "int64",
45243
+ "name": "TotalDirtyRecordNum",
45244
+ "output_required": true,
45245
+ "type": "int",
45246
+ "value_allowed_null": true
45247
+ },
45248
+ {
45249
+ "disabled": false,
45250
+ "document": "Schema名称\n注意:此字段可能返回 null,表示取不到有效值。",
45251
+ "example": "无",
45252
+ "member": "string",
45253
+ "name": "SchemaName",
45254
+ "output_required": true,
45255
+ "type": "string",
45256
+ "value_allowed_null": true
45257
+ },
45258
+ {
45259
+ "disabled": false,
45260
+ "document": "topic名称\n注意:此字段可能返回 null,表示取不到有效值。",
45261
+ "example": "无",
45262
+ "member": "string",
45263
+ "name": "Topic",
45264
+ "output_required": true,
45265
+ "type": "string",
45266
+ "value_allowed_null": true
45267
+ },
45268
+ {
45269
+ "disabled": false,
45270
+ "document": "Collection名称\n注意:此字段可能返回 null,表示取不到有效值。",
45271
+ "example": "无",
45272
+ "member": "string",
45273
+ "name": "Collection",
45274
+ "output_required": true,
45275
+ "type": "string",
45276
+ "value_allowed_null": true
45277
+ },
45278
+ {
45279
+ "disabled": false,
45280
+ "document": "数据源名称",
45281
+ "example": "测试数据源",
45282
+ "member": "string",
45283
+ "name": "DataSourceName",
45284
+ "output_required": true,
45285
+ "type": "string",
45286
+ "value_allowed_null": false
45287
+ },
45288
+ {
45289
+ "disabled": false,
45290
+ "document": "节点id",
45291
+ "example": "1212",
45292
+ "member": "string",
45293
+ "name": "NodeId",
45294
+ "output_required": true,
45295
+ "type": "string",
45296
+ "value_allowed_null": false
45297
+ },
45298
+ {
45299
+ "disabled": false,
45300
+ "document": "逻辑库名\n注意:此字段可能返回 null,表示取不到有效值。",
45301
+ "example": "database1",
45302
+ "member": "string",
45303
+ "name": "LogicDatabase",
45304
+ "output_required": false,
45305
+ "type": "string",
45306
+ "value_allowed_null": true
45307
+ },
45308
+ {
45309
+ "disabled": false,
45310
+ "document": "逻辑表名\n注意:此字段可能返回 null,表示取不到有效值。",
45311
+ "example": "table1",
45312
+ "member": "string",
45313
+ "name": "LogicTable",
45314
+ "output_required": false,
45315
+ "type": "string",
45316
+ "value_allowed_null": true
45317
+ },
45318
+ {
45319
+ "disabled": false,
45320
+ "document": "逻辑schema名\n注意:此字段可能返回 null,表示取不到有效值。",
45321
+ "example": "无",
45322
+ "member": "string",
45323
+ "name": "LogicSchema",
45324
+ "output_required": false,
45325
+ "type": "string",
45326
+ "value_allowed_null": true
45327
+ },
45328
+ {
45329
+ "disabled": false,
45330
+ "document": "物理表信息\n注意:此字段可能返回 null,表示取不到有效值。",
45331
+ "example": "无",
45332
+ "member": "TaskTableMetricInfo",
45333
+ "name": "TaskTableMetricInfos",
45334
+ "output_required": false,
45335
+ "type": "list",
45336
+ "value_allowed_null": true
45337
+ },
45338
+ {
45339
+ "disabled": false,
45340
+ "document": "同步状态,0-未知,1-正常, 2-异常\n注意:此字段可能返回 null,表示取不到有效值。",
45341
+ "example": "无",
45342
+ "member": "int64",
45343
+ "name": "SyncStatus",
45344
+ "output_required": false,
45345
+ "type": "int",
45346
+ "value_allowed_null": true
45347
+ },
45348
+ {
45349
+ "disabled": false,
45350
+ "document": "Target数据库名称\n注意:此字段可能返回 null,表示取不到有效值。",
45351
+ "example": "无",
45352
+ "member": "string",
45353
+ "name": "TargetDatabaseName",
45354
+ "output_required": false,
45355
+ "type": "string",
45356
+ "value_allowed_null": true
45357
+ },
45358
+ {
45359
+ "disabled": false,
45360
+ "document": "Target表名称\n注意:此字段可能返回 null,表示取不到有效值。",
45361
+ "example": "无",
45362
+ "member": "string",
45363
+ "name": "TargetTableName",
45364
+ "output_required": false,
45365
+ "type": "string",
45366
+ "value_allowed_null": true
45367
+ },
45368
+ {
45369
+ "disabled": false,
45370
+ "document": "Write总记录数\n注意:此字段可能返回 null,表示取不到有效值。",
45371
+ "example": "无",
45372
+ "member": "int64",
45373
+ "name": "WriteTotalRecordNum",
45374
+ "output_required": false,
45375
+ "type": "int",
45376
+ "value_allowed_null": true
45377
+ },
45378
+ {
45379
+ "disabled": false,
45380
+ "document": "Write总字节数\n注意:此字段可能返回 null,表示取不到有效值。",
45381
+ "example": "无",
45382
+ "member": "string",
45383
+ "name": "WriteTotalRecordByteNum",
45384
+ "output_required": false,
45385
+ "type": "string",
45386
+ "value_allowed_null": true
45387
+ },
45388
+ {
45389
+ "disabled": false,
45390
+ "document": "TargetSchema名称\n注意:此字段可能返回 null,表示取不到有效值。",
45391
+ "example": "无",
45392
+ "member": "string",
45393
+ "name": "TargetSchemaName",
45394
+ "output_required": false,
45395
+ "type": "string",
45396
+ "value_allowed_null": true
45397
+ },
45398
+ {
45399
+ "disabled": false,
45400
+ "document": "Targettopic名称\n注意:此字段可能返回 null,表示取不到有效值。",
45401
+ "example": "无",
45402
+ "member": "string",
45403
+ "name": "TargetTopic",
45404
+ "output_required": false,
45405
+ "type": "string",
45406
+ "value_allowed_null": true
45407
+ },
45408
+ {
45409
+ "disabled": false,
45410
+ "document": "TargetCollection名称\n注意:此字段可能返回 null,表示取不到有效值。",
45411
+ "example": "无",
45412
+ "member": "string",
45413
+ "name": "TargetCollection",
45414
+ "output_required": false,
45415
+ "type": "string",
45416
+ "value_allowed_null": true
45417
+ },
45418
+ {
45419
+ "disabled": false,
45420
+ "document": "数据源名称\n注意:此字段可能返回 null,表示取不到有效值。",
45421
+ "example": "测试数据源",
45422
+ "member": "string",
45423
+ "name": "TargetDataSourceName",
45424
+ "output_required": false,
45425
+ "type": "string",
45426
+ "value_allowed_null": true
45427
+ },
45428
+ {
45429
+ "disabled": false,
45430
+ "document": "节点id\n注意:此字段可能返回 null,表示取不到有效值。",
45431
+ "example": "1212",
45432
+ "member": "string",
45433
+ "name": "TargetNodeId",
45434
+ "output_required": false,
45435
+ "type": "string",
45436
+ "value_allowed_null": true
45437
+ },
45438
+ {
45439
+ "disabled": false,
45440
+ "document": "读取条数的速度\n注意:此字段可能返回 null,表示取不到有效值。",
45441
+ "example": "无",
45442
+ "member": "float",
45443
+ "name": "TotalRecordSpeed",
45444
+ "output_required": false,
45445
+ "type": "float",
45446
+ "value_allowed_null": true
45447
+ },
45448
+ {
45449
+ "disabled": false,
45450
+ "document": "写入条数的速度\n注意:此字段可能返回 null,表示取不到有效值。",
45451
+ "example": "无",
45452
+ "member": "float",
45453
+ "name": "WriteTotalRecordSpeed",
45454
+ "output_required": false,
45455
+ "type": "float",
45456
+ "value_allowed_null": true
45457
+ },
45458
+ {
45459
+ "disabled": false,
45460
+ "document": "异常原因\n注意:此字段可能返回 null,表示取不到有效值。",
45461
+ "example": "1,2",
45462
+ "member": "string",
45463
+ "name": "ExceptionReason",
45464
+ "output_required": false,
45465
+ "type": "string",
45466
+ "value_allowed_null": true
45467
+ }
45468
+ ],
45469
+ "usage": "out"
45470
+ },
45042
45471
  "TaskTag": {
45043
45472
  "document": "任务标签,可用于检索任务的条件",
45044
45473
  "members": [
@@ -253,7 +253,7 @@
253
253
  "CreateHiveTableByDDL": [
254
254
  {
255
255
  "document": "创建表",
256
- "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateHiveTableByDDL\n<公共请求参数>\n\n{\n \"DatasourceId\": \"12342313\",\n \"Database\": \"hive\",\n \"DDLSql\": \"select * from database;\",\n \"Incharge\": \"231232\",\n \"Privilege\": 0,\n \"ProjectId\": \"124537\",\n \"Type\": \"HIVE\",\n \"Async\": true\n}",
256
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateHiveTableByDDL\n<公共请求参数>\n\n{\n \"DatasourceId\": \"12342313\",\n \"Database\": \"hive\",\n \"DDLSql\": \"Q1JFQVRFIFRBQkxFIGBhYWFgLmBiaWdfdGFibGVfMWAoCmBpZGAgaW50LApgbnVtMWAgaW50LApgbnVtMmAgaW50LApgbnVtM2AgaW50LApgbnVtNGAgaW50LApgbnVtNWAgaW50KQpyb3cgZm9ybWF0IGRlbGltaXRlZCAKZmllbGRzIHRlcm1pbmF0ZWQgYnkgJ1x0JyAKU1RPUkVEIEFTIFBBUlFVRVQ7\",\n \"Incharge\": \"231232\",\n \"Privilege\": 0,\n \"ProjectId\": \"124537\",\n \"Type\": \"HIVE\",\n \"Async\": true\n}",
257
257
  "output": "{\n \"Response\": {\n \"Data\": \"tablename\",\n \"TaskId\": \"25\",\n \"RequestId\": \"as1cs2c123asyi23bh213cc\"\n }\n}",
258
258
  "title": "CreateHiveTableByDDL"
259
259
  }
@@ -278,7 +278,7 @@
278
278
  {
279
279
  "document": "创建离线任务",
280
280
  "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOfflineTask\n<公共请求参数>\n\n{\n \"ProjectId\": \"1486446569620893696\",\n \"CycleStep\": 1,\n \"DelayTime\": 0,\n \"EndTime\": \"2099-12-31 00:00:00\",\n \"Notes\": \"\",\n \"StartTime\": \"2022-04-11 00:00:00\",\n \"TaskName\": \"task test name\",\n \"TypeId\": 27,\n \"TaskAction\": \"\",\n \"TaskMode\": \"1\"\n}",
281
- "output": "{\n \"Response\": {\n \"TaskId\": \"20220411181355382\",\n \"Data\": \"true\",\n \"RequestId\": \"7508483f-5202-44b3-a846-8c6efb42acb0\"\n }\n}",
281
+ "output": "{\n \"Response\": {\n \"TaskId\": \"20220411181355382\",\n \"ArrangeSpaceTaskId\": null,\n \"Data\": null,\n \"RequestId\": \"7508483f-5202-44b3-a846-8c6efb42acb0\"\n }\n}",
282
282
  "title": "创建离线任务"
283
283
  }
284
284
  ],
@@ -1464,6 +1464,14 @@
1464
1464
  "title": "查询任务脚本范例"
1465
1465
  }
1466
1466
  ],
1467
+ "DescribeTaskTableMetricOverview": [
1468
+ {
1469
+ "document": "",
1470
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskTableMetricOverview\n<公共请求参数>\n\n{\n \"TaskId\": \"123\",\n \"NodeType\": \"NodeType\",\n \"TaskType\": 0,\n \"Filters\": [\n {\n \"Name\": \"Name\",\n \"Values\": [\n \"1\"\n ]\n }\n ],\n \"PageNumber\": 0,\n \"PageSize\": 0,\n \"OrderFields\": [\n {\n \"Name\": \"Name\",\n \"Direction\": \"Direction\"\n }\n ],\n \"ProjectId\": \"1\"\n}",
1471
+ "output": "{\n \"Response\": {\n \"TaskTableMetricInfos\": [\n {\n \"DatabaseName\": \"DatabaseName\",\n \"TableName\": \"TableName\",\n \"TotalRecordNum\": 0,\n \"TotalRecordByteNum\": 0,\n \"TotalDirtyRecordNum\": 0,\n \"SchemaName\": \"SchemaName\",\n \"Topic\": \"Topic\",\n \"Collection\": \"Collection\",\n \"DataSourceName\": \"DataSourceName\",\n \"NodeId\": \"123\"\n }\n ],\n \"TotalCount\": 0,\n \"MetricType\": \"num\",\n \"RequestId\": \"as1cs2c123asyi23bh213cc\"\n }\n}",
1472
+ "title": "查询实时任务表粒度指标概览"
1473
+ }
1474
+ ],
1467
1475
  "DescribeTemplateDimCount": [
1468
1476
  {
1469
1477
  "document": "查询规则模板维度分布情况",
@@ -329,7 +329,7 @@ def doGetFileInfo(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
- def doCreateRuleTemplate(args, parsed_globals):
332
+ def doDescribeTaskTableMetricOverview(args, parsed_globals):
333
333
  g_param = parse_global_arg(parsed_globals)
334
334
 
335
335
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -358,11 +358,11 @@ def doCreateRuleTemplate(args, parsed_globals):
358
358
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
359
359
  client._sdkVersion += ("_CLI_" + __version__)
360
360
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
- model = models.CreateRuleTemplateRequest()
361
+ model = models.DescribeTaskTableMetricOverviewRequest()
362
362
  model.from_json_string(json.dumps(args))
363
363
  start_time = time.time()
364
364
  while True:
365
- rsp = client.CreateRuleTemplate(model)
365
+ rsp = client.DescribeTaskTableMetricOverview(model)
366
366
  result = rsp.to_json_string()
367
367
  try:
368
368
  json_obj = json.loads(result)
@@ -3293,6 +3293,58 @@ def doDescribeDsFolderTree(args, parsed_globals):
3293
3293
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3294
3294
 
3295
3295
 
3296
+ def doCreateRuleTemplate(args, parsed_globals):
3297
+ g_param = parse_global_arg(parsed_globals)
3298
+
3299
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3300
+ cred = credential.CVMRoleCredential()
3301
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3302
+ cred = credential.STSAssumeRoleCredential(
3303
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3304
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3305
+ )
3306
+ 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):
3307
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3308
+ else:
3309
+ cred = credential.Credential(
3310
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3311
+ )
3312
+ http_profile = HttpProfile(
3313
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3314
+ reqMethod="POST",
3315
+ endpoint=g_param[OptionsDefine.Endpoint],
3316
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3317
+ )
3318
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3319
+ if g_param[OptionsDefine.Language]:
3320
+ profile.language = g_param[OptionsDefine.Language]
3321
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3322
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
3323
+ client._sdkVersion += ("_CLI_" + __version__)
3324
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
+ model = models.CreateRuleTemplateRequest()
3326
+ model.from_json_string(json.dumps(args))
3327
+ start_time = time.time()
3328
+ while True:
3329
+ rsp = client.CreateRuleTemplate(model)
3330
+ result = rsp.to_json_string()
3331
+ try:
3332
+ json_obj = json.loads(result)
3333
+ except TypeError as e:
3334
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3335
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3336
+ break
3337
+ cur_time = time.time()
3338
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3339
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3340
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3341
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3342
+ else:
3343
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3344
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3345
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
+
3347
+
3296
3348
  def doSubmitTaskTestRun(args, parsed_globals):
3297
3349
  g_param = parse_global_arg(parsed_globals)
3298
3350
 
@@ -12462,7 +12514,7 @@ ACTION_MAP = {
12462
12514
  "DeleteIntegrationTask": doDeleteIntegrationTask,
12463
12515
  "KillScheduleInstances": doKillScheduleInstances,
12464
12516
  "GetFileInfo": doGetFileInfo,
12465
- "CreateRuleTemplate": doCreateRuleTemplate,
12517
+ "DescribeTaskTableMetricOverview": doDescribeTaskTableMetricOverview,
12466
12518
  "DescribeRealTimeTaskMetricOverview": doDescribeRealTimeTaskMetricOverview,
12467
12519
  "DescribeScheduleInstances": doDescribeScheduleInstances,
12468
12520
  "BatchStopOpsTasks": doBatchStopOpsTasks,
@@ -12519,6 +12571,7 @@ ACTION_MAP = {
12519
12571
  "DescribeTopTableStat": doDescribeTopTableStat,
12520
12572
  "DescribeOrganizationalFunctions": doDescribeOrganizationalFunctions,
12521
12573
  "DescribeDsFolderTree": doDescribeDsFolderTree,
12574
+ "CreateRuleTemplate": doCreateRuleTemplate,
12522
12575
  "SubmitTaskTestRun": doSubmitTaskTestRun,
12523
12576
  "DescribeApproveTypeList": doDescribeApproveTypeList,
12524
12577
  "DescribeRuleExecLog": doDescribeRuleExecLog,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1253.1
3
+ Version: 3.0.1254.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.1253
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1254
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介