tccli 3.0.1393.1__py2.py3-none-any.whl → 3.0.1395.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/__init__.py +2 -1
- tccli/services/ai3d/v20250513/api.json +4 -4
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +354 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/billing/billing_client.py +326 -8
- tccli/services/billing/v20180709/api.json +2200 -255
- tccli/services/billing/v20180709/examples.json +48 -0
- tccli/services/cam/v20190116/api.json +1 -1
- tccli/services/ccc/ccc_client.py +125 -72
- tccli/services/ccc/v20200210/api.json +185 -10
- tccli/services/ccc/v20200210/examples.json +8 -0
- tccli/services/cfw/v20190904/api.json +121 -9
- tccli/services/ckafka/v20190819/api.json +20 -0
- tccli/services/ctem/v20231128/api.json +290 -0
- tccli/services/ctem/v20231128/examples.json +3 -3
- tccli/services/cvm/cvm_client.py +0 -212
- tccli/services/cvm/v20170312/api.json +80 -842
- tccli/services/cvm/v20170312/examples.json +24 -56
- tccli/services/emr/v20190103/api.json +36 -7
- tccli/services/ess/v20201111/api.json +7 -7
- tccli/services/ess/v20201111/examples.json +6 -6
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/gs/gs_client.py +216 -4
- tccli/services/gs/v20191118/api.json +201 -0
- tccli/services/gs/v20191118/examples.json +32 -0
- tccli/services/iai/v20180301/api.json +115 -93
- tccli/services/iai/v20180301/examples.json +19 -19
- tccli/services/iotexplorer/iotexplorer_client.py +57 -4
- tccli/services/iotexplorer/v20190423/api.json +69 -0
- tccli/services/iotexplorer/v20190423/examples.json +8 -0
- tccli/services/lighthouse/v20200324/api.json +113 -9
- tccli/services/lighthouse/v20200324/examples.json +2 -2
- tccli/services/lke/v20231130/api.json +34 -1
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/mna/v20210119/api.json +10 -1
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +2 -2
- tccli/services/organization/v20210331/api.json +6 -6
- tccli/services/redis/v20180412/api.json +9 -9
- tccli/services/sqlserver/v20180328/api.json +15 -5
- tccli/services/sqlserver/v20180328/examples.json +1 -1
- tccli/services/trocket/v20230308/api.json +4 -4
- tccli/services/tsf/v20180326/api.json +2 -2
- tccli/services/vod/v20180717/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +5 -5
- tccli/services/vtc/v20240223/api.json +1 -1
- tccli/services/waf/v20180125/api.json +8 -8
- tccli/services/waf/v20180125/examples.json +1 -1
- tccli/services/wedata/v20250806/api.json +13645 -0
- tccli/services/wedata/v20250806/examples.json +621 -0
- tccli/services/wedata/wedata_client.py +5031 -1157
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1395.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1395.1.dist-info}/RECORD +58 -56
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1395.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1395.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1395.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1395.1'
|
tccli/services/__init__.py
CHANGED
@@ -8,14 +8,14 @@
|
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
10
|
"QueryHunyuanTo3DProJob": {
|
11
|
-
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供
|
11
|
+
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供3个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
12
12
|
"input": "QueryHunyuanTo3DProJobRequest",
|
13
13
|
"name": "查询混元生3D专业版任务",
|
14
14
|
"output": "QueryHunyuanTo3DProJobResponse",
|
15
15
|
"status": "online"
|
16
16
|
},
|
17
17
|
"QueryHunyuanTo3DRapidJob": {
|
18
|
-
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供
|
18
|
+
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
19
19
|
"input": "QueryHunyuanTo3DRapidJobRequest",
|
20
20
|
"name": "查询混元生3D极速版任务",
|
21
21
|
"output": "QueryHunyuanTo3DRapidJobResponse",
|
@@ -29,14 +29,14 @@
|
|
29
29
|
"status": "online"
|
30
30
|
},
|
31
31
|
"SubmitHunyuanTo3DProJob": {
|
32
|
-
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供
|
32
|
+
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供3个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
33
33
|
"input": "SubmitHunyuanTo3DProJobRequest",
|
34
34
|
"name": "提交混元生3D专业版任务",
|
35
35
|
"output": "SubmitHunyuanTo3DProJobResponse",
|
36
36
|
"status": "online"
|
37
37
|
},
|
38
38
|
"SubmitHunyuanTo3DRapidJob": {
|
39
|
-
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供
|
39
|
+
"document": "混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
40
40
|
"input": "SubmitHunyuanTo3DRapidJobRequest",
|
41
41
|
"name": "提交混元生3D极速版任务",
|
42
42
|
"output": "SubmitHunyuanTo3DRapidJobResponse",
|
tccli/services/apm/apm_client.py
CHANGED
@@ -693,6 +693,58 @@ def doCreateApmInstance(args, parsed_globals):
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
694
|
|
695
695
|
|
696
|
+
def doDescribeApmServiceMetric(args, parsed_globals):
|
697
|
+
g_param = parse_global_arg(parsed_globals)
|
698
|
+
|
699
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
700
|
+
cred = credential.CVMRoleCredential()
|
701
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
702
|
+
cred = credential.STSAssumeRoleCredential(
|
703
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
704
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
705
|
+
)
|
706
|
+
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):
|
707
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
708
|
+
else:
|
709
|
+
cred = credential.Credential(
|
710
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
711
|
+
)
|
712
|
+
http_profile = HttpProfile(
|
713
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
714
|
+
reqMethod="POST",
|
715
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
716
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
717
|
+
)
|
718
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
719
|
+
if g_param[OptionsDefine.Language]:
|
720
|
+
profile.language = g_param[OptionsDefine.Language]
|
721
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
722
|
+
client = mod.ApmClient(cred, g_param[OptionsDefine.Region], profile)
|
723
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
724
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
+
model = models.DescribeApmServiceMetricRequest()
|
726
|
+
model.from_json_string(json.dumps(args))
|
727
|
+
start_time = time.time()
|
728
|
+
while True:
|
729
|
+
rsp = client.DescribeApmServiceMetric(model)
|
730
|
+
result = rsp.to_json_string()
|
731
|
+
try:
|
732
|
+
json_obj = json.loads(result)
|
733
|
+
except TypeError as e:
|
734
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
735
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
736
|
+
break
|
737
|
+
cur_time = time.time()
|
738
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
739
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
740
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
741
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
742
|
+
else:
|
743
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
744
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
745
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
|
+
|
747
|
+
|
696
748
|
def doDescribeServiceOverview(args, parsed_globals):
|
697
749
|
g_param = parse_global_arg(parsed_globals)
|
698
750
|
|
@@ -769,6 +821,7 @@ ACTION_MAP = {
|
|
769
821
|
"DescribeMetricRecords": doDescribeMetricRecords,
|
770
822
|
"TerminateApmInstance": doTerminateApmInstance,
|
771
823
|
"CreateApmInstance": doCreateApmInstance,
|
824
|
+
"DescribeApmServiceMetric": doDescribeApmServiceMetric,
|
772
825
|
"DescribeServiceOverview": doDescribeServiceOverview,
|
773
826
|
|
774
827
|
}
|
@@ -28,6 +28,13 @@
|
|
28
28
|
"output": "DescribeApmInstancesResponse",
|
29
29
|
"status": "online"
|
30
30
|
},
|
31
|
+
"DescribeApmServiceMetric": {
|
32
|
+
"document": "获取 APM 应用指标列表",
|
33
|
+
"input": "DescribeApmServiceMetricRequest",
|
34
|
+
"name": "获取 APM 应用指标",
|
35
|
+
"output": "DescribeApmServiceMetricResponse",
|
36
|
+
"status": "online"
|
37
|
+
},
|
31
38
|
"DescribeGeneralApmApplicationConfig": {
|
32
39
|
"document": "查询应用配置信息",
|
33
40
|
"input": "DescribeGeneralApmApplicationConfigRequest",
|
@@ -1143,6 +1150,42 @@
|
|
1143
1150
|
],
|
1144
1151
|
"usage": "out"
|
1145
1152
|
},
|
1153
|
+
"ApmServiceMetric": {
|
1154
|
+
"document": "apm应用指标信息",
|
1155
|
+
"members": [
|
1156
|
+
{
|
1157
|
+
"disabled": false,
|
1158
|
+
"document": "filed数组\n注意:此字段可能返回 null,表示取不到有效值。",
|
1159
|
+
"example": "[]",
|
1160
|
+
"member": "ApmField",
|
1161
|
+
"name": "Fields",
|
1162
|
+
"output_required": true,
|
1163
|
+
"type": "list",
|
1164
|
+
"value_allowed_null": true
|
1165
|
+
},
|
1166
|
+
{
|
1167
|
+
"disabled": false,
|
1168
|
+
"document": "tag数组\n注意:此字段可能返回 null,表示取不到有效值。",
|
1169
|
+
"example": "[]",
|
1170
|
+
"member": "ApmTag",
|
1171
|
+
"name": "Tags",
|
1172
|
+
"output_required": true,
|
1173
|
+
"type": "list",
|
1174
|
+
"value_allowed_null": true
|
1175
|
+
},
|
1176
|
+
{
|
1177
|
+
"disabled": false,
|
1178
|
+
"document": "应用信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
1179
|
+
"example": "{}",
|
1180
|
+
"member": "ServiceDetail",
|
1181
|
+
"name": "ServiceDetail",
|
1182
|
+
"output_required": false,
|
1183
|
+
"type": "object",
|
1184
|
+
"value_allowed_null": true
|
1185
|
+
}
|
1186
|
+
],
|
1187
|
+
"usage": "out"
|
1188
|
+
},
|
1146
1189
|
"ApmTag": {
|
1147
1190
|
"document": "维度(标签)对象",
|
1148
1191
|
"members": [
|
@@ -1515,6 +1558,212 @@
|
|
1515
1558
|
],
|
1516
1559
|
"type": "object"
|
1517
1560
|
},
|
1561
|
+
"DescribeApmServiceMetricRequest": {
|
1562
|
+
"document": "DescribeApmServiceMetric请求参数结构体",
|
1563
|
+
"members": [
|
1564
|
+
{
|
1565
|
+
"disabled": false,
|
1566
|
+
"document": "业务系统ID",
|
1567
|
+
"example": "apm-CVfliqa8U",
|
1568
|
+
"member": "string",
|
1569
|
+
"name": "InstanceId",
|
1570
|
+
"required": true,
|
1571
|
+
"type": "string"
|
1572
|
+
},
|
1573
|
+
{
|
1574
|
+
"disabled": false,
|
1575
|
+
"document": "应用名",
|
1576
|
+
"example": "apm_test",
|
1577
|
+
"member": "string",
|
1578
|
+
"name": "ServiceName",
|
1579
|
+
"required": false,
|
1580
|
+
"type": "string"
|
1581
|
+
},
|
1582
|
+
{
|
1583
|
+
"disabled": false,
|
1584
|
+
"document": "应用ID",
|
1585
|
+
"example": "svc-JRNE5rvV8",
|
1586
|
+
"member": "string",
|
1587
|
+
"name": "ServiceID",
|
1588
|
+
"required": false,
|
1589
|
+
"type": "string"
|
1590
|
+
},
|
1591
|
+
{
|
1592
|
+
"disabled": false,
|
1593
|
+
"document": "开始时间",
|
1594
|
+
"example": "1719317419",
|
1595
|
+
"member": "int64",
|
1596
|
+
"name": "StartTime",
|
1597
|
+
"required": false,
|
1598
|
+
"type": "int"
|
1599
|
+
},
|
1600
|
+
{
|
1601
|
+
"disabled": false,
|
1602
|
+
"document": "结束时间",
|
1603
|
+
"example": "1720580629",
|
1604
|
+
"member": "int64",
|
1605
|
+
"name": "EndTime",
|
1606
|
+
"required": false,
|
1607
|
+
"type": "int"
|
1608
|
+
},
|
1609
|
+
{
|
1610
|
+
"disabled": false,
|
1611
|
+
"document": "排序",
|
1612
|
+
"example": "无",
|
1613
|
+
"member": "OrderBy",
|
1614
|
+
"name": "OrderBy",
|
1615
|
+
"required": false,
|
1616
|
+
"type": "object"
|
1617
|
+
},
|
1618
|
+
{
|
1619
|
+
"disabled": false,
|
1620
|
+
"document": "是否demo模式",
|
1621
|
+
"example": "false",
|
1622
|
+
"member": "bool",
|
1623
|
+
"name": "Demo",
|
1624
|
+
"required": false,
|
1625
|
+
"type": "bool"
|
1626
|
+
},
|
1627
|
+
{
|
1628
|
+
"disabled": false,
|
1629
|
+
"document": "应用状态筛选,可枚举的值为:health、warning、error。如果选中多个状态用逗号隔开,比如:\"warning,error\"",
|
1630
|
+
"example": "health",
|
1631
|
+
"member": "string",
|
1632
|
+
"name": "ServiceStatus",
|
1633
|
+
"required": false,
|
1634
|
+
"type": "string"
|
1635
|
+
},
|
1636
|
+
{
|
1637
|
+
"disabled": false,
|
1638
|
+
"document": "标签列表",
|
1639
|
+
"example": "无",
|
1640
|
+
"member": "ApmTag",
|
1641
|
+
"name": "Tags",
|
1642
|
+
"required": false,
|
1643
|
+
"type": "list"
|
1644
|
+
},
|
1645
|
+
{
|
1646
|
+
"disabled": false,
|
1647
|
+
"document": "页码",
|
1648
|
+
"example": "1",
|
1649
|
+
"member": "int64",
|
1650
|
+
"name": "Page",
|
1651
|
+
"required": false,
|
1652
|
+
"type": "int"
|
1653
|
+
},
|
1654
|
+
{
|
1655
|
+
"disabled": false,
|
1656
|
+
"document": "页大小",
|
1657
|
+
"example": "2",
|
1658
|
+
"member": "int64",
|
1659
|
+
"name": "PageSize",
|
1660
|
+
"required": false,
|
1661
|
+
"type": "int"
|
1662
|
+
},
|
1663
|
+
{
|
1664
|
+
"disabled": false,
|
1665
|
+
"document": "过滤条件",
|
1666
|
+
"example": "无",
|
1667
|
+
"member": "Filter",
|
1668
|
+
"name": "Filters",
|
1669
|
+
"required": false,
|
1670
|
+
"type": "list"
|
1671
|
+
}
|
1672
|
+
],
|
1673
|
+
"type": "object"
|
1674
|
+
},
|
1675
|
+
"DescribeApmServiceMetricResponse": {
|
1676
|
+
"document": "DescribeApmServiceMetric返回参数结构体",
|
1677
|
+
"members": [
|
1678
|
+
{
|
1679
|
+
"disabled": false,
|
1680
|
+
"document": "应用指标列表",
|
1681
|
+
"example": "无",
|
1682
|
+
"member": "ApmServiceMetric",
|
1683
|
+
"name": "ServiceMetricList",
|
1684
|
+
"output_required": false,
|
1685
|
+
"type": "list",
|
1686
|
+
"value_allowed_null": false
|
1687
|
+
},
|
1688
|
+
{
|
1689
|
+
"disabled": false,
|
1690
|
+
"document": "符合筛选条件的应用数",
|
1691
|
+
"example": "3",
|
1692
|
+
"member": "int64",
|
1693
|
+
"name": "TotalCount",
|
1694
|
+
"output_required": false,
|
1695
|
+
"type": "int",
|
1696
|
+
"value_allowed_null": false
|
1697
|
+
},
|
1698
|
+
{
|
1699
|
+
"disabled": false,
|
1700
|
+
"document": "警示异常应用数",
|
1701
|
+
"example": "2",
|
1702
|
+
"member": "int64",
|
1703
|
+
"name": "WarningErrorCount",
|
1704
|
+
"output_required": false,
|
1705
|
+
"type": "int",
|
1706
|
+
"value_allowed_null": false
|
1707
|
+
},
|
1708
|
+
{
|
1709
|
+
"disabled": false,
|
1710
|
+
"document": "应用总数",
|
1711
|
+
"example": "7",
|
1712
|
+
"member": "int64",
|
1713
|
+
"name": "ApplicationCount",
|
1714
|
+
"output_required": false,
|
1715
|
+
"type": "int",
|
1716
|
+
"value_allowed_null": false
|
1717
|
+
},
|
1718
|
+
{
|
1719
|
+
"disabled": false,
|
1720
|
+
"document": "页码",
|
1721
|
+
"example": "1",
|
1722
|
+
"member": "int64",
|
1723
|
+
"name": "Page",
|
1724
|
+
"output_required": false,
|
1725
|
+
"type": "int",
|
1726
|
+
"value_allowed_null": false
|
1727
|
+
},
|
1728
|
+
{
|
1729
|
+
"disabled": false,
|
1730
|
+
"document": "页大小",
|
1731
|
+
"example": "2",
|
1732
|
+
"member": "int64",
|
1733
|
+
"name": "PageSize",
|
1734
|
+
"output_required": false,
|
1735
|
+
"type": "int",
|
1736
|
+
"value_allowed_null": false
|
1737
|
+
},
|
1738
|
+
{
|
1739
|
+
"disabled": false,
|
1740
|
+
"document": "异常应用数",
|
1741
|
+
"example": "1",
|
1742
|
+
"member": "int64",
|
1743
|
+
"name": "ErrorCount",
|
1744
|
+
"output_required": false,
|
1745
|
+
"type": "int",
|
1746
|
+
"value_allowed_null": false
|
1747
|
+
},
|
1748
|
+
{
|
1749
|
+
"disabled": false,
|
1750
|
+
"document": "警示应用数",
|
1751
|
+
"example": "1",
|
1752
|
+
"member": "int64",
|
1753
|
+
"name": "WarningCount",
|
1754
|
+
"output_required": false,
|
1755
|
+
"type": "int",
|
1756
|
+
"value_allowed_null": false
|
1757
|
+
},
|
1758
|
+
{
|
1759
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1760
|
+
"member": "string",
|
1761
|
+
"name": "RequestId",
|
1762
|
+
"type": "string"
|
1763
|
+
}
|
1764
|
+
],
|
1765
|
+
"type": "object"
|
1766
|
+
},
|
1518
1767
|
"DescribeGeneralApmApplicationConfigRequest": {
|
1519
1768
|
"document": "DescribeGeneralApmApplicationConfig请求参数结构体",
|
1520
1769
|
"members": [
|
@@ -2928,6 +3177,111 @@
|
|
2928
3177
|
],
|
2929
3178
|
"usage": "in"
|
2930
3179
|
},
|
3180
|
+
"ServiceDetail": {
|
3181
|
+
"document": "应用详细信息",
|
3182
|
+
"members": [
|
3183
|
+
{
|
3184
|
+
"disabled": false,
|
3185
|
+
"document": "应用ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3186
|
+
"example": "svc-test",
|
3187
|
+
"member": "string",
|
3188
|
+
"name": "ServiceID",
|
3189
|
+
"output_required": true,
|
3190
|
+
"required": false,
|
3191
|
+
"type": "string",
|
3192
|
+
"value_allowed_null": true
|
3193
|
+
},
|
3194
|
+
{
|
3195
|
+
"disabled": false,
|
3196
|
+
"document": "业务系统ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3197
|
+
"example": "apm-test",
|
3198
|
+
"member": "string",
|
3199
|
+
"name": "InstanceKey",
|
3200
|
+
"output_required": false,
|
3201
|
+
"required": false,
|
3202
|
+
"type": "string",
|
3203
|
+
"value_allowed_null": true
|
3204
|
+
},
|
3205
|
+
{
|
3206
|
+
"disabled": false,
|
3207
|
+
"document": "用户appid\n注意:此字段可能返回 null,表示取不到有效值。",
|
3208
|
+
"example": "123",
|
3209
|
+
"member": "int64",
|
3210
|
+
"name": "AppID",
|
3211
|
+
"output_required": false,
|
3212
|
+
"required": false,
|
3213
|
+
"type": "int",
|
3214
|
+
"value_allowed_null": true
|
3215
|
+
},
|
3216
|
+
{
|
3217
|
+
"disabled": false,
|
3218
|
+
"document": "主账号uin\n注意:此字段可能返回 null,表示取不到有效值。",
|
3219
|
+
"example": "12",
|
3220
|
+
"member": "string",
|
3221
|
+
"name": "CreateUIN",
|
3222
|
+
"output_required": false,
|
3223
|
+
"required": false,
|
3224
|
+
"type": "string",
|
3225
|
+
"value_allowed_null": true
|
3226
|
+
},
|
3227
|
+
{
|
3228
|
+
"disabled": false,
|
3229
|
+
"document": "应用名\n注意:此字段可能返回 null,表示取不到有效值。",
|
3230
|
+
"example": "demo",
|
3231
|
+
"member": "string",
|
3232
|
+
"name": "ServiceName",
|
3233
|
+
"output_required": false,
|
3234
|
+
"required": false,
|
3235
|
+
"type": "string",
|
3236
|
+
"value_allowed_null": true
|
3237
|
+
},
|
3238
|
+
{
|
3239
|
+
"disabled": false,
|
3240
|
+
"document": "应用描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
3241
|
+
"example": "describe",
|
3242
|
+
"member": "string",
|
3243
|
+
"name": "ServiceDescription",
|
3244
|
+
"output_required": false,
|
3245
|
+
"required": false,
|
3246
|
+
"type": "string",
|
3247
|
+
"value_allowed_null": true
|
3248
|
+
},
|
3249
|
+
{
|
3250
|
+
"disabled": false,
|
3251
|
+
"document": "地域\n注意:此字段可能返回 null,表示取不到有效值。",
|
3252
|
+
"example": "ap-guangzhou",
|
3253
|
+
"member": "string",
|
3254
|
+
"name": "Region",
|
3255
|
+
"output_required": false,
|
3256
|
+
"required": false,
|
3257
|
+
"type": "string",
|
3258
|
+
"value_allowed_null": true
|
3259
|
+
},
|
3260
|
+
{
|
3261
|
+
"disabled": false,
|
3262
|
+
"document": "标签\n注意:此字段可能返回 null,表示取不到有效值。",
|
3263
|
+
"example": "无",
|
3264
|
+
"member": "ApmTag",
|
3265
|
+
"name": "Tags",
|
3266
|
+
"output_required": false,
|
3267
|
+
"required": false,
|
3268
|
+
"type": "list",
|
3269
|
+
"value_allowed_null": true
|
3270
|
+
},
|
3271
|
+
{
|
3272
|
+
"disabled": false,
|
3273
|
+
"document": "业务系统名称",
|
3274
|
+
"example": "travy-test",
|
3275
|
+
"member": "string",
|
3276
|
+
"name": "InstanceName",
|
3277
|
+
"output_required": false,
|
3278
|
+
"required": false,
|
3279
|
+
"type": "string",
|
3280
|
+
"value_allowed_null": false
|
3281
|
+
}
|
3282
|
+
],
|
3283
|
+
"usage": "both"
|
3284
|
+
},
|
2931
3285
|
"Span": {
|
2932
3286
|
"document": "Span 对象",
|
2933
3287
|
"members": [
|
@@ -32,6 +32,14 @@
|
|
32
32
|
"title": "获取 APM 业务系统列表"
|
33
33
|
}
|
34
34
|
],
|
35
|
+
"DescribeApmServiceMetric": [
|
36
|
+
{
|
37
|
+
"document": "获取APM应用指标",
|
38
|
+
"input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeApmServiceMetric\n<公共请求参数>\n\n{\n \"InstanceId\": \"apm-eDyXpD6CD\"\n}",
|
39
|
+
"output": "{\n \"Response\": {\n \"ApplicationCount\": 1,\n \"ErrorCount\": 1,\n \"Page\": 0,\n \"PageSize\": 0,\n \"RequestId\": \"84d35deb-232e-463e-b2ac-fe49338707a2\",\n \"ServiceMetricList\": [\n {\n \"Fields\": [\n {\n \"CompareVal\": \"0.9%\",\n \"CompareVals\": null,\n \"Key\": \"duration_avg\",\n \"LastPeriodValue\": [\n {\n \"Key\": \"CompareByYesterday\",\n \"Value\": 681.7527368527665\n }\n ],\n \"NameCN\": \"平均响应时间\",\n \"NameEN\": \"Average Response Time\",\n \"Unit\": \"ms\",\n \"Value\": 688\n },\n {\n \"CompareVal\": \"-1.7%\",\n \"CompareVals\": null,\n \"Key\": \"qps\",\n \"LastPeriodValue\": [\n {\n \"Key\": \"CompareByYesterday\",\n \"Value\": 0.40692708333333333\n }\n ],\n \"NameCN\": \"平均请求量\",\n \"NameEN\": \"Average RPS\",\n \"Unit\": \"qps\",\n \"Value\": 0.4\n },\n {\n \"CompareVal\": \"-0.3%\",\n \"CompareVals\": null,\n \"Key\": \"request_count_sum\",\n \"LastPeriodValue\": [\n {\n \"Key\": \"CompareByYesterday\",\n \"Value\": 70317\n }\n ],\n \"NameCN\": \"总请求数\",\n \"NameEN\": \"Total Requests\",\n \"Unit\": \"\",\n \"Value\": 70129\n },\n {\n \"CompareVal\": \"0.0%\",\n \"CompareVals\": null,\n \"Key\": \"error_req_rate_avg\",\n \"LastPeriodValue\": [\n {\n \"Key\": \"CompareByYesterday\",\n \"Value\": 62.81837962370408\n }\n ],\n \"NameCN\": \"平均错误率\",\n \"NameEN\": \"Average Error Rate\",\n \"Unit\": \"%\",\n \"Value\": 62.8\n },\n {\n \"CompareVal\": \"-4.4%\",\n \"CompareVals\": null,\n \"Key\": \"adpdex\",\n \"LastPeriodValue\": [\n {\n \"Key\": \"CompareByYesterday\",\n \"Value\": 0.7325824480566577\n }\n ],\n \"NameCN\": \"平均 Apdex\",\n \"NameEN\": \"Average Apdex\",\n \"Unit\": \"\",\n \"Value\": 0.7\n },\n {\n \"CompareVal\": \"0\",\n \"CompareVals\": null,\n \"Key\": \"alarm_count\",\n \"LastPeriodValue\": [\n {\n \"Key\": \"CompareByYesterday\",\n \"Value\": 0\n }\n ],\n \"NameCN\": \"告警数\",\n \"NameEN\": \"Alarm Count\",\n \"Unit\": \"次\",\n \"Value\": 0\n },\n {\n \"CompareVal\": \"-0.4%\",\n \"CompareVals\": null,\n \"Key\": \"error_request_count\",\n \"LastPeriodValue\": [\n {\n \"Key\": \"CompareByYesterday\",\n \"Value\": 44172\n }\n ],\n \"NameCN\": \"异常数量\",\n \"NameEN\": \"Error Count\",\n \"Unit\": \"个\",\n \"Value\": 44008\n },\n {\n \"CompareVal\": \"\",\n \"CompareVals\": null,\n \"Key\": \"instance_count\",\n \"LastPeriodValue\": null,\n \"NameCN\": \"\",\n \"NameEN\": \"\",\n \"Unit\": \"\",\n \"Value\": 1\n },\n {\n \"CompareVal\": \"\",\n \"CompareVals\": null,\n \"Key\": \"critical_vulnerability_count\",\n \"LastPeriodValue\": null,\n \"NameCN\": \"\",\n \"NameEN\": \"\",\n \"Unit\": \"\",\n \"Value\": 0\n },\n {\n \"CompareVal\": \"\",\n \"CompareVals\": null,\n \"Key\": \"important_vulnerability_count\",\n \"LastPeriodValue\": null,\n \"NameCN\": \"\",\n \"NameEN\": \"\",\n \"Unit\": \"\",\n \"Value\": 0\n },\n {\n \"CompareVal\": \"\",\n \"CompareVals\": null,\n \"Key\": \"vulnerability_count\",\n \"LastPeriodValue\": null,\n \"NameCN\": \"\",\n \"NameEN\": \"\",\n \"Unit\": \"\",\n \"Value\": 0\n }\n ],\n \"ServiceDetail\": {\n \"AppID\": 250015922,\n \"CreateUIN\": \"1511340626\",\n \"InstanceKey\": \"apm-eDyXpD6CD\",\n \"InstanceName\": \"\",\n \"Region\": \"ap-guangzhou\",\n \"ServiceDescription\": \"\",\n \"ServiceID\": \"svc-ELHkoErzzc\",\n \"ServiceName\": \"java-order-service\",\n \"Tags\": []\n },\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n },\n {\n \"Key\": \"color\",\n \"Value\": \"red\"\n }\n ]\n }\n ],\n \"TotalCount\": 1,\n \"WarningCount\": 0,\n \"WarningErrorCount\": 1\n }\n}",
|
40
|
+
"title": "成功获取APM应用指标"
|
41
|
+
}
|
42
|
+
],
|
35
43
|
"DescribeGeneralApmApplicationConfig": [
|
36
44
|
{
|
37
45
|
"document": "查询指定业务系统下应用的配置信息",
|