Skip to content

Commit 5e3914c

Browse files
release 3.0.1394.1
1 parent 7c4a3b2 commit 5e3914c

File tree

143 files changed

+27102
-2805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+27102
-2805
lines changed

SERVICE_CHANGELOG.md

Lines changed: 290 additions & 170 deletions
Large diffs are not rendered by default.

products.md

Lines changed: 21 additions & 21 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exclude = ["tccli/examples"]
77

88
[project]
99
name = "tccli"
10-
version = "3.0.1393.1"
10+
version = "3.0.1394.1"
1111
authors = [
1212
{ name="tencentcloudapi", email="[email protected]" },
1313
]
@@ -24,7 +24,7 @@ classifiers = [
2424
dependencies = [
2525
"jmespath==0.10.0",
2626
"six==1.16.0",
27-
"tencentcloud-sdk-python>=3.0.1393",
27+
"tencentcloud-sdk-python>=3.0.1394",
2828
]
2929

3030
[project.urls]

tccli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.0.1393.1'
1+
__version__ = '3.0.1394.1'
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
**Example 1: 成功获取APM应用指标**
2+
3+
获取APM应用指标
4+
5+
Input:
6+
7+
```
8+
tccli apm DescribeApmServiceMetric --cli-unfold-argument \
9+
--InstanceId apm-eDyXpD6CD
10+
```
11+
12+
Output:
13+
```
14+
{
15+
"Response": {
16+
"ApplicationCount": 1,
17+
"ErrorCount": 1,
18+
"Page": 0,
19+
"PageSize": 0,
20+
"RequestId": "84d35deb-232e-463e-b2ac-fe49338707a2",
21+
"ServiceMetricList": [
22+
{
23+
"Fields": [
24+
{
25+
"CompareVal": "0.9%",
26+
"CompareVals": null,
27+
"Key": "duration_avg",
28+
"LastPeriodValue": [
29+
{
30+
"Key": "CompareByYesterday",
31+
"Value": 681.7527368527665
32+
}
33+
],
34+
"NameCN": "平均响应时间",
35+
"NameEN": "Average Response Time",
36+
"Unit": "ms",
37+
"Value": 688
38+
},
39+
{
40+
"CompareVal": "-1.7%",
41+
"CompareVals": null,
42+
"Key": "qps",
43+
"LastPeriodValue": [
44+
{
45+
"Key": "CompareByYesterday",
46+
"Value": 0.40692708333333333
47+
}
48+
],
49+
"NameCN": "平均请求量",
50+
"NameEN": "Average RPS",
51+
"Unit": "qps",
52+
"Value": 0.4
53+
},
54+
{
55+
"CompareVal": "-0.3%",
56+
"CompareVals": null,
57+
"Key": "request_count_sum",
58+
"LastPeriodValue": [
59+
{
60+
"Key": "CompareByYesterday",
61+
"Value": 70317
62+
}
63+
],
64+
"NameCN": "总请求数",
65+
"NameEN": "Total Requests",
66+
"Unit": "",
67+
"Value": 70129
68+
},
69+
{
70+
"CompareVal": "0.0%",
71+
"CompareVals": null,
72+
"Key": "error_req_rate_avg",
73+
"LastPeriodValue": [
74+
{
75+
"Key": "CompareByYesterday",
76+
"Value": 62.81837962370408
77+
}
78+
],
79+
"NameCN": "平均错误率",
80+
"NameEN": "Average Error Rate",
81+
"Unit": "%",
82+
"Value": 62.8
83+
},
84+
{
85+
"CompareVal": "-4.4%",
86+
"CompareVals": null,
87+
"Key": "adpdex",
88+
"LastPeriodValue": [
89+
{
90+
"Key": "CompareByYesterday",
91+
"Value": 0.7325824480566577
92+
}
93+
],
94+
"NameCN": "平均 Apdex",
95+
"NameEN": "Average Apdex",
96+
"Unit": "",
97+
"Value": 0.7
98+
},
99+
{
100+
"CompareVal": "0",
101+
"CompareVals": null,
102+
"Key": "alarm_count",
103+
"LastPeriodValue": [
104+
{
105+
"Key": "CompareByYesterday",
106+
"Value": 0
107+
}
108+
],
109+
"NameCN": "告警数",
110+
"NameEN": "Alarm Count",
111+
"Unit": "次",
112+
"Value": 0
113+
},
114+
{
115+
"CompareVal": "-0.4%",
116+
"CompareVals": null,
117+
"Key": "error_request_count",
118+
"LastPeriodValue": [
119+
{
120+
"Key": "CompareByYesterday",
121+
"Value": 44172
122+
}
123+
],
124+
"NameCN": "异常数量",
125+
"NameEN": "Error Count",
126+
"Unit": "个",
127+
"Value": 44008
128+
},
129+
{
130+
"CompareVal": "",
131+
"CompareVals": null,
132+
"Key": "instance_count",
133+
"LastPeriodValue": null,
134+
"NameCN": "",
135+
"NameEN": "",
136+
"Unit": "",
137+
"Value": 1
138+
},
139+
{
140+
"CompareVal": "",
141+
"CompareVals": null,
142+
"Key": "critical_vulnerability_count",
143+
"LastPeriodValue": null,
144+
"NameCN": "",
145+
"NameEN": "",
146+
"Unit": "",
147+
"Value": 0
148+
},
149+
{
150+
"CompareVal": "",
151+
"CompareVals": null,
152+
"Key": "important_vulnerability_count",
153+
"LastPeriodValue": null,
154+
"NameCN": "",
155+
"NameEN": "",
156+
"Unit": "",
157+
"Value": 0
158+
},
159+
{
160+
"CompareVal": "",
161+
"CompareVals": null,
162+
"Key": "vulnerability_count",
163+
"LastPeriodValue": null,
164+
"NameCN": "",
165+
"NameEN": "",
166+
"Unit": "",
167+
"Value": 0
168+
}
169+
],
170+
"ServiceDetail": {
171+
"AppID": 250015922,
172+
"CreateUIN": "1511340626",
173+
"InstanceKey": "apm-eDyXpD6CD",
174+
"InstanceName": "",
175+
"Region": "ap-guangzhou",
176+
"ServiceDescription": "",
177+
"ServiceID": "svc-ELHkoErzzc",
178+
"ServiceName": "java-order-service",
179+
"Tags": []
180+
},
181+
"Tags": [
182+
{
183+
"Key": "service.name",
184+
"Value": "java-order-service"
185+
},
186+
{
187+
"Key": "color",
188+
"Value": "red"
189+
}
190+
]
191+
}
192+
],
193+
"TotalCount": 1,
194+
"WarningCount": 0,
195+
"WarningErrorCount": 1
196+
}
197+
}
198+
```
199+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
**Example 1: 创建预算项目**
2+
3+
4+
5+
Input:
6+
7+
```
8+
tccli billing CreateBudget --cli-unfold-argument \
9+
--BudgetName testapi111 \
10+
--CycleType DAY \
11+
--PeriodBegin 2025-01-01 \
12+
--PeriodEnd 2025-12-01 \
13+
--PlanType FIX \
14+
--BudgetQuota 1000 \
15+
--BillType BILL \
16+
--FeeType COST \
17+
--WarnJson.0.WarnType ACTUAL \
18+
--WarnJson.0.CalType PERCENTAGE \
19+
--WarnJson.0.ThresholdValue 100 \
20+
--BudgetNote 使用api创建预算信息 \
21+
--DimensionsRange.Business None \
22+
--DimensionsRange.PayMode None \
23+
--DimensionsRange.ProductCodes None \
24+
--DimensionsRange.ComponentCodes None \
25+
--DimensionsRange.ZoneIds None \
26+
--DimensionsRange.RegionIds None \
27+
--DimensionsRange.ProjectIds None \
28+
--DimensionsRange.ActionTypes None \
29+
--DimensionsRange.ConsumptionTypes None \
30+
--DimensionsRange.Tags.0.TagKey None \
31+
--DimensionsRange.Tags.0.TagValue None \
32+
--DimensionsRange.PayerUins None \
33+
--DimensionsRange.OwnerUins None \
34+
--DimensionsRange.TreeNodeUniqKeys None \
35+
--WaveThresholdJson.0.WarnType None \
36+
--WaveThresholdJson.0.Threshold None \
37+
--WaveThresholdJson.0.MetaType None \
38+
--WaveThresholdJson.0.PeriodType None
39+
```
40+
41+
Output:
42+
```
43+
{
44+
"Response": {
45+
"Code": 0,
46+
"Data": {
47+
"BudgetId": "1963509727611474000",
48+
"UpdateTime": "2025-09-04 15:49:33"
49+
},
50+
"Message": "create success",
51+
"RequestId": "922dcc4b-55b2-401d-8eb8-9160117d07d4"
52+
}
53+
}
54+
```
55+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**Example 1: 删除预算项目**
2+
3+
4+
5+
Input:
6+
7+
```
8+
tccli billing DeleteBudget --cli-unfold-argument \
9+
--BudgetIds 1960309822252269569
10+
```
11+
12+
Output:
13+
```
14+
{
15+
"Response": {
16+
"Code": 0,
17+
"Data": [
18+
"1960309822252269569"
19+
],
20+
"Message": "delete success",
21+
"RequestId": "eb7161c4-4025-466d-834f-1707d6933459"
22+
}
23+
}
24+
```
25+

0 commit comments

Comments
 (0)