tccli 3.0.1155.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 +10 -0
- tccli/services/ccc/v20200210/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +38 -1
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +91 -0
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/gaap/v20180529/api.json +17 -17
- tccli/services/gaap/v20180529/examples.json +7 -13
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/iss/v20230517/api.json +6 -6
- 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/waf/v20180125/api.json +421 -72
- tccli/services/waf/v20180125/examples.json +6 -6
- {tccli-3.0.1155.1.dist-info → tccli-3.0.1156.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1155.1.dist-info → tccli-3.0.1156.1.dist-info}/RECORD +29 -29
- {tccli-3.0.1155.1.dist-info → tccli-3.0.1156.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1155.1.dist-info → tccli-3.0.1156.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1155.1.dist-info → tccli-3.0.1156.1.dist-info}/license_files/LICENSE +0 -0
@@ -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"
|