tccli 3.0.1350.1__py2.py3-none-any.whl → 3.0.1352.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.
- tccli/__init__.py +1 -1
- tccli/services/ai3d/v20250513/api.json +1 -1
- tccli/services/ai3d/v20250513/examples.json +1 -1
- tccli/services/apm/v20210622/api.json +7 -9
- tccli/services/ccc/v20200210/api.json +1 -1
- tccli/services/cdb/v20170320/api.json +2 -2
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/cdwch/v20200915/api.json +7 -7
- tccli/services/cdwch/v20200915/examples.json +2 -2
- tccli/services/ctem/ctem_client.py +371 -0
- tccli/services/ctem/v20231128/api.json +2111 -571
- tccli/services/ctem/v20231128/examples.json +56 -0
- tccli/services/cwp/v20180228/api.json +11 -1
- tccli/services/cynosdb/v20190107/api.json +28 -0
- tccli/services/cynosdb/v20190107/examples.json +4 -4
- tccli/services/ess/ess_client.py +114 -8
- tccli/services/ess/v20201111/api.json +212 -0
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/gme/v20180711/api.json +40 -0
- tccli/services/iss/v20230517/api.json +9 -9
- tccli/services/kms/v20190118/api.json +188 -0
- tccli/services/live/v20180801/api.json +299 -3
- tccli/services/live/v20180801/examples.json +6 -6
- tccli/services/lke/lke_client.py +12 -436
- tccli/services/lke/v20231130/api.json +25 -1065
- tccli/services/lke/v20231130/examples.json +0 -64
- tccli/services/lkeap/v20240522/api.json +94 -17
- tccli/services/lkeap/v20240522/examples.json +2 -2
- tccli/services/mongodb/v20190725/api.json +2 -2
- tccli/services/mongodb/v20190725/examples.json +1 -1
- tccli/services/monitor/monitor_client.py +53 -0
- tccli/services/monitor/v20180724/api.json +38 -24
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/monitor/v20230616/api.json +58 -195
- tccli/services/monitor/v20230616/examples.json +4 -10
- tccli/services/mps/mps_client.py +53 -0
- tccli/services/mps/v20190612/api.json +586 -285
- tccli/services/mps/v20190612/examples.json +18 -4
- tccli/services/ocr/v20181119/api.json +24 -4
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/omics/v20221128/api.json +9 -0
- tccli/services/pts/v20210728/api.json +1 -1
- tccli/services/redis/v20180412/api.json +24 -5
- tccli/services/redis/v20180412/examples.json +1 -1
- tccli/services/scf/v20180416/api.json +3 -0
- tccli/services/ssl/v20191205/api.json +31 -1
- tccli/services/teo/teo_client.py +777 -35
- tccli/services/teo/v20220901/api.json +1026 -3
- tccli/services/teo/v20220901/examples.json +154 -0
- tccli/services/tione/v20211111/api.json +9 -0
- tccli/services/tke/v20180525/api.json +2 -2
- tccli/services/tse/tse_client.py +80 -27
- tccli/services/tse/v20201207/api.json +193 -0
- tccli/services/tse/v20201207/examples.json +8 -0
- tccli/services/vod/v20180717/api.json +60 -60
- tccli/services/vod/v20180717/examples.json +20 -20
- {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/RECORD +61 -61
- {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/license_files/LICENSE +0 -0
@@ -155,7 +155,7 @@
|
|
155
155
|
"status": "online"
|
156
156
|
},
|
157
157
|
"ReconstructDocumentSSE": {
|
158
|
-
"document": "准实时文档解析接口,使用HTTP SSE
|
158
|
+
"document": "准实时文档解析接口,使用HTTP SSE 协议通信。\n支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。\n输入:pdf、ppt、docx、doc、jpg等\n输出:正常阅读顺序的md文件、识别结果的json(可选)等",
|
159
159
|
"input": "ReconstructDocumentSSERequest",
|
160
160
|
"name": "实时文档解析",
|
161
161
|
"output": "ReconstructDocumentSSEResponse",
|
@@ -665,6 +665,15 @@
|
|
665
665
|
"name": "ResultType",
|
666
666
|
"required": false,
|
667
667
|
"type": "string"
|
668
|
+
},
|
669
|
+
{
|
670
|
+
"disabled": false,
|
671
|
+
"document": "是否忽略失败页,返回已成功的页数据。默认为true。",
|
672
|
+
"example": "true",
|
673
|
+
"member": "bool",
|
674
|
+
"name": "IgnoreFailedPage",
|
675
|
+
"required": false,
|
676
|
+
"type": "bool"
|
668
677
|
}
|
669
678
|
],
|
670
679
|
"usage": "in"
|
@@ -683,7 +692,7 @@
|
|
683
692
|
},
|
684
693
|
{
|
685
694
|
"disabled": false,
|
686
|
-
"document": "
|
695
|
+
"document": "说明:文件的 URL 地址。\n备注:文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。\n参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)",
|
687
696
|
"example": "无",
|
688
697
|
"member": "string",
|
689
698
|
"name": "FileUrl",
|
@@ -701,7 +710,7 @@
|
|
701
710
|
},
|
702
711
|
{
|
703
712
|
"disabled": false,
|
704
|
-
"document": "
|
713
|
+
"document": "说明:文档的起始页码。\n备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。\n默认值:无",
|
705
714
|
"example": "1",
|
706
715
|
"member": "int64",
|
707
716
|
"name": "FileStartPageNumber",
|
@@ -710,7 +719,7 @@
|
|
710
719
|
},
|
711
720
|
{
|
712
721
|
"disabled": false,
|
713
|
-
"document": "
|
722
|
+
"document": "说明:文档的结束页码。\n备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。\n默认值:无",
|
714
723
|
"example": "100",
|
715
724
|
"member": "int64",
|
716
725
|
"name": "FileEndPageNumber",
|
@@ -719,7 +728,7 @@
|
|
719
728
|
},
|
720
729
|
{
|
721
730
|
"disabled": false,
|
722
|
-
"document": "
|
731
|
+
"document": "说明:创建文档解析任务配置信息。\n备注:可设置结果的返回格式\n默认值:无",
|
723
732
|
"example": "{\"TableResultType\":\"1\"}",
|
724
733
|
"member": "CreateReconstructDocumentFlowConfig",
|
725
734
|
"name": "Config",
|
@@ -735,7 +744,7 @@
|
|
735
744
|
{
|
736
745
|
"disabled": false,
|
737
746
|
"document": "任务唯一id。30天内可以通过GetReconstructDocumentResult接口查询TaskId对应的处理结果。",
|
738
|
-
"example": "
|
747
|
+
"example": "25adcef61750343903609",
|
739
748
|
"member": "string",
|
740
749
|
"name": "TaskId",
|
741
750
|
"output_required": true,
|
@@ -789,6 +798,15 @@
|
|
789
798
|
"name": "MaxChunkSize",
|
790
799
|
"required": false,
|
791
800
|
"type": "int"
|
801
|
+
},
|
802
|
+
{
|
803
|
+
"disabled": false,
|
804
|
+
"document": "是否忽略返回失败页码",
|
805
|
+
"example": "true",
|
806
|
+
"member": "bool",
|
807
|
+
"name": "IgnoreFailedPage",
|
808
|
+
"required": false,
|
809
|
+
"type": "bool"
|
792
810
|
}
|
793
811
|
],
|
794
812
|
"usage": "in"
|
@@ -1254,6 +1272,26 @@
|
|
1254
1272
|
"output_required": false,
|
1255
1273
|
"type": "int",
|
1256
1274
|
"value_allowed_null": false
|
1275
|
+
},
|
1276
|
+
{
|
1277
|
+
"disabled": false,
|
1278
|
+
"document": "解析成功页数",
|
1279
|
+
"example": "10",
|
1280
|
+
"member": "int64",
|
1281
|
+
"name": "SuccessPageNum",
|
1282
|
+
"output_required": false,
|
1283
|
+
"type": "int",
|
1284
|
+
"value_allowed_null": false
|
1285
|
+
},
|
1286
|
+
{
|
1287
|
+
"disabled": false,
|
1288
|
+
"document": "解析失败页数",
|
1289
|
+
"example": "1",
|
1290
|
+
"member": "int64",
|
1291
|
+
"name": "FailPageNum",
|
1292
|
+
"output_required": false,
|
1293
|
+
"type": "int",
|
1294
|
+
"value_allowed_null": false
|
1257
1295
|
}
|
1258
1296
|
],
|
1259
1297
|
"usage": "out"
|
@@ -1373,8 +1411,8 @@
|
|
1373
1411
|
"members": [
|
1374
1412
|
{
|
1375
1413
|
"disabled": false,
|
1376
|
-
"document": "
|
1377
|
-
"example": "
|
1414
|
+
"document": "说明:解析任务ID\n备注:仅支持单个任务ID",
|
1415
|
+
"example": "25adcef61750343903609",
|
1378
1416
|
"member": "string",
|
1379
1417
|
"name": "TaskId",
|
1380
1418
|
"required": true,
|
@@ -1416,6 +1454,16 @@
|
|
1416
1454
|
"type": "list",
|
1417
1455
|
"value_allowed_null": false
|
1418
1456
|
},
|
1457
|
+
{
|
1458
|
+
"disabled": false,
|
1459
|
+
"document": "文档拆分任务的用量\t",
|
1460
|
+
"example": "无",
|
1461
|
+
"member": "DocumentUsage",
|
1462
|
+
"name": "Usage",
|
1463
|
+
"output_required": false,
|
1464
|
+
"type": "object",
|
1465
|
+
"value_allowed_null": false
|
1466
|
+
},
|
1419
1467
|
{
|
1420
1468
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1421
1469
|
"member": "string",
|
@@ -1476,7 +1524,7 @@
|
|
1476
1524
|
{
|
1477
1525
|
"disabled": false,
|
1478
1526
|
"document": "文档拆分任务的用量",
|
1479
|
-
"example": "
|
1527
|
+
"example": "无",
|
1480
1528
|
"member": "DocumentUsage",
|
1481
1529
|
"name": "Usage",
|
1482
1530
|
"output_required": false,
|
@@ -2123,6 +2171,15 @@
|
|
2123
2171
|
"name": "PageFormat",
|
2124
2172
|
"required": false,
|
2125
2173
|
"type": "string"
|
2174
|
+
},
|
2175
|
+
{
|
2176
|
+
"disabled": false,
|
2177
|
+
"document": "是否忽略失败页,返回已成功的页数据",
|
2178
|
+
"example": "true",
|
2179
|
+
"member": "bool",
|
2180
|
+
"name": "IgnoreFailedPage",
|
2181
|
+
"required": false,
|
2182
|
+
"type": "bool"
|
2126
2183
|
}
|
2127
2184
|
],
|
2128
2185
|
"usage": "in"
|
@@ -2132,7 +2189,7 @@
|
|
2132
2189
|
"members": [
|
2133
2190
|
{
|
2134
2191
|
"disabled": false,
|
2135
|
-
"document": "
|
2192
|
+
"document": "支持解析的文件类型。\n**支持的文件类型**:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2\n**支持的文件大小**:\n- PDF、DOC、DOCX、PPT、PPTX 支持100M\n- MD、TXT、XLS、XLSX、CSV 支持10M\n- 其他支持20M\n",
|
2136
2193
|
"example": "PDF",
|
2137
2194
|
"member": "string",
|
2138
2195
|
"name": "FileType",
|
@@ -2141,7 +2198,7 @@
|
|
2141
2198
|
},
|
2142
2199
|
{
|
2143
2200
|
"disabled": false,
|
2144
|
-
"document": "文件的 URL
|
2201
|
+
"document": "文件的 URL 地址。文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。\n参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)\n\n默认值:无",
|
2145
2202
|
"example": "无",
|
2146
2203
|
"member": "string",
|
2147
2204
|
"name": "FileUrl",
|
@@ -2150,7 +2207,7 @@
|
|
2150
2207
|
},
|
2151
2208
|
{
|
2152
2209
|
"disabled": false,
|
2153
|
-
"document": "
|
2210
|
+
"document": "说明:文件的 Base64 值。\n备注:支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。\n支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。\n\n默认值:无",
|
2154
2211
|
"example": "无",
|
2155
2212
|
"member": "string",
|
2156
2213
|
"name": "FileBase64",
|
@@ -2159,7 +2216,7 @@
|
|
2159
2216
|
},
|
2160
2217
|
{
|
2161
2218
|
"disabled": false,
|
2162
|
-
"document": "
|
2219
|
+
"document": "说明:文档的起始页码。\n备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。\n默认值:无",
|
2163
2220
|
"example": "1",
|
2164
2221
|
"member": "int64",
|
2165
2222
|
"name": "FileStartPageNumber",
|
@@ -2168,7 +2225,7 @@
|
|
2168
2225
|
},
|
2169
2226
|
{
|
2170
2227
|
"disabled": false,
|
2171
|
-
"document": "
|
2228
|
+
"document": "说明:文档的结束页码。\n备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。\n默认值:无",
|
2172
2229
|
"example": "100",
|
2173
2230
|
"member": "int64",
|
2174
2231
|
"name": "FileEndPageNumber",
|
@@ -2177,7 +2234,7 @@
|
|
2177
2234
|
},
|
2178
2235
|
{
|
2179
2236
|
"disabled": false,
|
2180
|
-
"document": "
|
2237
|
+
"document": "说明:文档解析配置信息\t\n备注:可设置返回markdown结果的格式\n默认值:无\n",
|
2181
2238
|
"example": "无",
|
2182
2239
|
"member": "ReconstructDocumentSSEConfig",
|
2183
2240
|
"name": "Config",
|
@@ -2202,7 +2259,7 @@
|
|
2202
2259
|
},
|
2203
2260
|
{
|
2204
2261
|
"disabled": false,
|
2205
|
-
"document": "响应类型。1:返回进度信息,2:返回解析结果",
|
2262
|
+
"document": "响应类型。1:返回进度信息, 2:返回解析结果",
|
2206
2263
|
"example": "无",
|
2207
2264
|
"member": "string",
|
2208
2265
|
"name": "ResponseType",
|
@@ -2232,7 +2289,7 @@
|
|
2232
2289
|
},
|
2233
2290
|
{
|
2234
2291
|
"disabled": false,
|
2235
|
-
"document": "
|
2292
|
+
"document": "文档解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟。压缩包内包含*.md、*.json以及images文件夹。\n",
|
2236
2293
|
"example": "无",
|
2237
2294
|
"member": "string",
|
2238
2295
|
"name": "DocumentRecognizeResultUrl",
|
@@ -2250,6 +2307,26 @@
|
|
2250
2307
|
"type": "list",
|
2251
2308
|
"value_allowed_null": false
|
2252
2309
|
},
|
2310
|
+
{
|
2311
|
+
"disabled": false,
|
2312
|
+
"document": "文档解析失败页数",
|
2313
|
+
"example": "1",
|
2314
|
+
"member": "int64",
|
2315
|
+
"name": "FailPageNum",
|
2316
|
+
"output_required": false,
|
2317
|
+
"type": "int",
|
2318
|
+
"value_allowed_null": false
|
2319
|
+
},
|
2320
|
+
{
|
2321
|
+
"disabled": false,
|
2322
|
+
"document": "文档解析成功页数",
|
2323
|
+
"example": "10",
|
2324
|
+
"member": "int64",
|
2325
|
+
"name": "SuccessPageNum",
|
2326
|
+
"output_required": false,
|
2327
|
+
"type": "int",
|
2328
|
+
"value_allowed_null": false
|
2329
|
+
},
|
2253
2330
|
{
|
2254
2331
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header \"X-TC-RequestId\" 中。",
|
2255
2332
|
"member": "string",
|
@@ -119,8 +119,8 @@
|
|
119
119
|
"GetReconstructDocumentResult": [
|
120
120
|
{
|
121
121
|
"document": "",
|
122
|
-
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetReconstructDocumentResult\n<公共请求参数>\n\n{\n \"TaskId\": \"
|
123
|
-
"output": "{\n \"Response\": {\n \"DocumentRecognizeResultUrl\": \"https://document-restruction-1258344699.cos.ap-guangzhou.myqcloud.com/doc_parse/output_files/a9c6a9482c72412fa84445a44ss125531.zip?q-sign-algorithm=sha1&q-ak=AKIDlWFaadfHLNbidLwPqOrAKGzXrx40scL7l&q-sign-time=1715503711%3B1718804311&q-key-time=1718855711%3B1718804311&q-header-list=host&q-url-param-list=&q-signature=71b568b8632d7e45gertdc3d235ef68d41fdfe7f8\",\n \"FailedPages\": [],\n \"RequestId\": \"a37b0d0b-c3af-44bd-iuiu-632442644a80\",\n \"Status\": \"Success\"\n }\n}",
|
122
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetReconstructDocumentResult\n<公共请求参数>\n\n{\n \"TaskId\": \"25adcef61750343903609\"\n}",
|
123
|
+
"output": "{\n \"Response\": {\n \"DocumentRecognizeResultUrl\": \"https://document-restruction-1258344699.cos.ap-guangzhou.myqcloud.com/doc_parse/output_files/a9c6a9482c72412fa84445a44ss125531.zip?q-sign-algorithm=sha1&q-ak=AKIDlWFaadfHLNbidLwPqOrAKGzXrx40scL7l&q-sign-time=1715503711%3B1718804311&q-key-time=1718855711%3B1718804311&q-header-list=host&q-url-param-list=&q-signature=71b568b8632d7e45gertdc3d235ef68d41fdfe7f8\",\n \"FailedPages\": [],\n \"RequestId\": \"a37b0d0b-c3af-44bd-iuiu-632442644a80\",\n \"Status\": \"Success\",\n \"Usage\": {\n \"PageNumber\": 10,\n \"TotalTokens\": 2048\n }\n }\n}",
|
124
124
|
"title": "接口调用成功示例"
|
125
125
|
}
|
126
126
|
],
|
@@ -3858,7 +3858,7 @@
|
|
3858
3858
|
},
|
3859
3859
|
{
|
3860
3860
|
"disabled": false,
|
3861
|
-
"document": "-
|
3861
|
+
"document": "- 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。\n- 创建分片集群实例,指每个分片的主从节点数量。每个分片所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。",
|
3862
3862
|
"example": "3",
|
3863
3863
|
"member": "int64",
|
3864
3864
|
"name": "NodeNum",
|
@@ -5304,7 +5304,7 @@
|
|
5304
5304
|
},
|
5305
5305
|
{
|
5306
5306
|
"disabled": false,
|
5307
|
-
"document": "目标安全组 ID。请通过接口[DescribeSecurityGroup](https://cloud.tencent.com/document/product/240/55675)查看具体的安全组 ID
|
5307
|
+
"document": "目标安全组 ID。请通过接口[DescribeSecurityGroup](https://cloud.tencent.com/document/product/240/55675)查看具体的安全组 ID。\n**注意**:该入参会全量替换存量已有集合,非增量更新。修改需传入预期的全量集合。",
|
5308
5308
|
"example": "[\"sg-a\", \"sg-b\"]",
|
5309
5309
|
"member": "string",
|
5310
5310
|
"name": "SecurityGroupIds",
|
@@ -329,7 +329,7 @@
|
|
329
329
|
"ModifyDBInstanceSecurityGroup": [
|
330
330
|
{
|
331
331
|
"document": "修改指定实例的安全组入站规则",
|
332
|
-
"input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDBInstanceSecurityGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-
|
332
|
+
"input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDBInstanceSecurityGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-14i5****'\",\n \"SecurityGroupIds\": [\n \"sg-l7ip****\"\n ]\n}",
|
333
333
|
"output": "{\n \"Response\": {\n \"RequestId\": \"bc59fa05-d429-4bcf-863f-1f6f99295485\"\n }\n}",
|
334
334
|
"title": "修改实例的安全组信息"
|
335
335
|
}
|
@@ -2983,6 +2983,58 @@ def doUpgradeGrafanaInstance(args, parsed_globals):
|
|
2983
2983
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2984
2984
|
|
2985
2985
|
|
2986
|
+
def doDescribeAlarmNotifyHistories(args, parsed_globals):
|
2987
|
+
g_param = parse_global_arg(parsed_globals)
|
2988
|
+
|
2989
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2990
|
+
cred = credential.CVMRoleCredential()
|
2991
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2992
|
+
cred = credential.STSAssumeRoleCredential(
|
2993
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2994
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2995
|
+
)
|
2996
|
+
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):
|
2997
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2998
|
+
else:
|
2999
|
+
cred = credential.Credential(
|
3000
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3001
|
+
)
|
3002
|
+
http_profile = HttpProfile(
|
3003
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3004
|
+
reqMethod="POST",
|
3005
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3006
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3007
|
+
)
|
3008
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3009
|
+
if g_param[OptionsDefine.Language]:
|
3010
|
+
profile.language = g_param[OptionsDefine.Language]
|
3011
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3012
|
+
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
3013
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3014
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3015
|
+
model = models.DescribeAlarmNotifyHistoriesRequest()
|
3016
|
+
model.from_json_string(json.dumps(args))
|
3017
|
+
start_time = time.time()
|
3018
|
+
while True:
|
3019
|
+
rsp = client.DescribeAlarmNotifyHistories(model)
|
3020
|
+
result = rsp.to_json_string()
|
3021
|
+
try:
|
3022
|
+
json_obj = json.loads(result)
|
3023
|
+
except TypeError as e:
|
3024
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3025
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3026
|
+
break
|
3027
|
+
cur_time = time.time()
|
3028
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3029
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3030
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3031
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3032
|
+
else:
|
3033
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3034
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3035
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3036
|
+
|
3037
|
+
|
2986
3038
|
def doDescribeGrafanaChannels(args, parsed_globals):
|
2987
3039
|
g_param = parse_global_arg(parsed_globals)
|
2988
3040
|
|
@@ -8773,6 +8825,7 @@ ACTION_MAP = {
|
|
8773
8825
|
"UpdatePrometheusScrapeJob": doUpdatePrometheusScrapeJob,
|
8774
8826
|
"DescribePrometheusInstanceInitStatus": doDescribePrometheusInstanceInitStatus,
|
8775
8827
|
"UpgradeGrafanaInstance": doUpgradeGrafanaInstance,
|
8828
|
+
"DescribeAlarmNotifyHistories": doDescribeAlarmNotifyHistories,
|
8776
8829
|
"DescribeGrafanaChannels": doDescribeGrafanaChannels,
|
8777
8830
|
"DeleteGrafanaIntegration": doDeleteGrafanaIntegration,
|
8778
8831
|
"BindPrometheusManagedGrafana": doBindPrometheusManagedGrafana,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"BindPrometheusManagedGrafana": {
|
4
4
|
"document": "绑定 Grafana 可视化服务实例",
|
5
5
|
"input": "BindPrometheusManagedGrafanaRequest",
|
6
|
-
"name": "绑定 Grafana
|
6
|
+
"name": "绑定 Grafana 服务实例",
|
7
7
|
"output": "BindPrometheusManagedGrafanaResponse",
|
8
8
|
"status": "online"
|
9
9
|
},
|
@@ -1025,7 +1025,7 @@
|
|
1025
1025
|
"UnbindPrometheusManagedGrafana": {
|
1026
1026
|
"document": "解除实例绑定的 Grafana 可视化实例",
|
1027
1027
|
"input": "UnbindPrometheusManagedGrafanaRequest",
|
1028
|
-
"name": "解除实例绑定的 Grafana
|
1028
|
+
"name": "解除实例绑定的 Grafana 服务实例",
|
1029
1029
|
"output": "UnbindPrometheusManagedGrafanaResponse",
|
1030
1030
|
"status": "online"
|
1031
1031
|
},
|
@@ -4831,7 +4831,7 @@
|
|
4831
4831
|
},
|
4832
4832
|
{
|
4833
4833
|
"disabled": false,
|
4834
|
-
"document": "
|
4834
|
+
"document": "腾讯云可观测平台告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx",
|
4835
4835
|
"example": "[\"Consumer-5sfs3242\", \"notice-as6512as\"]",
|
4836
4836
|
"member": "string",
|
4837
4837
|
"name": "AMPReceivers",
|
@@ -16569,44 +16569,58 @@
|
|
16569
16569
|
"document": "ModifyConditionsTemplateRequestEventCondition",
|
16570
16570
|
"members": [
|
16571
16571
|
{
|
16572
|
-
"disabled":
|
16572
|
+
"disabled": true,
|
16573
16573
|
"document": "告警通知周期",
|
16574
|
-
"example": "",
|
16574
|
+
"example": "已不再使用",
|
16575
16575
|
"member": "string",
|
16576
16576
|
"name": "AlarmNotifyPeriod",
|
16577
|
-
"required":
|
16578
|
-
"type": "string"
|
16579
|
-
"value_allowed_null": false
|
16577
|
+
"required": false,
|
16578
|
+
"type": "string"
|
16580
16579
|
},
|
16581
16580
|
{
|
16582
|
-
"disabled":
|
16581
|
+
"disabled": true,
|
16583
16582
|
"document": "告警通知方式",
|
16584
|
-
"example": "",
|
16583
|
+
"example": "已不再使用",
|
16585
16584
|
"member": "string",
|
16586
16585
|
"name": "AlarmNotifyType",
|
16587
|
-
"required":
|
16588
|
-
"type": "string"
|
16589
|
-
"value_allowed_null": false
|
16586
|
+
"required": false,
|
16587
|
+
"type": "string"
|
16590
16588
|
},
|
16591
16589
|
{
|
16592
|
-
"disabled":
|
16590
|
+
"disabled": true,
|
16593
16591
|
"document": "事件ID",
|
16594
|
-
"example": "",
|
16592
|
+
"example": "已不再使用",
|
16595
16593
|
"member": "string",
|
16596
16594
|
"name": "EventID",
|
16597
|
-
"required":
|
16598
|
-
"type": "string"
|
16599
|
-
"value_allowed_null": false
|
16595
|
+
"required": false,
|
16596
|
+
"type": "string"
|
16600
16597
|
},
|
16601
16598
|
{
|
16602
|
-
"disabled":
|
16599
|
+
"disabled": true,
|
16603
16600
|
"document": "规则ID",
|
16604
|
-
"example": "",
|
16601
|
+
"example": "已不再使用",
|
16605
16602
|
"member": "int64",
|
16606
16603
|
"name": "RuleID",
|
16607
16604
|
"required": false,
|
16608
|
-
"type": "int"
|
16609
|
-
|
16605
|
+
"type": "int"
|
16606
|
+
},
|
16607
|
+
{
|
16608
|
+
"disabled": false,
|
16609
|
+
"document": "重构后的eventType",
|
16610
|
+
"example": "cvm:ErrorEvent:CvmPacketDropedByQ osConnectionSession",
|
16611
|
+
"member": "string",
|
16612
|
+
"name": "MetricName",
|
16613
|
+
"required": false,
|
16614
|
+
"type": "string"
|
16615
|
+
},
|
16616
|
+
{
|
16617
|
+
"disabled": false,
|
16618
|
+
"document": "事件描述信息",
|
16619
|
+
"example": "连接数超限导致丢包",
|
16620
|
+
"member": "string",
|
16621
|
+
"name": "Description",
|
16622
|
+
"required": false,
|
16623
|
+
"type": "string"
|
16610
16624
|
}
|
16611
16625
|
],
|
16612
16626
|
"usage": "in"
|
@@ -18227,7 +18241,7 @@
|
|
18227
18241
|
},
|
18228
18242
|
{
|
18229
18243
|
"disabled": false,
|
18230
|
-
"document": "
|
18244
|
+
"document": "腾讯云可观测平台告警模板ID ,返回告警模板转换后的notice ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
18231
18245
|
"example": "[\"notice-as454a12\"]",
|
18232
18246
|
"member": "string",
|
18233
18247
|
"name": "AMPReceivers",
|
@@ -22196,7 +22210,7 @@
|
|
22196
22210
|
},
|
22197
22211
|
{
|
22198
22212
|
"disabled": false,
|
22199
|
-
"document": "
|
22213
|
+
"document": "腾讯云可观测平台告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx",
|
22200
22214
|
"example": "[\"Consumer-5sfs3242\"]",
|
22201
22215
|
"member": "string",
|
22202
22216
|
"name": "AMPReceivers",
|
@@ -140,8 +140,8 @@
|
|
140
140
|
"title": "r. 创建 Graphite 集成"
|
141
141
|
},
|
142
142
|
{
|
143
|
-
"document": "参数说明:\n1. InstanceId 是 Prometheus 实例 ID,必填\n2. Kind 参数固定为 `qcloud-exporter`,必填\n3. Content 参数格式如示例。说明如下:\n3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`\n3.2. kind 是集成类型,必填且这里固定为 `qcloud-exporter`\n3.3. spec.instanceSpec.region 是云产品所在地域,必填,比如采集广州地域的云产品,可以填 `广州` 或 `ap-guangzhou`,该参数最终会转化为指标的 label, 名为 `instance-region`\n3.4. spec.instanceSpec.delaySeconds 表示数据采集延迟,整数,单位是秒,可不填,默认是 0。当值为 0 时,原始数据点的时间戳会被忽略,替换为集成拉取到数据点的时间;当值 >0 时,数据点会保留原始的时间戳,且数据必然会延迟设置的时间\n3.5. spec.instanceSpec.reload_interval_minutes 表示实例刷新间隔,整数,单位是分钟,必填且必须大于等于 10。云产品实例的新增或者云标签的修改,会在刷新实例后反映在指标中,至多需要等待一个实例刷新间隔\n3.6. spec.instanceSpec.useRole 表示是否使用服务角色,布尔类型,必填。当前逻辑一定会使用服务角色,所以必填 `true`\n3.7. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填\n3.8. spec.exporterSpec.[云产品] 表示是否采集对应云产品,布尔类型,`true` 表示采集该云产品。云产品各编码指代含义:`cvm`:云服务器,`cbs`:云硬盘,`lb_public`:负载均衡(公网),`lb_private`:负载均衡(内网),`tgw_set`:负载均衡(独占集群),`cmongo`:数据库MongoDB,`cdb`:数据库MySQL(CDB),`redis`:数据库Redis(CKV版),`redis_mem`:数据库Redis(内存版),`tendis`:Tendis,`xstor`:CTSDB(InfluxDB版),`mariadb`:数据库MariaDB,`postgres`:数据库PostgreSQL,`tdmysql`:TDSQL MySQL版,`cynosdb_mysql`:TDSQL-C MySQL,`sqlserver`:数据库SQL Server,`nat_gateway`:NAT网关,`ckafka`:CKafka,`rocketmq`:RocketMQ(新指标),`lb`:弹性公网IP,`vpngw`:VPN网关,`vpnx`:VPN通道,`vpc_net_detect`:网络探测,`cdn`:CDN,`ov_cdn`:CDN(海外),`cos`:COS,`dc`:专线接入-物理专线,`dcx`:专线接入-专用通道,`dcg`:专线接入-专线网关,`lighthouse`:轻量应用服务器,`nacos`:Nacos,`zookeeper`:Zookeeper,`ces`:Elasticsearch,`dts`:数据传输服务,`vbc`:云联网,`gaap`:全球应用加速,`waf`:Web应用防火墙,`cfs`:文件存储,`bwp`:共享带宽包,`scf_v2`:云函数(别名),`vod`:云点播(VOD),`cls`:日志服务(CLS)-日志主题,`apigateway`:API 网关,`ti_traintask`:TI-ONE(任务式建模),`ti_notebook`:TI-ONE(Notebook),`ti_model`:TI-ONE(在线服务),`self`:采集器自监控\n2.9. spec.scrapeSpec.relabelConfigs 用于添加 `
|
144
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExporterIntegration\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-1\",\n \"Kind\": \"qcloud-exporter\",\n \"Content\": \"{\\\"name\\\":\\\"test-qcloud\\\",\\\"kind\\\":\\\"qcloud-exporter\\\",\\\"spec\\\":{\\\"instanceSpec\\\":{\\\"region\\\":\\\"广州\\\",\\\"delaySeconds\\\":0,\\\"reload_interval_minutes\\\":10,\\\"useRole\\\":true,\\\"labels\\\":{\\\"labelKey\\\":\\\"labelValue\\\",\\\"test\\\":\\\"test\\\"}},\\\"exporterSpec\\\":{\\\"cvm\\\":true,\\\"cbs\\\":true},\\\"scrapeSpec\\\":{\\\"relabelConfigs\\\":\\\"
|
143
|
+
"document": "参数说明:\n1. InstanceId 是 Prometheus 实例 ID,必填\n2. Kind 参数固定为 `qcloud-exporter`,必填\n3. Content 参数格式如示例。说明如下:\n3.1. name 是集成名,必填且全局唯一,需要符合正则表达式`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`\n3.2. kind 是集成类型,必填且这里固定为 `qcloud-exporter`\n3.3. spec.instanceSpec.region 是云产品所在地域,必填,比如采集广州地域的云产品,可以填 `广州` 或 `ap-guangzhou`,该参数最终会转化为指标的 label, 名为 `instance-region`\n3.4. spec.instanceSpec.delaySeconds 表示数据采集延迟,整数,单位是秒,可不填,默认是 0。当值为 0 时,原始数据点的时间戳会被忽略,替换为集成拉取到数据点的时间;当值 >0 时,数据点会保留原始的时间戳,且数据必然会延迟设置的时间\n3.5. spec.instanceSpec.reload_interval_minutes 表示实例刷新间隔,整数,单位是分钟,必填且必须大于等于 10。云产品实例的新增或者云标签的修改,会在刷新实例后反映在指标中,至多需要等待一个实例刷新间隔\n3.6. spec.instanceSpec.useRole 表示是否使用服务角色,布尔类型,必填。当前逻辑一定会使用服务角色,所以必填 `true`\n3.7. spec.instanceSpec.labels 用于给指标添加自定义标签,键值对类型,选填\n3.8. spec.exporterSpec.[云产品] 表示是否采集对应云产品,布尔类型,`true` 表示采集该云产品。云产品各编码指代含义:`cvm`:云服务器,`cbs`:云硬盘,`lb_public`:负载均衡(公网),`lb_private`:负载均衡(内网),`tgw_set`:负载均衡(独占集群),`cmongo`:数据库MongoDB,`cdb`:数据库MySQL(CDB),`redis`:数据库Redis(CKV版),`redis_mem`:数据库Redis(内存版),`tendis`:Tendis,`xstor`:CTSDB(InfluxDB版),`mariadb`:数据库MariaDB,`postgres`:数据库PostgreSQL,`tdmysql`:TDSQL MySQL版,`cynosdb_mysql`:TDSQL-C MySQL,`sqlserver`:数据库SQL Server,`nat_gateway`:NAT网关,`ckafka`:CKafka,`rocketmq`:RocketMQ(新指标),`lb`:弹性公网IP,`vpngw`:VPN网关,`vpnx`:VPN通道,`vpc_net_detect`:网络探测,`cdn`:CDN,`ov_cdn`:CDN(海外),`cos`:COS,`dc`:专线接入-物理专线,`dcx`:专线接入-专用通道,`dcg`:专线接入-专线网关,`lighthouse`:轻量应用服务器,`nacos`:Nacos,`zookeeper`:Zookeeper,`ces`:Elasticsearch,`dts`:数据传输服务,`vbc`:云联网,`gaap`:全球应用加速,`waf`:Web应用防火墙,`cfs`:文件存储,`bwp`:共享带宽包,`scf_v2`:云函数(别名),`vod`:云点播(VOD),`cls`:日志服务(CLS)-日志主题,`apigateway`:API 网关,`ti_traintask`:TI-ONE(任务式建模),`ti_notebook`:TI-ONE(Notebook),`ti_model`:TI-ONE(在线服务),`self`:采集器自监控\n2.9. spec.scrapeSpec.relabelConfigs 用于添加 `metric_relabel_configs` 配置,选填。可参考[配置示例](https://cloud.tencent.com/document/product/248/87398#29fe272b-ac9e-4932-b6dc-972c2b1ef9dc)",
|
144
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateExporterIntegration\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-1\",\n \"Kind\": \"qcloud-exporter\",\n \"Content\": \"{\\\"name\\\":\\\"test-qcloud\\\",\\\"kind\\\":\\\"qcloud-exporter\\\",\\\"spec\\\":{\\\"instanceSpec\\\":{\\\"region\\\":\\\"广州\\\",\\\"delaySeconds\\\":0,\\\"reload_interval_minutes\\\":10,\\\"useRole\\\":true,\\\"labels\\\":{\\\"labelKey\\\":\\\"labelValue\\\",\\\"test\\\":\\\"test\\\"}},\\\"exporterSpec\\\":{\\\"cvm\\\":true,\\\"cbs\\\":true},\\\"scrapeSpec\\\":{\\\"relabelConfigs\\\":\\\"metric_relabel_configs:\\\\n- action: labeldrop\\\\n regex: tmp_test_label\\\\n\\\"}}}\"\n}",
|
145
145
|
"output": "{\n \"Response\": {\n \"Names\": [\n \"test-qcloud\"\n ],\n \"RequestId\": \"xyz\"\n }\n}",
|
146
146
|
"title": "a. 创建 云监控 集成"
|
147
147
|
},
|