tccli 3.0.1154.1__py2.py3-none-any.whl → 3.0.1156.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/autoscaling/v20180419/api.json +48 -20
- tccli/services/ccc/v20200210/api.json +11 -1
- tccli/services/ccc/v20200210/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +39 -2
- tccli/services/ckafka/ckafka_client.py +65 -12
- tccli/services/ckafka/v20190819/api.json +134 -0
- tccli/services/ckafka/v20190819/examples.json +8 -0
- tccli/services/cvm/cvm_client.py +110 -4
- tccli/services/cvm/v20170312/api.json +95 -0
- tccli/services/cvm/v20170312/examples.json +16 -0
- tccli/services/cynosdb/cynosdb_client.py +110 -4
- tccli/services/cynosdb/v20190107/api.json +192 -0
- tccli/services/cynosdb/v20190107/examples.json +16 -0
- tccli/services/es/v20180416/api.json +36 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +101 -10
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/essbasic/v20210526/api.json +16 -16
- tccli/services/essbasic/v20210526/examples.json +3 -3
- tccli/services/gaap/v20180529/api.json +17 -17
- tccli/services/gaap/v20180529/examples.json +7 -13
- tccli/services/hunyuan/v20230901/api.json +77 -2
- tccli/services/iss/v20230517/api.json +6 -6
- tccli/services/mna/mna_client.py +322 -4
- tccli/services/mna/v20210119/api.json +435 -0
- tccli/services/mna/v20210119/examples.json +48 -0
- tccli/services/mongodb/v20190725/api.json +6 -6
- tccli/services/monitor/v20180724/api.json +23 -23
- tccli/services/monitor/v20180724/examples.json +12 -12
- tccli/services/oceanus/v20190422/api.json +9 -0
- tccli/services/postgres/postgres_client.py +395 -24
- tccli/services/postgres/v20170312/api.json +549 -0
- tccli/services/postgres/v20170312/examples.json +92 -0
- tccli/services/rce/v20201103/api.json +78 -0
- tccli/services/tcr/v20190924/api.json +71 -45
- tccli/services/tcr/v20190924/examples.json +9 -9
- tccli/services/vpc/v20170312/api.json +10 -10
- tccli/services/waf/v20180125/api.json +421 -72
- tccli/services/waf/v20180125/examples.json +6 -6
- {tccli-3.0.1154.1.dist-info → tccli-3.0.1156.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1154.1.dist-info → tccli-3.0.1156.1.dist-info}/RECORD +45 -45
- {tccli-3.0.1154.1.dist-info → tccli-3.0.1156.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1154.1.dist-info → tccli-3.0.1156.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1154.1.dist-info → tccli-3.0.1156.1.dist-info}/license_files/LICENSE +0 -0
@@ -4326,7 +4326,7 @@
|
|
4326
4326
|
{
|
4327
4327
|
"disabled": false,
|
4328
4328
|
"document": "实例id",
|
4329
|
-
"example": "prom-
|
4329
|
+
"example": "prom-ksnrbv",
|
4330
4330
|
"member": "string",
|
4331
4331
|
"name": "InstanceId",
|
4332
4332
|
"required": true,
|
@@ -4350,7 +4350,7 @@
|
|
4350
4350
|
{
|
4351
4351
|
"disabled": false,
|
4352
4352
|
"document": "告警id",
|
4353
|
-
"example": "alert-
|
4353
|
+
"example": "alert-oshger",
|
4354
4354
|
"member": "string",
|
4355
4355
|
"name": "Id",
|
4356
4356
|
"output_required": true,
|
@@ -5381,7 +5381,7 @@
|
|
5381
5381
|
{
|
5382
5382
|
"disabled": false,
|
5383
5383
|
"document": "实例ID(可通过 DescribePrometheusInstances 接口获取)",
|
5384
|
-
"example": "prom-
|
5384
|
+
"example": "prom-jsbgr",
|
5385
5385
|
"member": "string",
|
5386
5386
|
"name": "InstanceId",
|
5387
5387
|
"required": true,
|
@@ -5390,7 +5390,7 @@
|
|
5390
5390
|
{
|
5391
5391
|
"disabled": false,
|
5392
5392
|
"document": "告警策略ID列表(可通过 DescribePrometheusAlertPolicy 接口获取)",
|
5393
|
-
"example": "[\"alert-
|
5393
|
+
"example": "[\"alert-oshbve\"]",
|
5394
5394
|
"member": "string",
|
5395
5395
|
"name": "AlertIds",
|
5396
5396
|
"required": true,
|
@@ -5399,7 +5399,7 @@
|
|
5399
5399
|
{
|
5400
5400
|
"disabled": false,
|
5401
5401
|
"document": "告警策略名称(可通过 DescribePrometheusAlertPolicy 接口获取),名称完全相同的告警策略才会删除",
|
5402
|
-
"example": "[\"
|
5402
|
+
"example": "[\"testName\"]",
|
5403
5403
|
"member": "string",
|
5404
5404
|
"name": "Names",
|
5405
5405
|
"required": false,
|
@@ -11365,8 +11365,8 @@
|
|
11365
11365
|
"members": [
|
11366
11366
|
{
|
11367
11367
|
"disabled": false,
|
11368
|
-
"document": "实例
|
11369
|
-
"example": "prom-
|
11368
|
+
"document": "实例ID",
|
11369
|
+
"example": "prom-253ac24d",
|
11370
11370
|
"member": "string",
|
11371
11371
|
"name": "InstanceId",
|
11372
11372
|
"required": true,
|
@@ -11374,8 +11374,8 @@
|
|
11374
11374
|
},
|
11375
11375
|
{
|
11376
11376
|
"disabled": false,
|
11377
|
-
"document": "
|
11378
|
-
"example": "
|
11377
|
+
"document": "分页偏移量,默认为0。 示例值:1",
|
11378
|
+
"example": "0",
|
11379
11379
|
"member": "uint64",
|
11380
11380
|
"name": "Offset",
|
11381
11381
|
"required": false,
|
@@ -11383,7 +11383,7 @@
|
|
11383
11383
|
},
|
11384
11384
|
{
|
11385
11385
|
"disabled": false,
|
11386
|
-
"document": "
|
11386
|
+
"document": "分页返回数量,默认为20,最大值为100",
|
11387
11387
|
"example": "100",
|
11388
11388
|
"member": "uint64",
|
11389
11389
|
"name": "Limit",
|
@@ -11392,8 +11392,8 @@
|
|
11392
11392
|
},
|
11393
11393
|
{
|
11394
11394
|
"disabled": false,
|
11395
|
-
"document": "
|
11396
|
-
"example": "
|
11395
|
+
"document": "仅支持按Name, Values字段过滤:\n- Name = Name \n 按照给定的告警规则名称列表匹配\n- Name = ID\n 按照给定的告警规则ID列表匹配",
|
11396
|
+
"example": "{Name: \"Name\", Values: [\"test-alert\"]}",
|
11397
11397
|
"member": "Filter",
|
11398
11398
|
"name": "Filters",
|
11399
11399
|
"required": false,
|
@@ -12296,7 +12296,7 @@
|
|
12296
12296
|
"members": [
|
12297
12297
|
{
|
12298
12298
|
"disabled": false,
|
12299
|
-
"document": "实例
|
12299
|
+
"document": "实例ID\n\n示例值:prom-343kafd34",
|
12300
12300
|
"example": "prom-xxx",
|
12301
12301
|
"member": "string",
|
12302
12302
|
"name": "InstanceId",
|
@@ -12305,7 +12305,7 @@
|
|
12305
12305
|
},
|
12306
12306
|
{
|
12307
12307
|
"disabled": false,
|
12308
|
-
"document": "
|
12308
|
+
"document": "偏移量,默认为0。 示例值:1",
|
12309
12309
|
"example": "无",
|
12310
12310
|
"member": "uint64",
|
12311
12311
|
"name": "Offset",
|
@@ -12314,7 +12314,7 @@
|
|
12314
12314
|
},
|
12315
12315
|
{
|
12316
12316
|
"disabled": false,
|
12317
|
-
"document": "
|
12317
|
+
"document": "返回数量,默认为20,最大值为100。\n示例值:1",
|
12318
12318
|
"example": "无",
|
12319
12319
|
"member": "uint64",
|
12320
12320
|
"name": "Limit",
|
@@ -12323,7 +12323,7 @@
|
|
12323
12323
|
},
|
12324
12324
|
{
|
12325
12325
|
"disabled": false,
|
12326
|
-
"document": "
|
12326
|
+
"document": "仅支持按Name, Values字段过滤:\n- Name = Name\n 按照给定的预聚合名称列表匹配",
|
12327
12327
|
"example": "无",
|
12328
12328
|
"member": "Filter",
|
12329
12329
|
"name": "Filters",
|
@@ -12581,7 +12581,7 @@
|
|
12581
12581
|
"members": [
|
12582
12582
|
{
|
12583
12583
|
"disabled": false,
|
12584
|
-
"document": "
|
12584
|
+
"document": "仅支持按Name, Values字段过滤:\n* Name = Name\n 按照给定的模板名称列表匹配\n* Name = ID\n 按照给定的模板ID列表匹配\n* Name = Describe\n 按照给定的模板描述列表匹配\n* Name = Level\n 按照给定的模板维度(instance, cluster)列表匹配",
|
12585
12585
|
"example": " [{\"Name\": \"Name\",\"Values\": [\"test\"]}]",
|
12586
12586
|
"member": "Filter",
|
12587
12587
|
"name": "Filters",
|
@@ -12599,7 +12599,7 @@
|
|
12599
12599
|
},
|
12600
12600
|
{
|
12601
12601
|
"disabled": false,
|
12602
|
-
"document": "
|
12602
|
+
"document": "分页返回数量,默认为20,最大值为100",
|
12603
12603
|
"example": "10",
|
12604
12604
|
"member": "uint64",
|
12605
12605
|
"name": "Limit",
|
@@ -12793,7 +12793,7 @@
|
|
12793
12793
|
"example": "1",
|
12794
12794
|
"member": "int64",
|
12795
12795
|
"name": "TotalCount",
|
12796
|
-
"
|
12796
|
+
"output_required": true,
|
12797
12797
|
"type": "int",
|
12798
12798
|
"value_allowed_null": false
|
12799
12799
|
},
|
@@ -12803,7 +12803,7 @@
|
|
12803
12803
|
"example": "无",
|
12804
12804
|
"member": "RecordingRuleSet",
|
12805
12805
|
"name": "RecordingRuleSet",
|
12806
|
-
"
|
12806
|
+
"output_required": true,
|
12807
12807
|
"type": "list",
|
12808
12808
|
"value_allowed_null": true
|
12809
12809
|
},
|
@@ -15745,8 +15745,8 @@
|
|
15745
15745
|
"members": [
|
15746
15746
|
{
|
15747
15747
|
"disabled": false,
|
15748
|
-
"document": "实例
|
15749
|
-
"example": "
|
15748
|
+
"document": "Prometheus 实例 ID",
|
15749
|
+
"example": "prom-23x33df",
|
15750
15750
|
"member": "string",
|
15751
15751
|
"name": "InstanceId",
|
15752
15752
|
"required": true,
|
@@ -15754,7 +15754,7 @@
|
|
15754
15754
|
},
|
15755
15755
|
{
|
15756
15756
|
"disabled": false,
|
15757
|
-
"document": "
|
15757
|
+
"document": "告警配置,[具体参考](https://cloud.tencent.com/document/api/248/30354#PrometheusAlertPolicyItem)",
|
15758
15758
|
"example": "无",
|
15759
15759
|
"member": "PrometheusAlertPolicyItem",
|
15760
15760
|
"name": "AlertRule",
|
@@ -243,13 +243,13 @@
|
|
243
243
|
"CreatePrometheusAlertPolicy": [
|
244
244
|
{
|
245
245
|
"document": "新增告警",
|
246
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
247
|
-
"output": "{\n \"Response\": {\n \"Id\": \"
|
246
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-kshrsdf\",\n \"AlertRule\": {\n \"Id\": \"alert-odhjeg\",\n \"Name\": \"资源告警\",\n \"TemplateId\": \"temp-cjhger\",\n \"Notification\": {\n \"Enabled\": true,\n \"Type\": \"amp\",\n \"WebHook\": \"\",\n \"AlertManager\": {\n \"ClusterType\": \"eks\",\n \"ClusterId\": \"cls-ojeg\",\n \"Url\": \"http://10.0.0.1:9000\"\n },\n \"RepeatInterval\": \"5m\",\n \"TimeRangeStart\": \"00:00:00\",\n \"TimeRangeEnd\": \"23:59:59\",\n \"NotifyWay\": [\n \"wechat\"\n ],\n \"ReceiverGroups\": [\n \"skjehrsheb\"\n ],\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"PhoneArriveNotice\": true\n },\n \"Rules\": [\n {\n \"Annotations\": [\n {\n \"Name\": \"summary\",\n \"Value\": \"磁盘使用率过高\"\n }\n ],\n \"Describe\": \"\",\n \"For\": \"2m\",\n \"Labels\": [\n {\n \"Name\": \"severity\",\n \"Value\": \"warning\"\n }\n ],\n \"Name\": \"磁盘使用率过高\",\n \"Rule\": \"1- node_filesystem_avail_bytes / node_filesystem_size_bytes > 0.85\",\n \"RuleState\": 0,\n \"Template\": \"磁盘使用率过高,实例: {{$labels.instance}},ID: {{$labels.instance_id}},当前值: {{ $value | humanizePercentage }}。\"\n }\n ],\n \"UpdatedAt\": \"2024-07-15T16:46:42+08:00\",\n \"ClusterId\": \"cls-iehgr\"\n }\n}",
|
247
|
+
"output": "{\n \"Response\": {\n \"Id\": \"alert-ojnfb\",\n \"RequestId\": \"ac-khgr-iohvr\"\n }\n}",
|
248
248
|
"title": "新增告警"
|
249
249
|
},
|
250
250
|
{
|
251
251
|
"document": "添加告警策略,告警渠道为Alertmanager",
|
252
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
252
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-kshrsdf\",\n \"AlertRule\": {\n \"Id\": \"alert-odhjeg\",\n \"Name\": \"资源告警\",\n \"TemplateId\": \"temp-cjhger\",\n \"Notification\": {\n \"AlertManager\": {\n \"ClusterId\": \"cls-ksjbr\",\n \"ClusterType\": \"eks\",\n \"Url\": \"http://10.0.0.1:9000/api/v1/alerts\"\n },\n \"Enabled\": true,\n \"NotifyWay\": null,\n \"PhoneArriveNotice\": false,\n \"PhoneCircleInterval\": 0,\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneNotifyOrder\": null,\n \"ReceiverGroups\": null,\n \"RepeatInterval\": \"5m\",\n \"TimeRangeEnd\": \"23:59:59\",\n \"TimeRangeStart\": \"00:00:00\",\n \"Type\": \"alertmanager\",\n \"WebHook\": \"\"\n },\n \"Rules\": [\n {\n \"Annotations\": [\n {\n \"Name\": \"summary\",\n \"Value\": \"MySQL High CPU Usage\"\n }\n ],\n \"Describe\": \"\",\n \"For\": \"5m\",\n \"Labels\": [\n {\n \"Name\": \"severity\",\n \"Value\": \"warning\"\n }\n ],\n \"Name\": \"MySQL High CPU Usage\",\n \"Rule\": \"avg by (instance_id,cluster_id,instance_region) (qce_cynosdb_mysql_cpuuserate_max) > 85\",\n \"RuleState\": 0,\n \"Template\": \"MySQL cpu usage is higher than 85%. Instance ID: {{ $labels.instance_id }}, cluster ID: {{ $labels.cluster_id }}, region: {{ $labels.instance_region }}\"\n }\n ],\n \"ClusterId\": \"cls-iehgr\"\n }\n}",
|
253
253
|
"output": "{\n \"Response\": {\n \"Id\": \"alert-xxx\",\n \"RequestId\": \"3dfe620f-11b8-4301-b279-1fdadedf7a59\"\n }\n}",
|
254
254
|
"title": "添加告警策略,告警渠道为Alertmanager"
|
255
255
|
}
|
@@ -415,7 +415,7 @@
|
|
415
415
|
"DeletePrometheusAlertPolicy": [
|
416
416
|
{
|
417
417
|
"document": "删除Prometheus告警规则",
|
418
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
418
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-kjshgr\",\n \"AlertIds\": [\n \"alert-jsbgvr\"\n ],\n \"Names\": [\n \"test\"\n ]\n}",
|
419
419
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
420
420
|
"title": "删除Prometheus告警规则"
|
421
421
|
}
|
@@ -830,10 +830,10 @@
|
|
830
830
|
],
|
831
831
|
"DescribePrometheusAlertPolicy": [
|
832
832
|
{
|
833
|
-
"document": "
|
834
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
835
|
-
"output": "{\n \"Response\": {\n \"AlertRules\": [\n {\n \"Id\": \"
|
836
|
-
"title": "
|
833
|
+
"document": "查询实例告警列表",
|
834
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-as3d2s1a\",\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Name\": \"Name\",\n \"Values\": [\n \"alert-test\"\n ]\n }\n ],\n \"Offset\": 0\n}",
|
835
|
+
"output": "{\n \"Response\": {\n \"AlertRules\": [\n {\n \"Id\": \"alert-23a6d2ga\",\n \"Name\": \"alert-test\",\n \"TemplateId\": \"temp-as12sf12\",\n \"ClusterId\": \"\",\n \"Notification\": {\n \"Enabled\": true,\n \"Type\": \"amp\",\n \"RepeatInterval\": \"5m\",\n \"TimeRangeStart\": \"0:00:00\",\n \"TimeRangeEnd\": \"23:59:59\",\n \"ReceiverGroups\": [\n \"notice-13hs61s2\"\n ],\n \"WebHook\": \"http://127.0.0.1:9090/alert\",\n \"AlertManager\": {\n \"ClusterType\": \"tke\",\n \"ClusterId\": \"cls-a2df21xa\",\n \"Url\": \"http://127.0.0.1:9090\"\n },\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"PhoneArriveNotice\": true,\n \"NotifyWay\": [\n \"abc\"\n ]\n },\n \"Rules\": [\n {\n \"Name\": \"rule-1\",\n \"Rule\": \"up{} != 1\",\n \"Labels\": [\n {\n \"Name\": \"level\",\n \"Value\": \"warnning\"\n }\n ],\n \"Template\": \"test alert\",\n \"For\": \"5m\",\n \"Describe\": \"test alert\",\n \"Annotations\": [\n {\n \"Name\": \"creator\",\n \"Value\": \"programer\"\n }\n ],\n \"RuleState\": 1\n }\n ],\n \"UpdatedAt\": \"2024-07-21 18:10:14\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"3f04883c-eda1-4498-b024-d266baec6040\"\n }\n}",
|
836
|
+
"title": "查询实例告警列表"
|
837
837
|
}
|
838
838
|
],
|
839
839
|
"DescribePrometheusClusterAgents": [
|
@@ -925,7 +925,7 @@
|
|
925
925
|
"DescribePrometheusRecordRules": [
|
926
926
|
{
|
927
927
|
"document": "拉取聚合规则",
|
928
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusRecordRules\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
928
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusRecordRules\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-22kxd343\"\n}",
|
929
929
|
"output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Content\": \"xdx\",\n \"UpdateTime\": \"xdx\",\n \"ClusterId\": \"xdx\",\n \"Name\": \"xdx\",\n \"TemplateId\": \"xdx\",\n \"Id\": \"de\",\n \"Status\": 1,\n \"Count\": 1\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"xxx\"\n }\n}",
|
930
930
|
"title": "拉取聚合规则"
|
931
931
|
}
|
@@ -981,8 +981,8 @@
|
|
981
981
|
"DescribeRecordingRules": [
|
982
982
|
{
|
983
983
|
"document": "",
|
984
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRecordingRules\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-sdf342\",\n \"RuleState\":
|
985
|
-
"output": "{\n \"Response\": {\n \"RecordingRuleSet\": [\n {\n \"RuleId\": \"rrule-45hkgiyc\",\n \"RuleState\": 2,\n \"Name\": \"example6\",\n \"Group\": \"LS0tDQpuYW1lOiBleGFtcGxlDQpydWxlczoNCiAgLSByZWNvcmQ6IGpvYjpodHRwX2lucHJvZ3Jlc3NfcmVxdWVzdHM6c3VtDQogICAgZXhwcjogc3VtIGJ5IChqb2IpIChodHRwX2lucHJvZ3Jlc3NfcmVxdWVzdHMp\",\n \"Total\": 1,\n \"UpdatedAt\": \"2020-08-10T17:50:06Z\",\n \"CreatedAt\": \"2020-08-10T09:32:51Z\"\n }\n ],\n \"RequestId\": \"-1y24pm54antkuiziyii7hxwv2974riq\",\n \"TotalCount\": 1\n }\n}",
|
984
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRecordingRules\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-sdf342\",\n \"RuleState\": 1,\n \"Limit\": 10\n}",
|
985
|
+
"output": "{\n \"Response\": {\n \"RecordingRuleSet\": [\n {\n \"RuleId\": \"rrule-45hkgiyc\",\n \"RuleState\": 2,\n \"Name\": \"example6\",\n \"RuleName\": \"example6\",\n \"Group\": \"LS0tDQpuYW1lOiBleGFtcGxlDQpydWxlczoNCiAgLSByZWNvcmQ6IGpvYjpodHRwX2lucHJvZ3Jlc3NfcmVxdWVzdHM6c3VtDQogICAgZXhwcjogc3VtIGJ5IChqb2IpIChodHRwX2lucHJvZ3Jlc3NfcmVxdWVzdHMp\",\n \"Total\": 1,\n \"UpdatedAt\": \"2020-08-10T17:50:06Z\",\n \"CreatedAt\": \"2020-08-10T09:32:51Z\"\n }\n ],\n \"RequestId\": \"-1y24pm54antkuiziyii7hxwv2974riq\",\n \"TotalCount\": 1\n }\n}",
|
986
986
|
"title": "查询预聚合规则"
|
987
987
|
}
|
988
988
|
],
|
@@ -1167,7 +1167,7 @@
|
|
1167
1167
|
"ModifyPrometheusAlertPolicy": [
|
1168
1168
|
{
|
1169
1169
|
"document": "修改告警",
|
1170
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"
|
1170
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-jsgref\",\n \"AlertRule\": {\n \"Id\": \"alert-odhjeg\",\n \"Name\": \"资源告警\",\n \"TemplateId\": \"temp-cjhger\",\n \"Notification\": {\n \"Enabled\": true,\n \"Type\": \"amp\",\n \"WebHook\": \"\",\n \"AlertManager\": {\n \"ClusterType\": \"eks\",\n \"ClusterId\": \"cls-ojeg\",\n \"Url\": \"http://10.0.0.1:9000\"\n },\n \"RepeatInterval\": \"5m\",\n \"TimeRangeStart\": \"00:00:00\",\n \"TimeRangeEnd\": \"23:59:59\",\n \"NotifyWay\": [\n \"wechat\"\n ],\n \"ReceiverGroups\": [\n \"skjehrsheb\"\n ],\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"PhoneArriveNotice\": true\n },\n \"Rules\": [\n {\n \"Annotations\": [\n {\n \"Name\": \"summary\",\n \"Value\": \"磁盘使用率过高\"\n }\n ],\n \"Describe\": \"\",\n \"For\": \"2m\",\n \"Labels\": [\n {\n \"Name\": \"severity\",\n \"Value\": \"warning\"\n }\n ],\n \"Name\": \"磁盘使用率过高\",\n \"Rule\": \"1- node_filesystem_avail_bytes / node_filesystem_size_bytes > 0.85\",\n \"RuleState\": 0,\n \"Template\": \"磁盘使用率过高,实例: {{$labels.instance}},ID: {{$labels.instance_id}},当前值: {{ $value | humanizePercentage }}。\"\n }\n ],\n \"UpdatedAt\": \"2024-07-15T16:46:42+08:00\",\n \"ClusterId\": \"cls-iehgr\"\n }\n}",
|
1171
1171
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
1172
1172
|
"title": "修改告警"
|
1173
1173
|
}
|
@@ -6504,6 +6504,15 @@
|
|
6504
6504
|
"name": "CustomTimestamp",
|
6505
6505
|
"required": false,
|
6506
6506
|
"type": "int"
|
6507
|
+
},
|
6508
|
+
{
|
6509
|
+
"disabled": false,
|
6510
|
+
"document": "timestamp; latest-offset; earliest-offset; 任选一种",
|
6511
|
+
"example": "earliest-offset",
|
6512
|
+
"member": "string",
|
6513
|
+
"name": "KafkaScanMode",
|
6514
|
+
"required": false,
|
6515
|
+
"type": "string"
|
6507
6516
|
}
|
6508
6517
|
],
|
6509
6518
|
"usage": "in"
|