tccli 3.0.967.1__py2.py3-none-any.whl → 3.0.968.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdwpg/v20201230/CreateInstanceByApi.md +40 -0
  3. tccli/examples/cdwpg/v20201230/DestroyInstanceByApi.md +22 -0
  4. tccli/examples/dbbrain/v20210527/DescribeIndexRecommendAggregationSlowLogs.md +34 -0
  5. tccli/examples/dbbrain/v20210527/DescribeIndexRecommendInfo.md +57 -0
  6. tccli/examples/dbbrain/v20210527/DescribeRedisProcessList.md +46 -0
  7. tccli/examples/trtc/v20190722/DescribeTRTCMarketQualityData.md +2 -2
  8. tccli/examples/trtc/v20190722/DescribeTRTCMarketScaleData.md +27 -45
  9. tccli/examples/trtc/v20190722/DescribeTRTCRealTimeQualityData.md +202 -6
  10. tccli/examples/trtc/v20190722/DescribeTRTCRealTimeScaleData.md +214 -7
  11. tccli/services/__init__.py +3 -0
  12. tccli/services/cdwpg/__init__.py +4 -0
  13. tccli/services/cdwpg/cdwpg_client.py +247 -0
  14. tccli/services/cdwpg/v20201230/api.json +354 -0
  15. tccli/services/cdwpg/v20201230/examples.json +21 -0
  16. tccli/services/dbbrain/dbbrain_client.py +171 -12
  17. tccli/services/dbbrain/v20210527/api.json +614 -0
  18. tccli/services/dbbrain/v20210527/examples.json +24 -0
  19. tccli/services/teo/v20220901/api.json +114 -0
  20. tccli/services/trtc/v20190722/api.json +1 -1
  21. tccli/services/trtc/v20190722/examples.json +8 -8
  22. {tccli-3.0.967.1.dist-info → tccli-3.0.968.1.dist-info}/METADATA +2 -2
  23. {tccli-3.0.967.1.dist-info → tccli-3.0.968.1.dist-info}/RECORD +26 -17
  24. {tccli-3.0.967.1.dist-info → tccli-3.0.968.1.dist-info}/WHEEL +0 -0
  25. {tccli-3.0.967.1.dist-info → tccli-3.0.968.1.dist-info}/entry_points.txt +0 -0
  26. {tccli-3.0.967.1.dist-info → tccli-3.0.968.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.967.1'
1
+ __version__ = '3.0.968.1'
@@ -0,0 +1,40 @@
1
+ **Example 1: 创建集群**
2
+
3
+ 创建集群
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli cdwpg CreateInstanceByApi --cli-unfold-argument \
9
+ --InstanceName abc \
10
+ --Zone abc \
11
+ --UserVPCId abc \
12
+ --UserSubnetId abc \
13
+ --ChargeProperties.PayMode 0 \
14
+ --ChargeProperties.RenewFlag 0 \
15
+ --ChargeProperties.TimeSpan 0 \
16
+ --ChargeProperties.TimeUnit abc \
17
+ --ChargeProperties.ChargeType abc \
18
+ --AdminPassword abc \
19
+ --Tags.TagKey abc \
20
+ --Tags.TagValue abc \
21
+ --Resources.0.SpecName abc \
22
+ --Resources.0.Count 0 \
23
+ --Resources.0.DiskSpec.DiskType abc \
24
+ --Resources.0.DiskSpec.DiskSize 0 \
25
+ --Resources.0.DiskSpec.DiskCount 0 \
26
+ --Resources.0.Type abc
27
+ ```
28
+
29
+ Output:
30
+ ```
31
+ {
32
+ "Response": {
33
+ "FlowId": "abc",
34
+ "InstanceId": "abc",
35
+ "ErrorMsg": "abc",
36
+ "RequestId": "abc"
37
+ }
38
+ }
39
+ ```
40
+
@@ -0,0 +1,22 @@
1
+ **Example 1: 销毁集群**
2
+
3
+ 销毁集群
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli cdwpg DestroyInstanceByApi --cli-unfold-argument \
9
+ --InstanceId abc
10
+ ```
11
+
12
+ Output:
13
+ ```
14
+ {
15
+ "Response": {
16
+ "FlowId": "abc",
17
+ "ErrorMsg": "abc",
18
+ "RequestId": "abc"
19
+ }
20
+ }
21
+ ```
22
+
@@ -0,0 +1,34 @@
1
+ **Example 1: 查询实例慢查询聚合结果**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli dbbrain DescribeIndexRecommendAggregationSlowLogs --cli-unfold-argument \
9
+ --Product abc \
10
+ --InstanceId abc \
11
+ --Db abc \
12
+ --Collection abc \
13
+ --Signs abc
14
+ ```
15
+
16
+ Output:
17
+ ```
18
+ {
19
+ "Response": {
20
+ "RequestId": "asdfaskldfanhasdfsd",
21
+ "Aggregation": {
22
+ "AvgExecTime": 8205,
23
+ "AvgDocsExamined": 2765962,
24
+ "SlowLogCount": 0,
25
+ "SlowLogs": [
26
+ "{\"t\":{\"$date\":\"2023-09-18T10:57:32.072+08:00\"},\"s\":\"I\", \"c\":\"COMMAND\", \"id\":51803, \"ctx\":\"conn7221917\",\"msg\":\"Slow query\",\"attr\":{\"type\":\"command\",\"ns\":\"welabel.ground_truth_data\",\"appName\":\"MongoDB Compass\",\"command\":{\"aggregate\":\"ground_truth_data\",\"pipeline\":[{\"$match\":{\"is_skip\":{\"$ne\":true}}},{\"$project\":{\"labels\":{\"$filter\":{\"input\":\"$comments.data.error_labels\",\"as\":\"com\",\"cond\":{\"$eq\":[\"$$com.questionType\",\"single\"]}}},\"ground_truth_id\":1}},{\"$unwind\":{\"path\":\"$labels\"}},{\"$match\":{\"labels.relationshipType\":\"multi_image_group\"}},{\"$limit\":100000},{\"$group\":{\"_id\":{\"uid\":\"$labels.questionId\",\"element_id\":\"$labels.elementId\",\"gt_id\":\"$ground_truth_id\"}}},{\"$limit\":10}],\"allowDiskUse\":true,\"cursor\":{},\"maxTimeMS\":60000,\"lsid\":{\"id\":{\"$uuid\":\"dcda39f2-cb81-47be-ba04-b0078cf6cc7f\"}},\"$clusterTime\":{\"clusterTime\":{\"$timestamp\":{\"t\":1695005847,\"i\":9}},\"signature\":{\"hash\":{\"$binary\":{\"base64\":\"04MsomRxChDbiOVh1kjTHEsL644=\",\"subType\":\"0\"}},\"keyId\":7218831488945487874}},\"$db\":\"welabel\"},\"planSummary\":\"COLLSCAN\",\"numYields\":1067,\"queryHash\":\"A480F99A\",\"planCacheKey\":\"E2805889\",\"ok\":0,\"errMsg\":\"Error in $cursor stage :: caused by :: operation was interrupted\",\"errName\":\"Interrupted\",\"errCode\":11601,\"reslen\":276,\"locks\":{\"ReplicationStateTransition\":{\"acquireCount\":{\"w\":1144}},\"Global\":{\"acquireCount\":{\"r\":1144}},\"Database\":{\"acquireCount\":{\"r\":1144}},\"Collection\":{\"acquireCount\":{\"r\":1144}},\"Mutex\":{\"acquireCount\":{\"r\":77}}},\"protocol\":\"op_msg\",\"durationMillis\":3663}}",
27
+ "{\"t\":{\"$date\":\"2023-09-18T10:57:27.730+08:00\"},\"s\":\"I\", \"c\":\"COMMAND\", \"id\":51803, \"ctx\":\"conn7221917\",\"msg\":\"Slow query\",\"attr\":{\"type\":\"command\",\"ns\":\"welabel.ground_truth_data\",\"appName\":\"MongoDB Compass\",\"command\":{\"aggregate\":\"ground_truth_data\",\"pipeline\":[{\"$match\":{\"is_skip\":{\"$ne\":true}}},{\"$unwind\":{\"path\":\"$comments\"}},{\"$project\":{\"labels\":{\"$filter\":{\"input\":\"$comments.data.error_labels\",\"as\":\"com\",\"cond\":{\"$eq\":[\"$$com.questionType\",\"single\"]}}},\"ground_truth_id\":1}},{\"$unwind\":{\"path\":\"$labels\"}},{\"$match\":{\"labels.relationshipType\":\"multi_image_group\"}},{\"$limit\":100000},{\"$group\":{\"_id\":{\"uid\":\"$labels.questionId\",\"element_id\":\"$labels.elementId\",\"gt_id\":\"$ground_truth_id\"}}},{\"$limit\":10}],\"allowDiskUse\":true,\"cursor\":{},\"maxTimeMS\":60000,\"lsid\":{\"id\":{\"$uuid\":\"8532ddbf-2f1c-4bdd-a4f0-af0217f42607\"}},\"$clusterTime\":{\"clusterTime\":{\"$timestamp\":{\"t\":1695005524,\"i\":8}},\"signature\":{\"hash\":{\"$binary\":{\"base64\":\"60J0bCCsS5xTPDOE2yE4yWuxNr0=\",\"subType\":\"0\"}},\"keyId\":7218831488945487874}},\"$db\":\"welabel\"},\"planSummary\":\"COLLSCAN\",\"numYields\":2887,\"queryHash\":\"A1933E73\",\"planCacheKey\":\"77FB924F\",\"ok\":0,\"errMsg\":\"operation was interrupted\",\"errName\":\"Interrupted\",\"errCode\":11601,\"reslen\":237,\"locks\":{\"ReplicationStateTransition\":{\"acquireCount\":{\"w\":3004}},\"Global\":{\"acquireCount\":{\"r\":3004}},\"Database\":{\"acquireCount\":{\"r\":3004}},\"Collection\":{\"acquireCount\":{\"r\":3004}},\"Mutex\":{\"acquireCount\":{\"r\":117}}},\"protocol\":\"op_msg\",\"durationMillis\":10483}}"
28
+ ],
29
+ "SortCount": 0
30
+ }
31
+ }
32
+ }
33
+ ```
34
+
@@ -0,0 +1,57 @@
1
+ **Example 1: mongodb索引推荐**
2
+
3
+ 查询mongodb数据比较慢的时候,可以通过该接口进行获取推荐的索引列表
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli dbbrain DescribeIndexRecommendInfo --cli-unfold-argument \
9
+ --Product mongodb \
10
+ --InstanceId cmog-ahshjbdwe
11
+ ```
12
+
13
+ Output:
14
+ ```
15
+ {
16
+ "Response": {
17
+ "CollectionNum": 0,
18
+ "IndexNum": 0,
19
+ "Items": [
20
+ {
21
+ "ClusterId": "abc",
22
+ "Collection": "abc",
23
+ "Db": "abc",
24
+ "Level": 0,
25
+ "Score": 0,
26
+ "IndexesToBuild": [
27
+ {
28
+ "Id": 0,
29
+ "IndexCommand": "abc",
30
+ "IndexStr": "abc",
31
+ "Level": 0,
32
+ "Score": 0,
33
+ "Signs": [
34
+ "abc"
35
+ ],
36
+ "Status": 0
37
+ }
38
+ ],
39
+ "IndexesToDrop": [
40
+ {
41
+ "IndexStr": "abc",
42
+ "Score": 0,
43
+ "Reason": "abc",
44
+ "IndexCommand": "abc",
45
+ "IndexName": "abc"
46
+ }
47
+ ]
48
+ }
49
+ ],
50
+ "Level": 0,
51
+ "Optimized": 0,
52
+ "OptimizedCount": 0,
53
+ "RequestId": "abc"
54
+ }
55
+ }
56
+ ```
57
+
@@ -0,0 +1,46 @@
1
+ **Example 1: 获取 Redis 实例 Proxy 实时会话详情列表**
2
+
3
+ 指定 Offset 分页获取实例 Proxy 实时会话详情列表。
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli dbbrain DescribeRedisProcessList --cli-unfold-argument \
9
+ --InstanceId crs-qylqks3c \
10
+ --Product redis \
11
+ --Offset 50 \
12
+ --Limit 50
13
+ ```
14
+
15
+ Output:
16
+ ```
17
+ {
18
+ "Response": {
19
+ "RequestId": "8108c1c0-bbcc-11ec-adb9-eb9c1358e02b",
20
+ "ProxyCount": 198,
21
+ "Processes": [
22
+ {
23
+ "Address": "100.12.168.216:33064",
24
+ "Age": 11788,
25
+ "FileDescriptor": 3,
26
+ "Id": -522451396107420,
27
+ "Idle": 0,
28
+ "LastCommand": "client",
29
+ "Name": "",
30
+ "ProxyId": "49c4c738a3398cb0a41914396e24db2dee29d1e3"
31
+ },
32
+ {
33
+ "Address": "100.1.168.115:36938",
34
+ "Age": 47,
35
+ "FileDescriptor": 7,
36
+ "Id": -803926372818076,
37
+ "Idle": 47,
38
+ "LastCommand": "command",
39
+ "Name": "",
40
+ "ProxyId": "49c4c538a3397cb0a41914796e24db3dee29d1e3"
41
+ }
42
+ ]
43
+ }
44
+ }
45
+ ```
46
+
@@ -1,12 +1,12 @@
1
1
  **Example 1: DescribeTRTCMarketQualityData**
2
2
 
3
- 查询TRTC数据大盘质量数据
3
+ 查询TRTC数据大盘质量相关数据
4
4
 
5
5
  Input:
6
6
 
7
7
  ```
8
8
  tccli trtc DescribeTRTCMarketQualityData --cli-unfold-argument \
9
- --SdkAppId abc \
9
+ --SdkAppId 1400xxxxxx \
10
10
  --StartTime 2020-09-22 \
11
11
  --EndTime 2020-09-22 \
12
12
  --Period d
@@ -6,10 +6,10 @@ Input:
6
6
 
7
7
  ```
8
8
  tccli trtc DescribeTRTCMarketScaleData --cli-unfold-argument \
9
- --SdkAppId abc \
10
- --StartTime 2020-09-22 \
11
- --EndTime 2020-09-22 \
12
- --Period abc
9
+ --SdkAppId 1400xxxxxx \
10
+ --StartTime 2023-09-20 \
11
+ --EndTime 2023-09-23 \
12
+ --Period d
13
13
  ```
14
14
 
15
15
  Output:
@@ -22,64 +22,46 @@ Output:
22
22
  {
23
23
  "Columns": [
24
24
  "time",
25
+ "peakCurrentUsers",
26
+ "peakCurrentChannels",
25
27
  "userCount",
26
28
  "roomCount"
27
29
  ],
28
30
  "Values": [
29
31
  {
30
32
  "RowValue": [
31
- 1692935050,
32
- 1,
33
- 1
33
+ 1695139200,
34
+ 55,
35
+ 37,
36
+ 784,
37
+ 572
34
38
  ]
35
39
  },
36
40
  {
37
41
  "RowValue": [
38
- 1692935060,
39
- 1,
40
- 1
42
+ 1695225600,
43
+ 62,
44
+ 46,
45
+ 848,
46
+ 614
41
47
  ]
42
48
  },
43
49
  {
44
50
  "RowValue": [
45
- 1692935070,
46
- 1,
47
- 1
51
+ 1695312000,
52
+ 47,
53
+ 45,
54
+ 950,
55
+ 695
48
56
  ]
49
57
  },
50
58
  {
51
59
  "RowValue": [
52
- 1692935080,
53
- 1,
54
- 1
55
- ]
56
- },
57
- {
58
- "RowValue": [
59
- 1692935090,
60
- 1,
61
- 1
62
- ]
63
- },
64
- {
65
- "RowValue": [
66
- 1692935100,
67
- 1,
68
- 1
69
- ]
70
- },
71
- {
72
- "RowValue": [
73
- 1692935110,
74
- 1,
75
- 1
76
- ]
77
- },
78
- {
79
- "RowValue": [
80
- 1692935120,
81
- 1,
82
- 1
60
+ 1695398400,
61
+ 36,
62
+ 35,
63
+ 378,
64
+ 313
83
65
  ]
84
66
  }
85
67
  ]
@@ -87,7 +69,7 @@ Output:
87
69
  ],
88
70
  "Total": 1
89
71
  },
90
- "RequestId": "4mry45x5sslfsee3vfl5n99oz4u9u-8w"
72
+ "RequestId": "kp38ibciayx-elqqjdfrf7umkvpbvowt"
91
73
  }
92
74
  }
93
75
  ```
@@ -6,9 +6,9 @@ Input:
6
6
 
7
7
  ```
8
8
  tccli trtc DescribeTRTCRealTimeQualityData --cli-unfold-argument \
9
- --StartTime 1665747036 \
10
- --EndTime 1665747284 \
11
- --SdkAppId 1400188366
9
+ --StartTime 1695711343 \
10
+ --EndTime 1695711643 \
11
+ --SdkAppId 1400xxxxxx
12
12
  ```
13
13
 
14
14
  Output:
@@ -27,14 +27,210 @@ Output:
27
27
  "Values": [
28
28
  {
29
29
  "RowValue": [
30
- 1692935050,
30
+ 1695711350,
31
31
  0,
32
32
  0
33
33
  ]
34
34
  },
35
35
  {
36
36
  "RowValue": [
37
- 1692935060,
37
+ 1695711360,
38
+ 0,
39
+ 0
40
+ ]
41
+ },
42
+ {
43
+ "RowValue": [
44
+ 1695711370,
45
+ 0,
46
+ 0
47
+ ]
48
+ },
49
+ {
50
+ "RowValue": [
51
+ 1695711380,
52
+ 0,
53
+ 0
54
+ ]
55
+ },
56
+ {
57
+ "RowValue": [
58
+ 1695711390,
59
+ 0,
60
+ 0
61
+ ]
62
+ },
63
+ {
64
+ "RowValue": [
65
+ 1695711400,
66
+ 0,
67
+ 0
68
+ ]
69
+ },
70
+ {
71
+ "RowValue": [
72
+ 1695711410,
73
+ 0,
74
+ 0
75
+ ]
76
+ },
77
+ {
78
+ "RowValue": [
79
+ 1695711420,
80
+ 0,
81
+ 0
82
+ ]
83
+ },
84
+ {
85
+ "RowValue": [
86
+ 1695711430,
87
+ 0,
88
+ 0
89
+ ]
90
+ },
91
+ {
92
+ "RowValue": [
93
+ 1695711440,
94
+ 0,
95
+ 0
96
+ ]
97
+ },
98
+ {
99
+ "RowValue": [
100
+ 1695711450,
101
+ 0,
102
+ 0
103
+ ]
104
+ },
105
+ {
106
+ "RowValue": [
107
+ 1695711460,
108
+ 0,
109
+ 0
110
+ ]
111
+ },
112
+ {
113
+ "RowValue": [
114
+ 1695711470,
115
+ 0,
116
+ 0
117
+ ]
118
+ },
119
+ {
120
+ "RowValue": [
121
+ 1695711480,
122
+ 0,
123
+ 0
124
+ ]
125
+ },
126
+ {
127
+ "RowValue": [
128
+ 1695711490,
129
+ 0,
130
+ 4
131
+ ]
132
+ },
133
+ {
134
+ "RowValue": [
135
+ 1695711500,
136
+ 0,
137
+ 0
138
+ ]
139
+ },
140
+ {
141
+ "RowValue": [
142
+ 1695711510,
143
+ 0,
144
+ 0
145
+ ]
146
+ },
147
+ {
148
+ "RowValue": [
149
+ 1695711520,
150
+ 0,
151
+ 0
152
+ ]
153
+ },
154
+ {
155
+ "RowValue": [
156
+ 1695711530,
157
+ 0,
158
+ 0
159
+ ]
160
+ },
161
+ {
162
+ "RowValue": [
163
+ 1695711540,
164
+ 0,
165
+ 0
166
+ ]
167
+ },
168
+ {
169
+ "RowValue": [
170
+ 1695711550,
171
+ 0,
172
+ 0
173
+ ]
174
+ },
175
+ {
176
+ "RowValue": [
177
+ 1695711560,
178
+ 0,
179
+ 0
180
+ ]
181
+ },
182
+ {
183
+ "RowValue": [
184
+ 1695711570,
185
+ 0,
186
+ 0
187
+ ]
188
+ },
189
+ {
190
+ "RowValue": [
191
+ 1695711580,
192
+ 0,
193
+ 0
194
+ ]
195
+ },
196
+ {
197
+ "RowValue": [
198
+ 1695711590,
199
+ 0,
200
+ 0
201
+ ]
202
+ },
203
+ {
204
+ "RowValue": [
205
+ 1695711600,
206
+ 0,
207
+ 0
208
+ ]
209
+ },
210
+ {
211
+ "RowValue": [
212
+ 1695711610,
213
+ 0,
214
+ 0
215
+ ]
216
+ },
217
+ {
218
+ "RowValue": [
219
+ 1695711620,
220
+ 0,
221
+ 0
222
+ ]
223
+ },
224
+ {
225
+ "RowValue": [
226
+ 1695711630,
227
+ 0,
228
+ 0
229
+ ]
230
+ },
231
+ {
232
+ "RowValue": [
233
+ 1695711640,
38
234
  0,
39
235
  0
40
236
  ]
@@ -44,7 +240,7 @@ Output:
44
240
  ],
45
241
  "Total": 1
46
242
  },
47
- "RequestId": "4mry45x5sslfsee3vfl5n99oz4u9u-8w"
243
+ "RequestId": "75fegcba14mffq3wl2zz578ml3e-i1a3"
48
244
  }
49
245
  }
50
246
  ```