tccli 3.0.1272.1__py2.py3-none-any.whl → 3.0.1274.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/batch/v20170312/api.json +57 -57
- tccli/services/captcha/v20190722/api.json +116 -116
- tccli/services/captcha/v20190722/examples.json +1 -1
- tccli/services/ccc/v20200210/api.json +3 -3
- tccli/services/cdwch/v20200915/api.json +61 -11
- tccli/services/clb/clb_client.py +265 -0
- tccli/services/clb/v20180317/api.json +289 -0
- tccli/services/clb/v20180317/examples.json +40 -0
- tccli/services/cvm/v20170312/api.json +57 -57
- tccli/services/cwp/v20180228/api.json +4 -4
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +1 -1
- tccli/services/faceid/v20180301/api.json +11 -11
- tccli/services/faceid/v20180301/examples.json +8 -2
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/lke/v20231130/api.json +73 -2
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +3 -3
- tccli/services/lowcode/lowcode_client.py +477 -0
- tccli/services/lowcode/v20210108/api.json +1764 -155
- tccli/services/lowcode/v20210108/examples.json +75 -9
- tccli/services/monitor/monitor_client.py +53 -0
- tccli/services/monitor/v20180724/api.json +189 -1
- tccli/services/monitor/v20180724/examples.json +8 -0
- tccli/services/rce/v20201103/api.json +103 -103
- tccli/services/redis/v20180412/api.json +110 -110
- tccli/services/ssl/v20191205/api.json +46 -46
- tccli/services/ssl/v20191205/examples.json +3 -3
- tccli/services/tcr/v20190924/api.json +20 -20
- tccli/services/tdid/v20210519/api.json +95 -26
- tccli/services/tdid/v20210519/examples.json +15 -3
- tccli/services/tione/v20211111/api.json +3 -3
- tccli/services/tione/v20211111/examples.json +4 -4
- tccli/services/tsf/v20180326/api.json +88 -88
- tccli/services/tsf/v20180326/examples.json +2 -2
- tccli/services/waf/v20180125/api.json +1 -1
- tccli/services/weilingwith/v20230427/api.json +115 -115
- tccli/services/weilingwith/v20230427/examples.json +21 -21
- {tccli-3.0.1272.1.dist-info → tccli-3.0.1274.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1272.1.dist-info → tccli-3.0.1274.1.dist-info}/RECORD +44 -44
- {tccli-3.0.1272.1.dist-info → tccli-3.0.1274.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1272.1.dist-info → tccli-3.0.1274.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1272.1.dist-info → tccli-3.0.1274.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,17 +1,83 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"CreateKnowledgeSet": [
|
4
|
+
{
|
5
|
+
"document": "创建微搭知识库",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateKnowledgeSet\n<公共请求参数>\n\n{\n \"Name\": \"test\",\n \"Title\": \"testTiTle\",\n \"Desc\": \"descd\"\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"dde48f19-e0fb-490e-bf4c-150bcf7e3c91\"\n }\n}",
|
8
|
+
"title": "创建知识库"
|
9
|
+
}
|
10
|
+
],
|
11
|
+
"DeleteKnowledgeDocumentSet": [
|
12
|
+
{
|
13
|
+
"document": "删除知识库下文档",
|
14
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteKnowledgeDocumentSet\n<公共请求参数>\n\n{\n \"CollectionView\": \"gqtianTw west666\",\n \"Query\": {\n \"DocumentSetId\": [\n \"124847948693739929www6\"\n ]\n }\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"AffectedCount\": 1\n },\n \"RequestId\": \"7365a503-7b9e-4510-9b0c-e7af0f0c06cf\"\n }\n}",
|
16
|
+
"title": "删除知识库下文档"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"DeleteKnowledgeSet": [
|
20
|
+
{
|
21
|
+
"document": "用于删除知识库",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteKnowledgeSet\n<公共请求参数>\n\n{\n \"Name\": \"test\"\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"dde48f19-e0fb-490e-bf4c-150bcf7e3c91\"\n }\n}",
|
24
|
+
"title": "删除知识库"
|
25
|
+
}
|
26
|
+
],
|
3
27
|
"DescribeDataSourceList": [
|
4
28
|
{
|
5
|
-
"document": "",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDataSourceList\n<公共请求参数>\n\n{\n \"PageIndex\": 0,\n \"
|
7
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"
|
8
|
-
"title": "
|
9
|
-
}
|
29
|
+
"document": "查询数据源列表",
|
30
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDataSourceList\n<公共请求参数>\n\n{\n \"PageSize\": 10,\n \"PageIndex\": 1,\n \"EnvId\": \"lowcode-4jT6kVY\",\n \"Appids\": [\n \"data-4jT6kVY\"\n ],\n \"DataSourceIds\": [\n \"data-4jT6kVY\"\n ],\n \"DataSourceNames\": [\n \"4jT6kVY\"\n ],\n \"DataSourceType\": \"mysql\",\n \"QueryOption\": {\n \"LikeName\": \"4jT6kVY\",\n \"LikeTitle\": \"用户\"\n },\n \"ViewIds\": [\n \"4jT6kVY\"\n ],\n \"AppLinkStatus\": 0,\n \"QueryBindToApp\": 0,\n \"QueryConnector\": 0,\n \"NotQuerySubTypeList\": [\n \"d4jT6kVY\"\n ],\n \"ChannelList\": [\n \"4jT6kVY\"\n ],\n \"QueryDataSourceRelationList\": true,\n \"DbInstanceType\": \"mysql\",\n \"DatabaseTableNames\": [\n \"sys_user\"\n ],\n \"QuerySystemModel\": true\n}",
|
31
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Rows\": [\n {\n \"Id\": \"data-4jT6kVY\",\n \"Title\": \"用户\",\n \"Name\": \"sys_user\",\n \"Type\": \"database\",\n \"Description\": \"内置数据源\",\n \"Schema\": \"{\\\"x-primary-column\\\":\\\"name\\\",\\\"x-kind\\\":\\\"tcb\\\",\\\"name\\\":\\\"sys_user\\\",\\\"x-defaultMethods\\\":[\\\"wedaCreate\\\"]}\",\n \"CmsProject\": \"data-4jT6kVY\",\n \"PkgId\": \"lowcode-4jT6kVY\",\n \"SchemaVersion\": \"2.0\",\n \"CreatorId\": \"sys_user_1\",\n \"CreatedAt\": \"sys\",\n \"UpdatedAt\": \"sys\",\n \"EnvId\": \"lowcode-4jT6kVY\",\n \"DataSourceVersion\": \"data-4jT6kVY\",\n \"AppUsageList\": [\n {\n \"Id\": \"data-4jT6kVY\",\n \"Title\": \"用户\",\n \"EditStatusUse\": 0,\n \"PreviewStatusUse\": 0,\n \"OnlineStatusUse\": 0,\n \"DataSourceId\": \"data-4jT6kVY\"\n }\n ],\n \"PublishedAt\": \"sys\",\n \"ChildDataSourceIds\": [\n \"data-4jT6kVY\"\n ],\n \"Fun\": \"{\\\"prviewPublishAt\\\":\\\"2024-11-19T17:28:57.919+0800\\\",\\\"onlinePublishAt\\\":\\\"2024-11-19T17:28:30.989+0800\\\",\\\"previewVersion\\\":2,\\\"onlineVersion\\\":2}\",\n \"ScfStatus\": 1,\n \"Methods\": \"data-4jT6kVY\",\n \"ChildDataSourceNames\": [\n \"data-4jT6kVY\"\n ],\n \"IsNewDataSource\": 0,\n \"ViewId\": \"view-67vvgoe840\",\n \"Configuration\": \"data-4jT6kVY\",\n \"TemplateCode\": \"data-4jT6kVY\",\n \"Source\": 0,\n \"PublishVersion\": \"data-4jT6kVY\",\n \"PublishViewId\": \"data-4jT6kVY\",\n \"SubType\": \"data-4jT6kVY\",\n \"AuthStatus\": 0,\n \"AuthInfo\": {\n \"AuthUser\": \"sys\"\n },\n \"PublishStatus\": 0,\n \"UpdateVersion\": 0,\n \"RelationFieldList\": [\n {\n \"Field\": \"abcdata-4jT6kVY\",\n \"Format\": \"data-4jT6kVY\",\n \"RelateDataSourceName\": \"data-4jT6kVY\"\n }\n ],\n \"DbInstanceType\": \"mysql\",\n \"PreviewTableName\": \"sys_user_pre\",\n \"PublishedTableName\": \"sys_user\",\n \"DbSourceType\": \"mysql\"\n }\n ],\n \"Count\": 1\n },\n \"RequestId\": \"1234_23232sdssasd\"\n }\n}",
|
32
|
+
"title": "DescribeDataSourceList"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"DescribeKnowledgeDocumentSetDetail": [
|
36
|
+
{
|
37
|
+
"document": "获取知识库下文档详情",
|
38
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKnowledgeDocumentSetDetail\n<公共请求参数>\n\n{\n \"CollectionView\": \"gqtianTest222666\",\n \"DocumentSetId\": \"1248479222486937399296\"\n}",
|
39
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Count\": 1,\n \"DocumentSet\": {\n \"DocumentSetId\": \"1248479222486937399296\",\n \"FileTitle\": \"kent测试文件\",\n \"FileMetaData\": \"{\\\"url\\\": \\\"https://ww.com\\\", \\\"total\\\": 3}\",\n \"DocumentSetInfo\": {\n \"ByteLength\": 46,\n \"CreateTime\": \"2024-06-07 11:31:45\",\n \"IndexedProgress\": 100,\n \"IndexedStatus\": \"Ready\",\n \"Keywords\": \"\",\n \"LastUpdateTime\": \"2024-06-07 11:31:46\",\n \"TextLength\": 20\n },\n \"DocumentSetName\": \"jackzlqin.md\",\n \"Name\": \"\",\n \"Author\": \"\",\n \"SplitterPreprocess\": {\n \"AppendKeywordsToChunk\": false,\n \"AppendTitleToChunk\": true\n },\n \"Text\": \"1. 入门微搭的技术文档\\n2. 学习微搭\",\n \"TextPrefix\": \"1. 入门微搭的技术文档\\n2. 学习微搭......\"\n }\n },\n \"RequestId\": \"b404ff44-6bc3-4f60-8185-2ff4d9be5b63\"\n }\n}",
|
40
|
+
"title": "获取知识库下文档详情"
|
41
|
+
}
|
42
|
+
],
|
43
|
+
"DescribeKnowledgeDocumentSetList": [
|
44
|
+
{
|
45
|
+
"document": "查询知识库下文件集合",
|
46
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKnowledgeDocumentSetList\n<公共请求参数>\n\n{\n \"CollectionView\": \"gqtianTest666\",\n \"Query\": {\n \"Limit\": 10,\n \"Offset\": 0\n }\n}",
|
47
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Count\": 1,\n \"DocumentSets\": [\n {\n \"DocumentSetId\": \"1248479486937399296\",\n \"FileTitle\": \"kent测试文件\",\n \"FileMetaData\": \"{\\\"url\\\": \\\"https://ww.com\\\", \\\"total\\\": 3}\",\n \"DocumentSetInfo\": {\n \"ByteLength\": 46,\n \"CreateTime\": \"2024-06-07 11:31:45\",\n \"IndexedErrorMsg\": \"\",\n \"IndexedProgress\": 100,\n \"IndexedStatus\": \"Ready\",\n \"Keywords\": \"\",\n \"LastUpdateTime\": \"2024-06-07 11:31:46\",\n \"TextLength\": 20\n },\n \"DocumentSetName\": \"jackzlqin.md\",\n \"Name\": \"\",\n \"Author\": \"\",\n \"SplitterPreprocess\": {\n \"AppendKeywordsToChunk\": false,\n \"AppendTitleToChunk\": true\n },\n \"TextPrefix\": \"1. 入门微搭的技术文档\\n2. 学习微搭......\"\n }\n ]\n },\n \"RequestId\": \"2e7bdcc4-d82f-4b81-abc6-6e8b08cf1832\"\n }\n}",
|
48
|
+
"title": "查询知识库下文件集合"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"DescribeKnowledgeSetList": [
|
52
|
+
{
|
53
|
+
"document": "查询环境下的知识库列表",
|
54
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKnowledgeSetList\n<公共请求参数>\n\n{\n \"Limit\": 10\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"KnowledgeSets\": [\n {\n \"Name\": \"test\",\n \"Title\": \"testTiTle\",\n \"Desc\": \"test\",\n \"Active\": \"ENABLED\",\n \"CreateTime\": \"2024-06-04 18:07:38\",\n \"UpdateTime\": \"2024-06-04 18:09:29\"\n }\n ],\n \"Total\": 1\n },\n \"RequestId\": \"f549082e-0cff-4026-96f6-a570d9f1c22d\"\n }\n}",
|
56
|
+
"title": "查询环境下的知识库列表"
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"SearchDocList": [
|
60
|
+
{
|
61
|
+
"document": "根据关键字搜索知识库文档",
|
62
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SearchDocList\n<公共请求参数>\n\n{\n \"EnvId\": \"abc\",\n \"CollectionView\": \"abc\",\n \"SearchKey\": \"abc\",\n \"SearchValue\": \"abc\",\n \"PageNo\": 1,\n \"PageSize\": 1\n}",
|
63
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"DocInfos\": [\n {\n \"CollectionViewName\": \"abc\",\n \"DocSetId\": \"123456\",\n \"DocSetName\": \"abc.md\",\n \"DocType\": \".md\",\n \"FileTitle\": \"abc\",\n \"FileMetaData\": \"{}\",\n \"DocDesc\": \"test\",\n \"FileSize\": 0\n }\n ],\n \"Total\": 10\n },\n \"RequestId\": \"1cc82948-244f-4812-bb2a-25a8a473d312\"\n }\n}",
|
64
|
+
"title": "知识库文档搜索接口"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"UpdateKnowledgeSet": [
|
68
|
+
{
|
69
|
+
"document": "更新知识库状态",
|
70
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateKnowledgeSet\n<公共请求参数>\n\n{\n \"Name\": \"test\",\n \"Active\": \"ENABLED\"\n}",
|
71
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"dde48f19-e0fb-490e-bf4c-150bcf7e3c91\"\n }\n}",
|
72
|
+
"title": "更新知识库"
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"UploadKnowledgeDocumentSet": [
|
10
76
|
{
|
11
|
-
"document": "",
|
12
|
-
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
13
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"
|
14
|
-
"title": "
|
77
|
+
"document": "上传知识库文档\n",
|
78
|
+
"input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UploadKnowledgeDocumentSet\n<公共请求参数>\n\n{\n \"EnvId\": \"lowcode-1gk9y5ik310a94df\",\n \"CollectionView\": \"qinmyku873d0a97\",\n \"CosUrl\": \"https://6c6f-lowcode-5g5llxbq5bc9299e-1300677802.tcb.qcloud.la/weda-uploader/5e471ea6d1891cced441b68df1022023-新手指引.md\",\n \"FileName\": \"jackzlqin-test1.md\",\n \"DocumentDesc\": \"test-qin-11\",\n \"FileTitle\":\"kent测试文件\",\n \"FileMetaData\":\"{\\\"url\\\":\\\"https://ww.com\\\",\\\"total\\\":3}\",\n \"DocumentSetId\":\"1258635496046329856\"\n}\n\n",
|
79
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"DocumentSetId\": \"1248563007152455680\",\n \"DocumentSetName\": \"jackzqlin-test.md\",\n \"FileTitle\": \"kent测试文件\",\n \"FileMetaData\": \"{\\\"url\\\":\\\"https://ww.com\\\",\\\"total\\\":3}\"\n },\n \"RequestId\": \"0f27f7a7-2d8a-456a-8de9-2e794f3f8e74\"\n }\n}",
|
80
|
+
"title": "UploadKnowledgeDocumentSet"
|
15
81
|
}
|
16
82
|
]
|
17
83
|
},
|
@@ -4647,6 +4647,58 @@ def doUpdateAlertRuleState(args, parsed_globals):
|
|
4647
4647
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4648
4648
|
|
4649
4649
|
|
4650
|
+
def doGetTopNMonitorData(args, parsed_globals):
|
4651
|
+
g_param = parse_global_arg(parsed_globals)
|
4652
|
+
|
4653
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4654
|
+
cred = credential.CVMRoleCredential()
|
4655
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4656
|
+
cred = credential.STSAssumeRoleCredential(
|
4657
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4658
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4659
|
+
)
|
4660
|
+
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):
|
4661
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4662
|
+
else:
|
4663
|
+
cred = credential.Credential(
|
4664
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4665
|
+
)
|
4666
|
+
http_profile = HttpProfile(
|
4667
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4668
|
+
reqMethod="POST",
|
4669
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4670
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4671
|
+
)
|
4672
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4673
|
+
if g_param[OptionsDefine.Language]:
|
4674
|
+
profile.language = g_param[OptionsDefine.Language]
|
4675
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4676
|
+
client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
|
4677
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4678
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4679
|
+
model = models.GetTopNMonitorDataRequest()
|
4680
|
+
model.from_json_string(json.dumps(args))
|
4681
|
+
start_time = time.time()
|
4682
|
+
while True:
|
4683
|
+
rsp = client.GetTopNMonitorData(model)
|
4684
|
+
result = rsp.to_json_string()
|
4685
|
+
try:
|
4686
|
+
json_obj = json.loads(result)
|
4687
|
+
except TypeError as e:
|
4688
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4689
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4690
|
+
break
|
4691
|
+
cur_time = time.time()
|
4692
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4693
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4694
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4695
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4696
|
+
else:
|
4697
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4698
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4699
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4700
|
+
|
4701
|
+
|
4650
4702
|
def doModifyPrometheusTemp(args, parsed_globals):
|
4651
4703
|
g_param = parse_global_arg(parsed_globals)
|
4652
4704
|
|
@@ -8337,6 +8389,7 @@ ACTION_MAP = {
|
|
8337
8389
|
"CreatePrometheusAgent": doCreatePrometheusAgent,
|
8338
8390
|
"CreatePrometheusGlobalNotification": doCreatePrometheusGlobalNotification,
|
8339
8391
|
"UpdateAlertRuleState": doUpdateAlertRuleState,
|
8392
|
+
"GetTopNMonitorData": doGetTopNMonitorData,
|
8340
8393
|
"ModifyPrometheusTemp": doModifyPrometheusTemp,
|
8341
8394
|
"UnbindPrometheusManagedGrafana": doUnbindPrometheusManagedGrafana,
|
8342
8395
|
"DescribeExporterIntegrations": doDescribeExporterIntegrations,
|
@@ -784,6 +784,13 @@
|
|
784
784
|
"output": "GetPrometheusAgentManagementCommandResponse",
|
785
785
|
"status": "online"
|
786
786
|
},
|
787
|
+
"GetTopNMonitorData": {
|
788
|
+
"document": "支持TopN查询,对于给定的监控指标和时间区间,按照指标大小按序返回不同维度组合及数据。",
|
789
|
+
"input": "GetTopNMonitorDataRequest",
|
790
|
+
"name": "获取TopN监控数据",
|
791
|
+
"output": "GetTopNMonitorDataResponse",
|
792
|
+
"status": "online"
|
793
|
+
},
|
787
794
|
"InstallPlugins": {
|
788
795
|
"document": "安装 Grafana Plugin",
|
789
796
|
"input": "InstallPluginsRequest",
|
@@ -13931,6 +13938,137 @@
|
|
13931
13938
|
],
|
13932
13939
|
"type": "object"
|
13933
13940
|
},
|
13941
|
+
"GetTopNMonitorDataRequest": {
|
13942
|
+
"document": "GetTopNMonitorData请求参数结构体",
|
13943
|
+
"members": [
|
13944
|
+
{
|
13945
|
+
"disabled": false,
|
13946
|
+
"document": "topN",
|
13947
|
+
"example": "20",
|
13948
|
+
"member": "uint64",
|
13949
|
+
"name": "N",
|
13950
|
+
"required": true,
|
13951
|
+
"type": "int"
|
13952
|
+
},
|
13953
|
+
{
|
13954
|
+
"disabled": false,
|
13955
|
+
"document": "起始时间",
|
13956
|
+
"example": "2020-05-11T14:52:44+08:00",
|
13957
|
+
"member": "datetime_iso",
|
13958
|
+
"name": "StartTime",
|
13959
|
+
"required": true,
|
13960
|
+
"type": "string"
|
13961
|
+
},
|
13962
|
+
{
|
13963
|
+
"disabled": false,
|
13964
|
+
"document": "截止时间",
|
13965
|
+
"example": "2020-05-11T14:52:44+08:00",
|
13966
|
+
"member": "datetime_iso",
|
13967
|
+
"name": "EndTime",
|
13968
|
+
"required": true,
|
13969
|
+
"type": "string"
|
13970
|
+
},
|
13971
|
+
{
|
13972
|
+
"disabled": false,
|
13973
|
+
"document": "实例对象的维度组合,格式为key-value键值对形式的集合。不同类型的实例字段完全不同,如CVM为[{\"Name\":\"InstanceId\",\"Value\":\"ins-j0hk02zo\"}],Ckafka为[{\"Name\":\"instanceId\",\"Value\":\"ckafka-l49k54dd\"}],COS为[{\"Name\":\"appid\",\"Value\":\"1258344699\"},{\"Name\":\"bucket\",\"Value\":\"rig-1258344699\"}]。各个云产品的维度请参阅各个产品监控指标文档,对应的维度列即为维度组合的key,value为key对应的值。单请求最多支持批量拉取50个实例的监控数据。",
|
13974
|
+
"example": "[{\"Dimensions\":[{\"Name\":\"netgroup\",\"Value\":\"-1\"}]}]",
|
13975
|
+
"member": "Instance",
|
13976
|
+
"name": "Instances",
|
13977
|
+
"required": true,
|
13978
|
+
"type": "list"
|
13979
|
+
},
|
13980
|
+
{
|
13981
|
+
"disabled": false,
|
13982
|
+
"document": "指标名称,如Bwpresourcebandwidthin,仅支持单指标拉取。各个云产品的详细指标说明请参阅各个产品监控指标文档,对应的指标英文名即为MetricName",
|
13983
|
+
"example": "Bwpresourcebandwidthin",
|
13984
|
+
"member": "string",
|
13985
|
+
"name": "MetricName",
|
13986
|
+
"required": true,
|
13987
|
+
"type": "string"
|
13988
|
+
},
|
13989
|
+
{
|
13990
|
+
"disabled": false,
|
13991
|
+
"document": "命名空间,如QCE/CVM。各个云产品的详细命名空间说明请参阅各个产品监控指标文档",
|
13992
|
+
"example": "QCE/BWP",
|
13993
|
+
"member": "string",
|
13994
|
+
"name": "Namespace",
|
13995
|
+
"required": true,
|
13996
|
+
"type": "string"
|
13997
|
+
},
|
13998
|
+
{
|
13999
|
+
"disabled": false,
|
14000
|
+
"document": "监控统计周期,如60。默认为取值为60,单位为s。每个指标支持的统计周期不一定相同,各个云产品支持的统计周期请参阅各个产品监控指标文档,对应的统计周期列即为支持的统计周期。",
|
14001
|
+
"example": "60",
|
14002
|
+
"member": "uint64",
|
14003
|
+
"name": "Period",
|
14004
|
+
"required": false,
|
14005
|
+
"type": "int"
|
14006
|
+
}
|
14007
|
+
],
|
14008
|
+
"type": "object"
|
14009
|
+
},
|
14010
|
+
"GetTopNMonitorDataResponse": {
|
14011
|
+
"document": "GetTopNMonitorData返回参数结构体",
|
14012
|
+
"members": [
|
14013
|
+
{
|
14014
|
+
"disabled": false,
|
14015
|
+
"document": "指标名\t",
|
14016
|
+
"example": "Bwpresourcebandwidthin",
|
14017
|
+
"member": "string",
|
14018
|
+
"name": "MetricName",
|
14019
|
+
"output_required": true,
|
14020
|
+
"type": "string",
|
14021
|
+
"value_allowed_null": false
|
14022
|
+
},
|
14023
|
+
{
|
14024
|
+
"disabled": false,
|
14025
|
+
"document": "统计周期\t",
|
14026
|
+
"example": "60",
|
14027
|
+
"member": "uint64",
|
14028
|
+
"name": "Period",
|
14029
|
+
"output_required": true,
|
14030
|
+
"type": "int",
|
14031
|
+
"value_allowed_null": false
|
14032
|
+
},
|
14033
|
+
{
|
14034
|
+
"disabled": false,
|
14035
|
+
"document": "topN",
|
14036
|
+
"example": "无",
|
14037
|
+
"member": "uint64",
|
14038
|
+
"name": "N",
|
14039
|
+
"output_required": true,
|
14040
|
+
"type": "int",
|
14041
|
+
"value_allowed_null": false
|
14042
|
+
},
|
14043
|
+
{
|
14044
|
+
"disabled": false,
|
14045
|
+
"document": "排序的监控数据\t",
|
14046
|
+
"example": "无",
|
14047
|
+
"member": "SingleOrderedDataPoint",
|
14048
|
+
"name": "OrderedDataPoints",
|
14049
|
+
"output_required": true,
|
14050
|
+
"type": "list",
|
14051
|
+
"value_allowed_null": false
|
14052
|
+
},
|
14053
|
+
{
|
14054
|
+
"disabled": false,
|
14055
|
+
"document": "返回信息",
|
14056
|
+
"example": "无",
|
14057
|
+
"member": "string",
|
14058
|
+
"name": "Msg",
|
14059
|
+
"output_required": true,
|
14060
|
+
"type": "string",
|
14061
|
+
"value_allowed_null": false
|
14062
|
+
},
|
14063
|
+
{
|
14064
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
14065
|
+
"member": "string",
|
14066
|
+
"name": "RequestId",
|
14067
|
+
"type": "string"
|
14068
|
+
}
|
14069
|
+
],
|
14070
|
+
"type": "object"
|
14071
|
+
},
|
13934
14072
|
"GrafanaAccountInfo": {
|
13935
14073
|
"document": "Grafana可视化服务 授权账户信息",
|
13936
14074
|
"members": [
|
@@ -14605,7 +14743,7 @@
|
|
14605
14743
|
{
|
14606
14744
|
"disabled": false,
|
14607
14745
|
"document": "内容",
|
14608
|
-
"example": "{
|
14746
|
+
"example": "{\"name\":\"test\",\"kind\":\"blackbox-exporter\",\"spec\":{\"scrapeSpec\":{\"interval\":\"15s\"},\"instanceSpec\":{\"module\":\"http_get\",\"urls\":[\"http://test.com\"]},\"exporterSpec\":{}}}",
|
14609
14747
|
"member": "string",
|
14610
14748
|
"name": "Content",
|
14611
14749
|
"output_required": true,
|
@@ -19882,6 +20020,56 @@
|
|
19882
20020
|
],
|
19883
20021
|
"type": "object"
|
19884
20022
|
},
|
20023
|
+
"SingleOrderedDataPoint": {
|
20024
|
+
"document": "单个有序数据点",
|
20025
|
+
"members": [
|
20026
|
+
{
|
20027
|
+
"disabled": false,
|
20028
|
+
"document": "实例对象维度组合\t\n注意:此字段可能返回 null,表示取不到有效值。",
|
20029
|
+
"example": "无",
|
20030
|
+
"member": "Dimension",
|
20031
|
+
"name": "Dimensions",
|
20032
|
+
"output_required": true,
|
20033
|
+
"required": false,
|
20034
|
+
"type": "list",
|
20035
|
+
"value_allowed_null": true
|
20036
|
+
},
|
20037
|
+
{
|
20038
|
+
"disabled": false,
|
20039
|
+
"document": "监控数据值\n注意:此字段可能返回 null,表示取不到有效值。",
|
20040
|
+
"example": "无",
|
20041
|
+
"member": "float",
|
20042
|
+
"name": "Value",
|
20043
|
+
"output_required": true,
|
20044
|
+
"required": false,
|
20045
|
+
"type": "float",
|
20046
|
+
"value_allowed_null": true
|
20047
|
+
},
|
20048
|
+
{
|
20049
|
+
"disabled": false,
|
20050
|
+
"document": "监控数据时间戳\n注意:此字段可能返回 null,表示取不到有效值。",
|
20051
|
+
"example": "无",
|
20052
|
+
"member": "uint64",
|
20053
|
+
"name": "Timestamp",
|
20054
|
+
"output_required": true,
|
20055
|
+
"required": false,
|
20056
|
+
"type": "int",
|
20057
|
+
"value_allowed_null": true
|
20058
|
+
},
|
20059
|
+
{
|
20060
|
+
"disabled": false,
|
20061
|
+
"document": "排序序号\n注意:此字段可能返回 null,表示取不到有效值。",
|
20062
|
+
"example": "无",
|
20063
|
+
"member": "uint64",
|
20064
|
+
"name": "Order",
|
20065
|
+
"output_required": true,
|
20066
|
+
"required": false,
|
20067
|
+
"type": "int",
|
20068
|
+
"value_allowed_null": true
|
20069
|
+
}
|
20070
|
+
],
|
20071
|
+
"usage": "both"
|
20072
|
+
},
|
19885
20073
|
"SyncPrometheusTempRequest": {
|
19886
20074
|
"document": "SyncPrometheusTemp请求参数结构体",
|
19887
20075
|
"members": [
|
@@ -1076,6 +1076,14 @@
|
|
1076
1076
|
"title": "获取 Prometheus Agent 管理相关的命令行"
|
1077
1077
|
}
|
1078
1078
|
],
|
1079
|
+
"GetTopNMonitorData": [
|
1080
|
+
{
|
1081
|
+
"document": "根据某个netgroup实例,查看一段时间范围内带宽Top5的u_id数据。",
|
1082
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetTopNMonitorData\n<公共请求参数>\n\n{\n \"Namespace\": \"QCE/BWP\",\n \"MetricName\": \"Bwpresourcebandwidthin\",\n \"Period\": 60,\n \"StartTime\": \"2024-09-05T00:27:00+08:00\",\n \"EndTime\": \"2024-09-05T23:27:00+08:00\",\n \"N\": 5,\n \"Instances\": [\n {\n \"Dimensions\": [\n {\n \"Name\": \"netgroup\",\n \"Value\": \"-1\"\n }\n ]\n }\n ]\n}",
|
1083
|
+
"output": "{\n \"Response\": {\n \"MetricName\": \"Bwpresourcebandwidthin\",\n \"Period\": 60,\n \"N\": 5,\n \"OrderedDataPoints\": [\n {\n \"Dimensions\": [\n {\n \"Name\": \"appid\",\n \"Value\": \"251236571\"\n },\n {\n \"Name\": \"netgroup\",\n \"Value\": \"-1\"\n },\n {\n \"Name\": \"u_id\",\n \"Value\": \"eip-3xq5lcpb\"\n }\n ],\n \"Timestamp\": 1725496200,\n \"Value\": 19411.2,\n \"Order\": 1\n },\n {\n \"Dimensions\": [\n {\n \"Name\": \"u_id\",\n \"Value\": \"eip-bhhl5d0l\"\n },\n {\n \"Name\": \"appid\",\n \"Value\": \"251236571\"\n },\n {\n \"Name\": \"netgroup\",\n \"Value\": \"-1\"\n }\n ],\n \"Timestamp\": 1725495840,\n \"Value\": 2224,\n \"Order\": 2\n },\n {\n \"Dimensions\": [\n {\n \"Name\": \"appid\",\n \"Value\": \"251236571\"\n },\n {\n \"Name\": \"netgroup\",\n \"Value\": \"-1\"\n },\n {\n \"Name\": \"u_id\",\n \"Value\": \"eip-7mg0n41b\"\n }\n ],\n \"Timestamp\": 1725496200,\n \"Value\": 2088,\n \"Order\": 3\n },\n {\n \"Dimensions\": [\n {\n \"Name\": \"netgroup\",\n \"Value\": \"-1\"\n },\n {\n \"Name\": \"u_id\",\n \"Value\": \"eip-r2n5fxfr\"\n },\n {\n \"Name\": \"appid\",\n \"Value\": \"251195348\"\n }\n ],\n \"Timestamp\": 1725495840,\n \"Value\": 1759.2,\n \"Order\": 4\n },\n {\n \"Dimensions\": [\n {\n \"Name\": \"netgroup\",\n \"Value\": \"-1\"\n },\n {\n \"Name\": \"u_id\",\n \"Value\": \"eip-bl7z49yd\"\n },\n {\n \"Name\": \"appid\",\n \"Value\": \"251236571\"\n }\n ],\n \"Timestamp\": 1725496140,\n \"Value\": 1568,\n \"Order\": 5\n }\n ],\n \"RequestId\": \"yql-qqqqqqqqq\",\n \"Msg\": \"Success\"\n }\n}",
|
1084
|
+
"title": "拉取BWP带宽Top5的监控数据"
|
1085
|
+
}
|
1086
|
+
],
|
1079
1087
|
"InstallPlugins": [
|
1080
1088
|
{
|
1081
1089
|
"document": "",
|