tccli 3.0.1207.1__py2.py3-none-any.whl → 3.0.1208.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/advisor/v20200721/api.json +1 -1
- tccli/services/cls/v20201016/api.json +50 -0
- tccli/services/cls/v20201016/examples.json +7 -7
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +273 -0
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/emr/v20190103/api.json +1 -1
- tccli/services/ess/v20201111/api.json +11 -11
- tccli/services/ess/v20201111/examples.json +2 -2
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/ioa/v20220601/api.json +18 -1
- tccli/services/tke/tke_client.py +4 -57
- tccli/services/tke/v20180525/api.json +0 -72
- tccli/services/tke/v20180525/examples.json +0 -8
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/vod/v20180717/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +23 -14
- tccli/services/vpc/v20170312/examples.json +1 -1
- {tccli-3.0.1207.1.dist-info → tccli-3.0.1208.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1207.1.dist-info → tccli-3.0.1208.1.dist-info}/RECORD +24 -24
- {tccli-3.0.1207.1.dist-info → tccli-3.0.1208.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1207.1.dist-info → tccli-3.0.1208.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1207.1.dist-info → tccli-3.0.1208.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1208.1'
|
@@ -751,6 +751,45 @@
|
|
751
751
|
],
|
752
752
|
"type": "object"
|
753
753
|
},
|
754
|
+
"AdvanceFilterRuleInfo": {
|
755
|
+
"document": "高级过滤规则",
|
756
|
+
"members": [
|
757
|
+
{
|
758
|
+
"disabled": false,
|
759
|
+
"document": "过滤字段\n注意:此字段可能返回 null,表示取不到有效值。",
|
760
|
+
"example": "无",
|
761
|
+
"member": "string",
|
762
|
+
"name": "Key",
|
763
|
+
"output_required": false,
|
764
|
+
"required": true,
|
765
|
+
"type": "string",
|
766
|
+
"value_allowed_null": true
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"disabled": false,
|
770
|
+
"document": "过滤规则,0:等于,1:字段存在,2:字段不存在\n注意:此字段可能返回 null,表示取不到有效值。",
|
771
|
+
"example": "无",
|
772
|
+
"member": "uint64",
|
773
|
+
"name": "Rule",
|
774
|
+
"output_required": false,
|
775
|
+
"required": true,
|
776
|
+
"type": "int",
|
777
|
+
"value_allowed_null": true
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"disabled": false,
|
781
|
+
"document": "过滤值\n注意:此字段可能返回 null,表示取不到有效值。",
|
782
|
+
"example": "无",
|
783
|
+
"member": "string",
|
784
|
+
"name": "Value",
|
785
|
+
"output_required": false,
|
786
|
+
"required": false,
|
787
|
+
"type": "string",
|
788
|
+
"value_allowed_null": true
|
789
|
+
}
|
790
|
+
],
|
791
|
+
"usage": "both"
|
792
|
+
},
|
754
793
|
"AlarmAnalysisConfig": {
|
755
794
|
"document": "告警多维分析一些配置信息",
|
756
795
|
"members": [
|
@@ -8672,6 +8711,17 @@
|
|
8672
8711
|
"required": false,
|
8673
8712
|
"type": "list",
|
8674
8713
|
"value_allowed_null": false
|
8714
|
+
},
|
8715
|
+
{
|
8716
|
+
"disabled": false,
|
8717
|
+
"document": "日志过滤规则列表(新版)。\n注意:\n- 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。\n- 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。\n注意:此字段可能返回 null,表示取不到有效值。",
|
8718
|
+
"example": "无",
|
8719
|
+
"member": "AdvanceFilterRuleInfo",
|
8720
|
+
"name": "AdvanceFilterRules",
|
8721
|
+
"output_required": false,
|
8722
|
+
"required": false,
|
8723
|
+
"type": "list",
|
8724
|
+
"value_allowed_null": true
|
8675
8725
|
}
|
8676
8726
|
],
|
8677
8727
|
"usage": "both"
|
@@ -67,25 +67,25 @@
|
|
67
67
|
"CreateConfig": [
|
68
68
|
{
|
69
69
|
"document": "FilterKeyRegex:Loglistener日志过滤规则列表(旧版),需要过滤日志的key,及其对应的regex。\n 注意:2.9.3及以上版本LogListener ,建议使用AdvanceFilterRules配置日志过滤规则。\n",
|
70
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"test2.8.8\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [],\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Regex\": \"400|500\"\n }\n ],\n \"Backtracking\": 0,\n \"MetadataType\": 0,\n \"MetaTags\": [\n {\n \"Key\": \"\",\n \"Value\": \"\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":0}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
70
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"test2.8.8\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [],\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Regex\": \"400|500\"\n }\n ],\n \"Backtracking\": 0,\n \"MetadataType\": 0,\n \"MetaTags\": [\n {\n \"Key\": \"\",\n \"Value\": \"\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": []\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":0}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
71
71
|
"output": "{\n \"Response\": {\n \"ConfigId\": \"a2c6342c-270a-4468-86cf-92625e468888\",\n \"RequestId\": \"a21b16c1-4da9-45a1-a612-59e5757384f3\"\n }\n}",
|
72
72
|
"title": "创建单行全文"
|
73
73
|
},
|
74
74
|
{
|
75
75
|
"document": "创建组合解析配置",
|
76
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"my-test\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [],\n \"LogType\": \"user_define_log\",\n \"UserDefineRule\": \"{\\\"processors\\\":[{\\\"type\\\":\\\"processor_split_delimiter\\\",\\\"detail\\\":{\\\"Delimiter\\\":\\\",\\\",\\\"ExtractKeys\\\":[\\\"time\\\",\\\"msg1\\\",\\\"msg2\\\"]},\\\"processors\\\":[{\\\"type\\\":\\\"processor_timeformat\\\",\\\"detail\\\":{\\\"KeepSource\\\":true,\\\"TimeFormat\\\":\\\"%s\\\",\\\"SourceKey\\\":\\\"time\\\"}},{\\\"type\\\":\\\"processor_split_delimiter\\\",\\\"detail\\\":{\\\"KeepSource\\\":false,\\\"Delimiter\\\":\\\"|\\\",\\\"SourceKey\\\":\\\"msg1\\\",\\\"ExtractKeys\\\":[\\\"submsg1\\\",\\\"submsg2\\\",\\\"submsg3\\\"]},\\\"processors\\\":[]},{\\\"type\\\":\\\"processor_split_key_value\\\",\\\"detail\\\":{\\\"KeepSource\\\":false,\\\"Delimiter\\\":\\\":\\\",\\\"SourceKey\\\":\\\"msg2\\\"}}]}]}\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [],\n \"UnMatchUpLoadSwitch\": true,\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
76
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"my-test\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [],\n \"LogType\": \"user_define_log\",\n \"UserDefineRule\": \"{\\\"processors\\\":[{\\\"type\\\":\\\"processor_split_delimiter\\\",\\\"detail\\\":{\\\"Delimiter\\\":\\\",\\\",\\\"ExtractKeys\\\":[\\\"time\\\",\\\"msg1\\\",\\\"msg2\\\"]},\\\"processors\\\":[{\\\"type\\\":\\\"processor_timeformat\\\",\\\"detail\\\":{\\\"KeepSource\\\":true,\\\"TimeFormat\\\":\\\"%s\\\",\\\"SourceKey\\\":\\\"time\\\"}},{\\\"type\\\":\\\"processor_split_delimiter\\\",\\\"detail\\\":{\\\"KeepSource\\\":false,\\\"Delimiter\\\":\\\"|\\\",\\\"SourceKey\\\":\\\"msg1\\\",\\\"ExtractKeys\\\":[\\\"submsg1\\\",\\\"submsg2\\\",\\\"submsg3\\\"]},\\\"processors\\\":[]},{\\\"type\\\":\\\"processor_split_key_value\\\",\\\"detail\\\":{\\\"KeepSource\\\":false,\\\"Delimiter\\\":\\\":\\\",\\\"SourceKey\\\":\\\"msg2\\\"}}]}]}\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [],\n \"UnMatchUpLoadSwitch\": true,\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": []\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
77
77
|
"output": "{\n \"Response\": {\n \"ConfigId\": \"d72dae22-084c-4d20-a81b-f42e25c88888\",\n \"RequestId\": \"c708e9af-231e-4a94-a888-3ab24e5fbd97\"\n }\n}",
|
78
78
|
"title": "创建组合解析配置"
|
79
79
|
},
|
80
80
|
{
|
81
81
|
"document": "创建采集规则配置",
|
82
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"my-test-minimalist_log\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"File\",\n \"Value\": \"/data/log/mryx/my.log\"\n }\n ],\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [],\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n },\n {\n \"Key\": \"wd\",\n \"Value\": \"shop\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentMaxDepth\\\":10}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
82
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"my-test-minimalist_log\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"File\",\n \"Value\": \"/data/log/mryx/my.log\"\n }\n ],\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [],\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n },\n {\n \"Key\": \"wd\",\n \"Value\": \"shop\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Rule\": 0,\n \"Value\": \"400|500\"\n }\n ]\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentMaxDepth\\\":10}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
83
83
|
"output": "{\n \"Response\": {\n \"ConfigId\": \"b5a78efe-984c-47e2-99a8-52dbd1388888\",\n \"RequestId\": \"037a6def-51d4-449b-a894-7cd2410bfae1\"\n }\n}",
|
84
84
|
"title": "创建采集规则配置"
|
85
85
|
},
|
86
86
|
{
|
87
87
|
"document": "",
|
88
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"单行完全正则-文件日志\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"File\",\n \"Value\": \"/data/log/my.log\"\n }\n ],\n \"LogType\": \"fullregex_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"BeginRegex\": \"\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\"[^\\\"]+([^,]+),\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\*\\\\*/\\\\w+\\\\.\\\\w+\\\",\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\w+\\\\.\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\\w+\\\\.\\\\d+\\\\.\\\\d+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\d+\\\\|\\\\d+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\[\\\\]\\\\},\\\"\\\\w+\\\":\\\"\\\\{\\\\\\\\\\\"\\\\w+\\\\\\\\\\\":\\\\d+\\\\}\\\",\\\"\\\\w+\\\"[^\\\"]+([^\\\\}]+).*\",\n \"LogRegex\": \"\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\"[^\\\"]+([^,]+),\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\*\\\\*/\\\\w+\\\\.\\\\w+\\\",\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\w+\\\\.\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\\w+\\\\.\\\\d+\\\\.\\\\d+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\d+\\\\|\\\\d+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\[\\\\]\\\\},\\\"\\\\w+\\\":\\\"\\\\{\\\\\\\\\\\"\\\\w+\\\\\\\\\\\":\\\\d+\\\\}\\\",\\\"\\\\w+\\\"[^\\\"]+([^\\\\}]+).*\",\n \"Keys\": [\n \"Version\",\n \"ConfigId\"\n ],\n \"TimeKey\": \"log_time\",\n \"TimeFormat\": \"%Y-%m-%d %H:%M:%S.%f\",\n \"FilterKeyRegex\": [\n {\n \"Key\": \"key1\",\n \"Regex\": \"value1\"\n },\n {\n \"Key\": \"key2\",\n \"Regex\": \"velue2\"\n }\n ],\n \"UnMatchUpLoadSwitch\": true,\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"Backtracking\": 10,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentMaxDepth\\\":10,\\\"ClsAgentFileTimeout\\\":3600}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
88
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConfig\n<公共请求参数>\n\n{\n \"Name\": \"单行完全正则-文件日志\",\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"File\",\n \"Value\": \"/data/log/my.log\"\n }\n ],\n \"LogType\": \"fullregex_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"BeginRegex\": \"\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\"[^\\\"]+([^,]+),\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\*\\\\*/\\\\w+\\\\.\\\\w+\\\",\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\w+\\\\.\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\\w+\\\\.\\\\d+\\\\.\\\\d+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\d+\\\\|\\\\d+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\[\\\\]\\\\},\\\"\\\\w+\\\":\\\"\\\\{\\\\\\\\\\\"\\\\w+\\\\\\\\\\\":\\\\d+\\\\}\\\",\\\"\\\\w+\\\"[^\\\"]+([^\\\\}]+).*\",\n \"LogRegex\": \"\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\"[^\\\"]+([^,]+),\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\*\\\\*/\\\\w+\\\\.\\\\w+\\\",\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"/\\\\w+/\\\\w+/\\\\w+\\\\.\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\\w+\\\\.\\\\d+\\\\.\\\\d+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\{\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\d+\\\\|\\\\d+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\d+,\\\"\\\\w+\\\":\\\\[\\\\{\\\"\\\\w+\\\":\\\"\\\\w+\\\",\\\"\\\\w+\\\":\\\"\\\\w+\\\"\\\\}\\\\],\\\"\\\\w+\\\":\\\"\\\",\\\"\\\\w+\\\":\\\\[\\\\]\\\\},\\\"\\\\w+\\\":\\\"\\\\{\\\\\\\\\\\"\\\\w+\\\\\\\\\\\":\\\\d+\\\\}\\\",\\\"\\\\w+\\\"[^\\\"]+([^\\\\}]+).*\",\n \"Keys\": [\n \"Version\",\n \"ConfigId\"\n ],\n \"TimeKey\": \"log_time\",\n \"TimeFormat\": \"%Y-%m-%d %H:%M:%S.%f\",\n \"FilterKeyRegex\": [\n {\n \"Key\": \"key1\",\n \"Regex\": \"value1\"\n },\n {\n \"Key\": \"key2\",\n \"Regex\": \"velue2\"\n }\n ],\n \"UnMatchUpLoadSwitch\": true,\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"Backtracking\": 10,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": []\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentMaxDepth\\\":10,\\\"ClsAgentFileTimeout\\\":3600}\",\n \"Output\": \"6bf3355c-3c88-4566-89c8-76c3ca37bae9\"\n}",
|
89
89
|
"output": "{\n \"Response\": {\n \"ConfigId\": \"8e63fe9a-5f36-49b0-bdbf-ab1c29e58888\",\n \"RequestId\": \"420f4f07-2134-4167-9442-9ac6c6ffe3d8\"\n }\n}",
|
90
90
|
"title": "创建单行完全正则-文件日志"
|
91
91
|
}
|
@@ -398,7 +398,7 @@
|
|
398
398
|
{
|
399
399
|
"document": "获取特殊采集配置",
|
400
400
|
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeConfigExtras\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"configExtraId\",\n \"Values\": [\n \"xxxx-xxx-xxxx\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
401
|
-
"output": "{\n \"Response\": {\n \"Configs\": [\n {\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"CollectInfos\": [\n {\n \"CollectConfigs\": [\n {\n \"Name\": \"container_name\"\n },\n {\n \"Name\": \"namespace\"\n },\n {\n \"Name\": \"pod_name\"\n },\n {\n \"Name\": \"pod_ip\"\n }\n ],\n \"Type\": 0\n },\n {\n \"CollectConfigs\": [],\n \"Type\": 1\n }\n ],\n \"ConfigExtraId\": \"26ea1681-dfef-4429-a84f-3450d5d46796\",\n \"ConfigFlag\": \"label_k8s\",\n \"ContainerFile\": {\n \"Container\": \"\",\n \"CustomLabels\": null,\n \"ExcludeLabels\": null,\n \"ExcludeNamespace\": \"\",\n \"FilePaths\": [],\n \"FilePattern\": \"\",\n \"IncludeLabels\": null,\n \"LogPath\": \"\",\n \"Namespace\": \"\",\n \"WorkLoad\": {\n \"Container\": \"\",\n \"Kind\": \"\",\n \"Name\": \"\",\n \"Namespace\": \"\"\n }\n },\n \"ContainerStdout\": {\n \"AllContainers\": true,\n \"Container\": \"\",\n \"CustomLabels\": null,\n \"ExcludeLabels\": null,\n \"ExcludeNamespace\": \"\",\n \"IncludeLabels\": null,\n \"Namespace\": \"*\",\n \"WorkLoads\": null\n },\n \"CreateTime\": \"2023-12-04 14:32:35\",\n \"ExcludePaths\": null,\n \"ExtractRule\": {\n \"Address\": \"\",\n \"Backtracking\": 0,\n \"BeginRegex\": \"\",\n \"Delimiter\": \"\",\n \"EventLogRules\": [],\n \"FilterKeyRegex\": [],\n \"IsGBK\": 0,\n \"JsonStandard\": 0,\n \"Keys\": [\n \"__CONTENT__\"\n ],\n \"LogRegex\": \"\",\n \"MetaTags\": [],\n \"MetadataType\": 0,\n \"ParseProtocol\": \"\",\n \"PathRegex\": \"\",\n \"Protocol\": \"\",\n \"TimeFormat\": \"\",\n \"TimeKey\": \"\",\n \"UnMatchLogKey\": null,\n \"UnMatchUpLoadSwitch\": false\n },\n \"GroupId\": \"886bf7a8-7340-4314-8d64-b360da0ffd78\",\n \"HostFile\": {\n \"CustomLabels\": null,\n \"FilePattern\": \"\",\n \"LogPath\": \"\"\n },\n \"LogFormat\": \"\",\n \"LogType\": \"minimalist_log\",\n \"LogsetId\": \"40907915-faa6-46e0-985f-b2fa8c17a080\",\n \"LogsetName\": \"logset-test\",\n \"Name\": \"config-test-886bf7a8-7340-4314-8d64-b360da0ffd78\",\n \"TopicId\": \"b2dcf2e5-9582-4c87-9286-cccccb53889d\",\n \"TopicName\": \"topic-test\",\n \"Type\": \"container_stdout\",\n \"UpdateTime\": \"2023-12-04 14:32:34\",\n \"UserDefineRule\": \"\"\n }\n ],\n \"RequestId\": \"4e48c681-ebf8-4df1-bf0a-51f689117ac6\",\n \"TotalCount\": 1\n }\n}",
|
401
|
+
"output": "{\n \"Response\": {\n \"Configs\": [\n {\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"CollectInfos\": [\n {\n \"CollectConfigs\": [\n {\n \"Name\": \"container_name\"\n },\n {\n \"Name\": \"namespace\"\n },\n {\n \"Name\": \"pod_name\"\n },\n {\n \"Name\": \"pod_ip\"\n }\n ],\n \"Type\": 0\n },\n {\n \"CollectConfigs\": [],\n \"Type\": 1\n }\n ],\n \"ConfigExtraId\": \"26ea1681-dfef-4429-a84f-3450d5d46796\",\n \"ConfigFlag\": \"label_k8s\",\n \"ContainerFile\": {\n \"Container\": \"\",\n \"CustomLabels\": null,\n \"ExcludeLabels\": null,\n \"ExcludeNamespace\": \"\",\n \"FilePaths\": [],\n \"FilePattern\": \"\",\n \"IncludeLabels\": null,\n \"LogPath\": \"\",\n \"Namespace\": \"\",\n \"WorkLoad\": {\n \"Container\": \"\",\n \"Kind\": \"\",\n \"Name\": \"\",\n \"Namespace\": \"\"\n }\n },\n \"ContainerStdout\": {\n \"AllContainers\": true,\n \"Container\": \"\",\n \"CustomLabels\": null,\n \"ExcludeLabels\": null,\n \"ExcludeNamespace\": \"\",\n \"IncludeLabels\": null,\n \"Namespace\": \"*\",\n \"WorkLoads\": null\n },\n \"CreateTime\": \"2023-12-04 14:32:35\",\n \"ExcludePaths\": null,\n \"ExtractRule\": {\n \"Address\": \"\",\n \"AdvanceFilterRules\": null,\n \"Backtracking\": 0,\n \"BeginRegex\": \"\",\n \"Delimiter\": \"\",\n \"EventLogRules\": [],\n \"FilterKeyRegex\": [],\n \"IsGBK\": 0,\n \"JsonStandard\": 0,\n \"Keys\": [\n \"__CONTENT__\"\n ],\n \"LogRegex\": \"\",\n \"MetaTags\": [],\n \"MetadataType\": 0,\n \"ParseProtocol\": \"\",\n \"PathRegex\": \"\",\n \"Protocol\": \"\",\n \"TimeFormat\": \"\",\n \"TimeKey\": \"\",\n \"UnMatchLogKey\": null,\n \"UnMatchUpLoadSwitch\": false\n },\n \"GroupId\": \"886bf7a8-7340-4314-8d64-b360da0ffd78\",\n \"HostFile\": {\n \"CustomLabels\": null,\n \"FilePattern\": \"\",\n \"LogPath\": \"\"\n },\n \"LogFormat\": \"\",\n \"LogType\": \"minimalist_log\",\n \"LogsetId\": \"40907915-faa6-46e0-985f-b2fa8c17a080\",\n \"LogsetName\": \"logset-test\",\n \"Name\": \"config-test-886bf7a8-7340-4314-8d64-b360da0ffd78\",\n \"TopicId\": \"b2dcf2e5-9582-4c87-9286-cccccb53889d\",\n \"TopicName\": \"topic-test\",\n \"Type\": \"container_stdout\",\n \"UpdateTime\": \"2023-12-04 14:32:34\",\n \"UserDefineRule\": \"\"\n }\n ],\n \"RequestId\": \"4e48c681-ebf8-4df1-bf0a-51f689117ac6\",\n \"TotalCount\": 1\n }\n}",
|
402
402
|
"title": "获取特殊采集配置"
|
403
403
|
}
|
404
404
|
],
|
@@ -532,7 +532,7 @@
|
|
532
532
|
{
|
533
533
|
"document": "获取机器组绑定的采集规则配置",
|
534
534
|
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMachineGroupConfigs\n<公共请求参数>\n\n{\n \"GroupId\": \"01fd5bcc-d7d4-4edb-9ff5-7ecfc305b831\"\n}",
|
535
|
-
"output": "{\n \"Response\": {\n \"Configs\": [\n {\n \"AdvancedConfig\": \"\",\n \"ConfigId\": \"16c904ed-db2a-4ba4-b6fd-0f5f94f71111\",\n \"CreateTime\": \"2023-06-28 15:58:16\",\n \"ExcludePaths\": null,\n \"ExtractRule\": {\n \"Address\": \"\",\n \"Backtracking\": -1,\n \"BeginRegex\": \"\",\n \"Delimiter\": \"\",\n \"EventLogRules\": [],\n \"FilterKeyRegex\": [],\n \"IsGBK\": 0,\n \"JsonStandard\": 0,\n \"Keys\": null,\n \"LogRegex\": \"\",\n \"MetaTags\": [],\n \"MetadataType\": 0,\n \"ParseProtocol\": \"\",\n \"PathRegex\": \"\",\n \"Protocol\": \"\",\n \"TimeFormat\": \"\",\n \"TimeKey\": \"\",\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"UnMatchUpLoadSwitch\": false\n },\n \"LogFormat\": \"\",\n \"LogType\": \"json_log\",\n \"Name\": \"cls_hkff7p5e_test_c_eks\",\n \"Output\": \"a004adec-c87a-4179-b0eb-8f7ee4ec1111\",\n \"Path\": \"/var/log/eks-log-agent/test-c/*/*/**/*.log\",\n \"UpdateTime\": \"2023-11-16 21:42:48\",\n \"UserDefineRule\": \"\"\n }\n ],\n \"RequestId\": \"983cd59e-7a7a-48aa-a16f-b0f0275c2288\"\n }\n}",
|
535
|
+
"output": "{\n \"Response\": {\n \"Configs\": [\n {\n \"AdvancedConfig\": \"\",\n \"ConfigId\": \"16c904ed-db2a-4ba4-b6fd-0f5f94f71111\",\n \"CreateTime\": \"2023-06-28 15:58:16\",\n \"ExcludePaths\": null,\n \"ExtractRule\": {\n \"Address\": \"\",\n \"AdvanceFilterRules\": [],\n \"Backtracking\": -1,\n \"BeginRegex\": \"\",\n \"Delimiter\": \"\",\n \"EventLogRules\": [],\n \"FilterKeyRegex\": [],\n \"IsGBK\": 0,\n \"JsonStandard\": 0,\n \"Keys\": null,\n \"LogRegex\": \"\",\n \"MetaTags\": [],\n \"MetadataType\": 0,\n \"ParseProtocol\": \"\",\n \"PathRegex\": \"\",\n \"Protocol\": \"\",\n \"TimeFormat\": \"\",\n \"TimeKey\": \"\",\n \"UnMatchLogKey\": \"LogParseFailure\",\n \"UnMatchUpLoadSwitch\": false\n },\n \"LogFormat\": \"\",\n \"LogType\": \"json_log\",\n \"Name\": \"cls_hkff7p5e_test_c_eks\",\n \"Output\": \"a004adec-c87a-4179-b0eb-8f7ee4ec1111\",\n \"Path\": \"/var/log/eks-log-agent/test-c/*/*/**/*.log\",\n \"UpdateTime\": \"2023-11-16 21:42:48\",\n \"UserDefineRule\": \"\"\n }\n ],\n \"RequestId\": \"983cd59e-7a7a-48aa-a16f-b0f0275c2288\"\n }\n}",
|
536
536
|
"title": "获取机器组绑定的采集规则配置"
|
537
537
|
}
|
538
538
|
],
|
@@ -641,7 +641,7 @@
|
|
641
641
|
"ModifyConfig": [
|
642
642
|
{
|
643
643
|
"document": "FilterKeyRegex:Loglistener日志过滤规则列表(旧版),需要过滤日志的key,及其对应的regex。\n 注意:2.9.3及以上版本LogListener ,建议使用AdvanceFilterRules配置日志过滤规则。\n",
|
644
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyConfig\n<公共请求参数>\n\n{\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"Path\",\n \"Value\": \"/data/log/my.log\"\n }\n ],\n \"Name\": \"test2.8.8\",\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Regex\": \"400|500\"\n }\n ],\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\"\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"ConfigId\": \"a2c6342c-270a-4468-86cf-92625e466401\"\n}",
|
644
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyConfig\n<公共请求参数>\n\n{\n \"Path\": \"/data/log/**/my.log\",\n \"ExcludePaths\": [\n {\n \"Type\": \"Path\",\n \"Value\": \"/data/log/my.log\"\n }\n ],\n \"Name\": \"test2.8.8\",\n \"LogType\": \"minimalist_log\",\n \"UserDefineRule\": \"\",\n \"ExtractRule\": {\n \"IsGBK\": 0,\n \"FilterKeyRegex\": [\n {\n \"Key\": \"__CONTENT__\",\n \"Regex\": \"400|500\"\n }\n ],\n \"Backtracking\": 0,\n \"MetadataType\": 2,\n \"MetaTags\": [\n {\n \"Key\": \"mryx\",\n \"Value\": \"item\"\n }\n ],\n \"PathRegex\": \"\",\n \"AdvanceFilterRules\": []\n },\n \"AdvancedConfig\": \"{\\\"ClsAgentFileTimeout\\\":3600}\",\n \"ConfigId\": \"a2c6342c-270a-4468-86cf-92625e466401\"\n}",
|
645
645
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
646
646
|
"title": "修改采集规则配置"
|
647
647
|
}
|
tccli/services/dlc/dlc_client.py
CHANGED
@@ -6205,6 +6205,58 @@ def doRegisterThirdPartyAccessUser(args, parsed_globals):
|
|
6205
6205
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6206
6206
|
|
6207
6207
|
|
6208
|
+
def doDescribeTasksAnalysis(args, parsed_globals):
|
6209
|
+
g_param = parse_global_arg(parsed_globals)
|
6210
|
+
|
6211
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6212
|
+
cred = credential.CVMRoleCredential()
|
6213
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6214
|
+
cred = credential.STSAssumeRoleCredential(
|
6215
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6216
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6217
|
+
)
|
6218
|
+
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):
|
6219
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6220
|
+
else:
|
6221
|
+
cred = credential.Credential(
|
6222
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6223
|
+
)
|
6224
|
+
http_profile = HttpProfile(
|
6225
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6226
|
+
reqMethod="POST",
|
6227
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6228
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6229
|
+
)
|
6230
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6231
|
+
if g_param[OptionsDefine.Language]:
|
6232
|
+
profile.language = g_param[OptionsDefine.Language]
|
6233
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6234
|
+
client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
|
6235
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6236
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6237
|
+
model = models.DescribeTasksAnalysisRequest()
|
6238
|
+
model.from_json_string(json.dumps(args))
|
6239
|
+
start_time = time.time()
|
6240
|
+
while True:
|
6241
|
+
rsp = client.DescribeTasksAnalysis(model)
|
6242
|
+
result = rsp.to_json_string()
|
6243
|
+
try:
|
6244
|
+
json_obj = json.loads(result)
|
6245
|
+
except TypeError as e:
|
6246
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6247
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6248
|
+
break
|
6249
|
+
cur_time = time.time()
|
6250
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6251
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6252
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6253
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6254
|
+
else:
|
6255
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6256
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6257
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6258
|
+
|
6259
|
+
|
6208
6260
|
def doDeleteUsersFromWorkGroup(args, parsed_globals):
|
6209
6261
|
g_param = parse_global_arg(parsed_globals)
|
6210
6262
|
|
@@ -7583,6 +7635,7 @@ ACTION_MAP = {
|
|
7583
7635
|
"DescribeTaskResult": doDescribeTaskResult,
|
7584
7636
|
"CreateExportTask": doCreateExportTask,
|
7585
7637
|
"RegisterThirdPartyAccessUser": doRegisterThirdPartyAccessUser,
|
7638
|
+
"DescribeTasksAnalysis": doDescribeTasksAnalysis,
|
7586
7639
|
"DeleteUsersFromWorkGroup": doDeleteUsersFromWorkGroup,
|
7587
7640
|
"DescribeSparkAppTasks": doDescribeSparkAppTasks,
|
7588
7641
|
"UnbindWorkGroupsFromUser": doUnbindWorkGroupsFromUser,
|
@@ -651,6 +651,13 @@
|
|
651
651
|
"output": "DescribeTasksResponse",
|
652
652
|
"status": "online"
|
653
653
|
},
|
654
|
+
"DescribeTasksAnalysis": {
|
655
|
+
"document": "该接口用于洞察分析列表",
|
656
|
+
"input": "DescribeTasksAnalysisRequest",
|
657
|
+
"name": "洞察分析列表",
|
658
|
+
"output": "DescribeTasksAnalysisResponse",
|
659
|
+
"status": "online"
|
660
|
+
},
|
654
661
|
"DescribeTasksCostInfo": {
|
655
662
|
"document": "该接口(DescribeTasksCostInfo)用于查询任务消耗",
|
656
663
|
"input": "DescribeTasksCostInfoRequest",
|
@@ -1416,6 +1423,162 @@
|
|
1416
1423
|
],
|
1417
1424
|
"type": "object"
|
1418
1425
|
},
|
1426
|
+
"AnalysisTaskResults": {
|
1427
|
+
"document": "洞察分析结果返回体",
|
1428
|
+
"members": [
|
1429
|
+
{
|
1430
|
+
"disabled": false,
|
1431
|
+
"document": "任务Id",
|
1432
|
+
"example": "89570c65-49de-4bbd-ac0a-a67c724fc80f",
|
1433
|
+
"member": "string",
|
1434
|
+
"name": "Id",
|
1435
|
+
"output_required": true,
|
1436
|
+
"type": "string",
|
1437
|
+
"value_allowed_null": false
|
1438
|
+
},
|
1439
|
+
{
|
1440
|
+
"disabled": false,
|
1441
|
+
"document": "任务创建时间,毫秒时间戳",
|
1442
|
+
"example": "1715141119301",
|
1443
|
+
"member": "int64",
|
1444
|
+
"name": "InstanceStartTime",
|
1445
|
+
"output_required": true,
|
1446
|
+
"type": "int",
|
1447
|
+
"value_allowed_null": false
|
1448
|
+
},
|
1449
|
+
{
|
1450
|
+
"disabled": false,
|
1451
|
+
"document": "任务结束时间,毫秒时间戳\n注意:此字段可能返回 null,表示取不到有效值。",
|
1452
|
+
"example": "1715141437247",
|
1453
|
+
"member": "int64",
|
1454
|
+
"name": "InstanceCompleteTime",
|
1455
|
+
"output_required": false,
|
1456
|
+
"type": "int",
|
1457
|
+
"value_allowed_null": true
|
1458
|
+
},
|
1459
|
+
{
|
1460
|
+
"disabled": false,
|
1461
|
+
"document": "任务状态:0 初始化, 1 执行中, 2 执行成功,3 数据写入中,4 排队中。-1 执行失败,-3 已取消。",
|
1462
|
+
"example": "2",
|
1463
|
+
"member": "int64",
|
1464
|
+
"name": "State",
|
1465
|
+
"output_required": true,
|
1466
|
+
"type": "int",
|
1467
|
+
"value_allowed_null": false
|
1468
|
+
},
|
1469
|
+
{
|
1470
|
+
"disabled": false,
|
1471
|
+
"document": "任务SQL语句",
|
1472
|
+
"example": "无",
|
1473
|
+
"member": "string",
|
1474
|
+
"name": "SQL",
|
1475
|
+
"output_required": true,
|
1476
|
+
"type": "string",
|
1477
|
+
"value_allowed_null": false
|
1478
|
+
},
|
1479
|
+
{
|
1480
|
+
"disabled": false,
|
1481
|
+
"document": "计算资源名字\n注意:此字段可能返回 null,表示取不到有效值。",
|
1482
|
+
"example": "无",
|
1483
|
+
"member": "string",
|
1484
|
+
"name": "DataEngineName",
|
1485
|
+
"output_required": true,
|
1486
|
+
"type": "string",
|
1487
|
+
"value_allowed_null": true
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"disabled": false,
|
1491
|
+
"document": "单位毫秒,引擎内执行耗时\n注意:此字段可能返回 null,表示取不到有效值。",
|
1492
|
+
"example": "80852",
|
1493
|
+
"member": "int64",
|
1494
|
+
"name": "JobTimeSum",
|
1495
|
+
"output_required": false,
|
1496
|
+
"type": "int",
|
1497
|
+
"value_allowed_null": true
|
1498
|
+
},
|
1499
|
+
{
|
1500
|
+
"disabled": false,
|
1501
|
+
"document": "单位秒,CU资源消耗\n注意:此字段可能返回 null,表示取不到有效值。",
|
1502
|
+
"example": "4329",
|
1503
|
+
"member": "int64",
|
1504
|
+
"name": "TaskTimeSum",
|
1505
|
+
"output_required": false,
|
1506
|
+
"type": "int",
|
1507
|
+
"value_allowed_null": true
|
1508
|
+
},
|
1509
|
+
{
|
1510
|
+
"disabled": false,
|
1511
|
+
"document": "数据扫描总行数\n注意:此字段可能返回 null,表示取不到有效值。",
|
1512
|
+
"example": "无",
|
1513
|
+
"member": "int64",
|
1514
|
+
"name": "InputRecordsSum",
|
1515
|
+
"output_required": false,
|
1516
|
+
"type": "int",
|
1517
|
+
"value_allowed_null": true
|
1518
|
+
},
|
1519
|
+
{
|
1520
|
+
"disabled": false,
|
1521
|
+
"document": "数据扫描总 bytes\n注意:此字段可能返回 null,表示取不到有效值。",
|
1522
|
+
"example": "无",
|
1523
|
+
"member": "int64",
|
1524
|
+
"name": "InputBytesSum",
|
1525
|
+
"output_required": false,
|
1526
|
+
"type": "int",
|
1527
|
+
"value_allowed_null": true
|
1528
|
+
},
|
1529
|
+
{
|
1530
|
+
"disabled": false,
|
1531
|
+
"document": "输出总行数\n注意:此字段可能返回 null,表示取不到有效值。",
|
1532
|
+
"example": "无",
|
1533
|
+
"member": "int64",
|
1534
|
+
"name": "OutputRecordsSum",
|
1535
|
+
"output_required": false,
|
1536
|
+
"type": "int",
|
1537
|
+
"value_allowed_null": true
|
1538
|
+
},
|
1539
|
+
{
|
1540
|
+
"disabled": false,
|
1541
|
+
"document": "输出总 bytes\n注意:此字段可能返回 null,表示取不到有效值。",
|
1542
|
+
"example": "无",
|
1543
|
+
"member": "int64",
|
1544
|
+
"name": "OutputBytesSum",
|
1545
|
+
"output_required": false,
|
1546
|
+
"type": "int",
|
1547
|
+
"value_allowed_null": true
|
1548
|
+
},
|
1549
|
+
{
|
1550
|
+
"disabled": false,
|
1551
|
+
"document": "shuffle read 总 bytes\n注意:此字段可能返回 null,表示取不到有效值。",
|
1552
|
+
"example": "无",
|
1553
|
+
"member": "int64",
|
1554
|
+
"name": "ShuffleReadBytesSum",
|
1555
|
+
"output_required": false,
|
1556
|
+
"type": "int",
|
1557
|
+
"value_allowed_null": true
|
1558
|
+
},
|
1559
|
+
{
|
1560
|
+
"disabled": false,
|
1561
|
+
"document": "shuffle read 总行数\n注意:此字段可能返回 null,表示取不到有效值。",
|
1562
|
+
"example": "无",
|
1563
|
+
"member": "int64",
|
1564
|
+
"name": "ShuffleReadRecordsSum",
|
1565
|
+
"output_required": false,
|
1566
|
+
"type": "int",
|
1567
|
+
"value_allowed_null": true
|
1568
|
+
},
|
1569
|
+
{
|
1570
|
+
"disabled": false,
|
1571
|
+
"document": "洞察结果类型分类,一个 json 数组,有如下几种类型:SPARK-StageScheduleDelay(资源抢占), SPARK-ShuffleFailure(Shuffle异常), SPARK-SlowTask(慢task), SPARK-DataSkew(数据倾斜), SPARK-InsufficientResource(磁盘或内存不足)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1572
|
+
"example": "[\\\"SPARK-StageScheduleDelay\\\"]",
|
1573
|
+
"member": "string",
|
1574
|
+
"name": "AnalysisStatus",
|
1575
|
+
"output_required": false,
|
1576
|
+
"type": "string",
|
1577
|
+
"value_allowed_null": true
|
1578
|
+
}
|
1579
|
+
],
|
1580
|
+
"usage": "out"
|
1581
|
+
},
|
1419
1582
|
"Asset": {
|
1420
1583
|
"document": "元数据基本对象",
|
1421
1584
|
"members": [
|
@@ -10766,6 +10929,116 @@
|
|
10766
10929
|
],
|
10767
10930
|
"type": "object"
|
10768
10931
|
},
|
10932
|
+
"DescribeTasksAnalysisRequest": {
|
10933
|
+
"document": "DescribeTasksAnalysis请求参数结构体",
|
10934
|
+
"members": [
|
10935
|
+
{
|
10936
|
+
"disabled": false,
|
10937
|
+
"document": "数据引擎名称,用于筛选",
|
10938
|
+
"example": "shared_presto",
|
10939
|
+
"member": "string",
|
10940
|
+
"name": "DataEngineName",
|
10941
|
+
"required": false,
|
10942
|
+
"type": "string"
|
10943
|
+
},
|
10944
|
+
{
|
10945
|
+
"disabled": false,
|
10946
|
+
"document": "返回数量,默认为10,最大值为100。",
|
10947
|
+
"example": "20",
|
10948
|
+
"member": "int64",
|
10949
|
+
"name": "Limit",
|
10950
|
+
"required": false,
|
10951
|
+
"type": "int"
|
10952
|
+
},
|
10953
|
+
{
|
10954
|
+
"disabled": false,
|
10955
|
+
"document": "偏移量,默认为0。",
|
10956
|
+
"example": "0",
|
10957
|
+
"member": "int64",
|
10958
|
+
"name": "Offset",
|
10959
|
+
"required": false,
|
10960
|
+
"type": "int"
|
10961
|
+
},
|
10962
|
+
{
|
10963
|
+
"disabled": false,
|
10964
|
+
"document": "过滤条件,如下支持的过滤类型,传参Name应为以下其中一个: task-id - String - (任务ID准确过滤)task-id 取值形如:e386471f-139a-4e59-877f-50ece8135b99。task-state - String - (任务状态过滤)取值范围 0(初始化), 1(运行中), 2(成功), -1(失败),rule-id - String - (洞察类型)取值范围 SPARK-StageScheduleDelay(资源抢占), SPARK-ShuffleFailure(Shuffle异常), SPARK-SlowTask(慢task), SPARK-DataSkew(数据倾斜), SPARK-InsufficientResource(磁盘或内存不足)",
|
10965
|
+
"example": "无",
|
10966
|
+
"member": "Filter",
|
10967
|
+
"name": "Filters",
|
10968
|
+
"required": false,
|
10969
|
+
"type": "list"
|
10970
|
+
},
|
10971
|
+
{
|
10972
|
+
"disabled": false,
|
10973
|
+
"document": "排序字段,支持如下字段类型,instance-start-time (任务开始时间), instance-complete-time (任务结束时间),job-time-sum (单位毫秒,引擎内执行耗时),task-time-sum (CU资源消耗,单位秒),input-bytes-sum(数据扫描总大小,单位bytes),shuffle-read-bytes-sum(数据shuffle总大小,单位bytes)",
|
10974
|
+
"example": "instance-start-time",
|
10975
|
+
"member": "string",
|
10976
|
+
"name": "SortBy",
|
10977
|
+
"required": false,
|
10978
|
+
"type": "string"
|
10979
|
+
},
|
10980
|
+
{
|
10981
|
+
"disabled": false,
|
10982
|
+
"document": "排序方式,desc表示正序,asc表示反序, 默认为asc。",
|
10983
|
+
"example": "desc",
|
10984
|
+
"member": "string",
|
10985
|
+
"name": "Sorting",
|
10986
|
+
"required": false,
|
10987
|
+
"type": "string"
|
10988
|
+
},
|
10989
|
+
{
|
10990
|
+
"disabled": false,
|
10991
|
+
"document": "起始时间点,格式为yyyy-mm-dd HH:MM:SS",
|
10992
|
+
"example": "2019-01-21 00:00:00",
|
10993
|
+
"member": "string",
|
10994
|
+
"name": "StartTime",
|
10995
|
+
"required": false,
|
10996
|
+
"type": "string"
|
10997
|
+
},
|
10998
|
+
{
|
10999
|
+
"disabled": false,
|
11000
|
+
"document": "结束时间点,格式为yyyy-mm-dd HH:MM:SS时间跨度在(0,30天],支持最近45天数据查询。默认为当前时刻",
|
11001
|
+
"example": "2019-01-22 00:00:00",
|
11002
|
+
"member": "string",
|
11003
|
+
"name": "EndTime",
|
11004
|
+
"required": false,
|
11005
|
+
"type": "string"
|
11006
|
+
}
|
11007
|
+
],
|
11008
|
+
"type": "object"
|
11009
|
+
},
|
11010
|
+
"DescribeTasksAnalysisResponse": {
|
11011
|
+
"document": "DescribeTasksAnalysis返回参数结构体",
|
11012
|
+
"members": [
|
11013
|
+
{
|
11014
|
+
"disabled": false,
|
11015
|
+
"document": "洞察结果分页列表",
|
11016
|
+
"example": "无",
|
11017
|
+
"member": "AnalysisTaskResults",
|
11018
|
+
"name": "TaskList",
|
11019
|
+
"output_required": true,
|
11020
|
+
"type": "list",
|
11021
|
+
"value_allowed_null": false
|
11022
|
+
},
|
11023
|
+
{
|
11024
|
+
"disabled": false,
|
11025
|
+
"document": "洞察结果总数",
|
11026
|
+
"example": "21",
|
11027
|
+
"member": "uint64",
|
11028
|
+
"name": "TotalCount",
|
11029
|
+
"output_required": true,
|
11030
|
+
"type": "int",
|
11031
|
+
"value_allowed_null": false
|
11032
|
+
},
|
11033
|
+
{
|
11034
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11035
|
+
"member": "string",
|
11036
|
+
"name": "RequestId",
|
11037
|
+
"type": "string"
|
11038
|
+
}
|
11039
|
+
],
|
11040
|
+
"type": "object"
|
11041
|
+
},
|
10769
11042
|
"DescribeTasksCostInfoRequest": {
|
10770
11043
|
"document": "DescribeTasksCostInfo请求参数结构体",
|
10771
11044
|
"members": [
|
@@ -750,6 +750,14 @@
|
|
750
750
|
"title": "查询任务列表"
|
751
751
|
}
|
752
752
|
],
|
753
|
+
"DescribeTasksAnalysis": [
|
754
|
+
{
|
755
|
+
"document": "",
|
756
|
+
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTasksAnalysis\n<公共请求参数>\n\n{}",
|
757
|
+
"output": "{\n \"Response\": {\n \"TaskList\": [\n {\n \"Id\": \"abc\",\n \"InstanceStartTime\": 0,\n \"InstanceCompleteTime\": 0,\n \"State\": 0,\n \"SQL\": \"abc\",\n \"DataEngineName\": \"abc\",\n \"JobTimeSum\": 0,\n \"TaskTimeSum\": 0,\n \"InputRecordsSum\": 0,\n \"InputBytesSum\": 0,\n \"OutputRecordsSum\": 0,\n \"OutputBytesSum\": 0,\n \"ShuffleReadBytesSum\": 0,\n \"ShuffleReadRecordsSum\": 0,\n \"AnalysisStatus\": \"abc\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"abc\"\n }\n}",
|
758
|
+
"title": "洞察分析列表"
|
759
|
+
}
|
760
|
+
],
|
753
761
|
"DescribeTasksCostInfo": [
|
754
762
|
{
|
755
763
|
"document": "",
|
@@ -4411,7 +4411,7 @@
|
|
4411
4411
|
},
|
4412
4412
|
{
|
4413
4413
|
"disabled": false,
|
4414
|
-
"document": "查询类型,支持HIVE,SPARK,MAPREDUCE,TRINO等类型,默认查询全部",
|
4414
|
+
"document": "查询类型,支持HIVE,SPARK,DLC_SPARK,SPARK_SQL,SCHEDULE,MAPREDUCE,TRINO等类型,默认查询全部",
|
4415
4415
|
"example": "HIVE",
|
4416
4416
|
"member": "string",
|
4417
4417
|
"name": "Type",
|