tccli 3.0.1350.1__py2.py3-none-any.whl → 3.0.1352.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.
Files changed (61) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ai3d/v20250513/api.json +1 -1
  3. tccli/services/ai3d/v20250513/examples.json +1 -1
  4. tccli/services/apm/v20210622/api.json +7 -9
  5. tccli/services/ccc/v20200210/api.json +1 -1
  6. tccli/services/cdb/v20170320/api.json +2 -2
  7. tccli/services/cdn/v20180606/api.json +1 -1
  8. tccli/services/cdwch/v20200915/api.json +7 -7
  9. tccli/services/cdwch/v20200915/examples.json +2 -2
  10. tccli/services/ctem/ctem_client.py +371 -0
  11. tccli/services/ctem/v20231128/api.json +2111 -571
  12. tccli/services/ctem/v20231128/examples.json +56 -0
  13. tccli/services/cwp/v20180228/api.json +11 -1
  14. tccli/services/cynosdb/v20190107/api.json +28 -0
  15. tccli/services/cynosdb/v20190107/examples.json +4 -4
  16. tccli/services/ess/ess_client.py +114 -8
  17. tccli/services/ess/v20201111/api.json +212 -0
  18. tccli/services/ess/v20201111/examples.json +16 -0
  19. tccli/services/gme/v20180711/api.json +40 -0
  20. tccli/services/iss/v20230517/api.json +9 -9
  21. tccli/services/kms/v20190118/api.json +188 -0
  22. tccli/services/live/v20180801/api.json +299 -3
  23. tccli/services/live/v20180801/examples.json +6 -6
  24. tccli/services/lke/lke_client.py +12 -436
  25. tccli/services/lke/v20231130/api.json +25 -1065
  26. tccli/services/lke/v20231130/examples.json +0 -64
  27. tccli/services/lkeap/v20240522/api.json +94 -17
  28. tccli/services/lkeap/v20240522/examples.json +2 -2
  29. tccli/services/mongodb/v20190725/api.json +2 -2
  30. tccli/services/mongodb/v20190725/examples.json +1 -1
  31. tccli/services/monitor/monitor_client.py +53 -0
  32. tccli/services/monitor/v20180724/api.json +38 -24
  33. tccli/services/monitor/v20180724/examples.json +2 -2
  34. tccli/services/monitor/v20230616/api.json +58 -195
  35. tccli/services/monitor/v20230616/examples.json +4 -10
  36. tccli/services/mps/mps_client.py +53 -0
  37. tccli/services/mps/v20190612/api.json +586 -285
  38. tccli/services/mps/v20190612/examples.json +18 -4
  39. tccli/services/ocr/v20181119/api.json +24 -4
  40. tccli/services/ocr/v20181119/examples.json +1 -1
  41. tccli/services/omics/v20221128/api.json +9 -0
  42. tccli/services/pts/v20210728/api.json +1 -1
  43. tccli/services/redis/v20180412/api.json +24 -5
  44. tccli/services/redis/v20180412/examples.json +1 -1
  45. tccli/services/scf/v20180416/api.json +3 -0
  46. tccli/services/ssl/v20191205/api.json +31 -1
  47. tccli/services/teo/teo_client.py +777 -35
  48. tccli/services/teo/v20220901/api.json +1026 -3
  49. tccli/services/teo/v20220901/examples.json +154 -0
  50. tccli/services/tione/v20211111/api.json +9 -0
  51. tccli/services/tke/v20180525/api.json +2 -2
  52. tccli/services/tse/tse_client.py +80 -27
  53. tccli/services/tse/v20201207/api.json +193 -0
  54. tccli/services/tse/v20201207/examples.json +8 -0
  55. tccli/services/vod/v20180717/api.json +60 -60
  56. tccli/services/vod/v20180717/examples.json +20 -20
  57. {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/METADATA +2 -2
  58. {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/RECORD +61 -61
  59. {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/WHEEL +0 -0
  60. {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/entry_points.txt +0 -0
  61. {tccli-3.0.1350.1.dist-info → tccli-3.0.1352.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "actions": {
3
- "GetMonitorData": {
4
- "document": "获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。\n传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。\n接口调用限制:单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。\n若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。\n\n>?\n>- 2022年9月1日起,云监控开始对GetMonitorData接口计费。每个主账号每月可获得100万次免费请求额度,超过免费额度后如需继续调用接口需要开通 [API请求按量付费](https://buy.cloud.tencent.com/APIRequestBuy)。计费规则可查看[API计费文档](https://cloud.tencent.com/document/product/248/77914)。",
5
- "input": "GetMonitorDataRequest",
6
- "name": "拉取指标监控数据",
7
- "output": "GetMonitorDataResponse",
3
+ "DescribeAlarmNotifyHistories": {
4
+ "document": "按需查询告警的通知历史",
5
+ "input": "DescribeAlarmNotifyHistoriesRequest",
6
+ "name": "查询告警通知历史",
7
+ "output": "DescribeAlarmNotifyHistoriesResponse",
8
8
  "status": "online"
9
9
  }
10
10
  },
@@ -15,226 +15,78 @@
15
15
  "serviceShortName": "monitor"
16
16
  },
17
17
  "objects": {
18
- "DataPoint": {
19
- "document": "监控数据点",
18
+ "DescribeAlarmNotifyHistoriesRequest": {
19
+ "document": "DescribeAlarmNotifyHistories请求参数结构体",
20
20
  "members": [
21
21
  {
22
22
  "disabled": false,
23
- "document": "实例对象维度组合",
24
- "example": "{\"Name\":\"instanceId\", \"Value\":\"ins-jiyyjnea\"}",
25
- "member": "Dimension",
26
- "name": "Dimensions",
27
- "output_required": true,
28
- "type": "list",
29
- "value_allowed_null": false
30
- },
31
- {
32
- "disabled": false,
33
- "document": "时间戳数组,表示那些时间点有数据,缺失的时间戳,没有数据点,可以理解为掉点了",
34
- "example": "[1736784000, 1736784060]",
35
- "member": "float",
36
- "name": "Timestamps",
37
- "output_required": true,
38
- "type": "list",
39
- "value_allowed_null": false
40
- },
41
- {
42
- "disabled": false,
43
- "document": "监控值数组,该数组和Timestamps一一对应",
44
- "example": "[10, 5.8, 7000.54]",
45
- "member": "float",
46
- "name": "Values",
47
- "output_required": true,
48
- "type": "list",
49
- "value_allowed_null": false
50
- }
51
- ],
52
- "usage": "out"
53
- },
54
- "Dimension": {
55
- "document": "实例对象的维度组合",
56
- "members": [
57
- {
58
- "disabled": false,
59
- "document": "实例维度名称\n注意:此字段可能返回 null,表示取不到有效值。",
60
- "example": "instanceId",
23
+ "document": "监控类型",
24
+ "example": "MT_PROME",
61
25
  "member": "string",
62
- "name": "Name",
63
- "output_required": false,
26
+ "name": "MonitorType",
64
27
  "required": true,
65
- "type": "string",
66
- "value_allowed_null": true
67
- },
68
- {
69
- "disabled": false,
70
- "document": "实例维度值\n注意:此字段可能返回 null,表示取不到有效值。",
71
- "example": "ins-123",
72
- "member": "string",
73
- "name": "Value",
74
- "output_required": false,
75
- "required": true,
76
- "type": "string",
77
- "value_allowed_null": true
78
- }
79
- ],
80
- "usage": "both"
81
- },
82
- "Expr": {
83
- "document": "计算算子",
84
- "members": [
85
- {
86
- "disabled": false,
87
- "document": "算子名称",
88
- "example": "PERCENTILE",
89
- "member": "string",
90
- "name": "Function",
91
- "required": false,
92
28
  "type": "string"
93
29
  },
94
30
  {
95
31
  "disabled": false,
96
- "document": "算子入参值",
97
- "example": "99",
98
- "member": "float",
99
- "name": "N",
100
- "required": false,
101
- "type": "float"
102
- }
103
- ],
104
- "usage": "in"
105
- },
106
- "GetMonitorDataRequest": {
107
- "document": "GetMonitorData请求参数结构体",
108
- "members": [
109
- {
110
- "disabled": false,
111
- "document": "命名空间,如QCE/CVM。各个云产品的详细命名空间说明请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档",
112
- "example": "QCE/CVM",
113
- "member": "string",
114
- "name": "Namespace",
32
+ "document": "起始时间点,unix秒级时间戳",
33
+ "example": "1732801290",
34
+ "member": "int64",
35
+ "name": "QueryBaseTime",
115
36
  "required": true,
116
- "type": "string"
37
+ "type": "int"
117
38
  },
118
39
  {
119
40
  "disabled": false,
120
- "document": "指标名称,如CPUUsage,仅支持单指标拉取。各个云产品的详细指标说明请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的指标英文名即为MetricName",
121
- "example": "CPUUsage",
122
- "member": "string",
123
- "name": "MetricName",
41
+ "document": "从 QueryBaseTime 开始,需要查询往前多久的时间,单位秒",
42
+ "example": "1800",
43
+ "member": "int64",
44
+ "name": "QueryBeforeSeconds",
124
45
  "required": true,
125
- "type": "string"
46
+ "type": "int"
126
47
  },
127
48
  {
128
49
  "disabled": false,
129
- "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\"}]。各个云产品的维度请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的维度列即为维度组合的key,value为key对应的值。单请求最多支持批量拉取10个实例的监控数据。",
130
- "example": "",
131
- "member": "Instance",
132
- "name": "Instances",
50
+ "document": "分页参数",
51
+ "example": "{1,2}",
52
+ "member": "PageByNoParams",
53
+ "name": "PageParams",
133
54
  "required": true,
134
- "type": "list"
135
- },
136
- {
137
- "disabled": false,
138
- "document": "监控统计周期,如60。默认为取值为300,单位为s。每个指标支持的统计周期不一定相同,各个云产品支持的统计周期请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的统计周期列即为支持的统计周期。单请求的数据点数限制为1440个。",
139
- "example": "300",
140
- "member": "uint64",
141
- "name": "Period",
142
- "required": false,
143
- "type": "int"
55
+ "type": "object"
144
56
  },
145
57
  {
146
58
  "disabled": false,
147
- "document": "起始时间,如2018-09-22T19:51:23+08:00",
148
- "example": "2019-03-24T10:51:23+08:00",
149
- "member": "datetime_iso",
150
- "name": "StartTime",
59
+ "document": "当监控类型为 MT_QCE 时候需要填写,归属的命名空间",
60
+ "example": "qce/cvm",
61
+ "member": "string",
62
+ "name": "Namespace",
151
63
  "required": false,
152
64
  "type": "string"
153
65
  },
154
66
  {
155
67
  "disabled": false,
156
- "document": "结束时间,如2018-09-22T20:51:23+08:00,默认为当前时间。 EndTime不能小于StartTime",
157
- "example": "2019-03-24T20:51:23+08:00",
158
- "member": "datetime_iso",
159
- "name": "EndTime",
68
+ "document": "当监控类型为 MT_QCE 时候需要填写, 告警策略类型",
69
+ "example": "cvm_device",
70
+ "member": "string",
71
+ "name": "ModelName",
160
72
  "required": false,
161
73
  "type": "string"
162
74
  },
163
75
  {
164
76
  "disabled": false,
165
- "document": "计算算子",
166
- "example": "{ \"Function\": \"PECENTILE\", \"N\": 99 }",
167
- "member": "Expr",
168
- "name": "Expr",
77
+ "document": "查询某个策略的通知历史",
78
+ "example": "policy-123",
79
+ "member": "string",
80
+ "name": "PolicyId",
169
81
  "required": false,
170
- "type": "object"
82
+ "type": "string"
171
83
  }
172
84
  ],
173
85
  "type": "object"
174
86
  },
175
- "GetMonitorDataResponse": {
176
- "document": "GetMonitorData返回参数结构体",
87
+ "DescribeAlarmNotifyHistoriesResponse": {
88
+ "document": "DescribeAlarmNotifyHistories返回参数结构体",
177
89
  "members": [
178
- {
179
- "disabled": false,
180
- "document": "统计周期",
181
- "example": "300",
182
- "member": "uint64",
183
- "name": "Period",
184
- "output_required": true,
185
- "type": "int",
186
- "value_allowed_null": false
187
- },
188
- {
189
- "disabled": false,
190
- "document": "指标名",
191
- "example": "CPUUsage",
192
- "member": "string",
193
- "name": "MetricName",
194
- "output_required": true,
195
- "type": "string",
196
- "value_allowed_null": false
197
- },
198
- {
199
- "disabled": false,
200
- "document": "数据点数组",
201
- "example": "无",
202
- "member": "DataPoint",
203
- "name": "DataPoints",
204
- "output_required": true,
205
- "type": "list",
206
- "value_allowed_null": false
207
- },
208
- {
209
- "disabled": false,
210
- "document": "开始时间",
211
- "example": "2019-03-24T10:50:00+08:00",
212
- "member": "datetime_iso",
213
- "name": "StartTime",
214
- "output_required": true,
215
- "type": "string",
216
- "value_allowed_null": false
217
- },
218
- {
219
- "disabled": false,
220
- "document": "结束时间",
221
- "example": "2019-03-24T20:50:00+08:00",
222
- "member": "datetime_iso",
223
- "name": "EndTime",
224
- "output_required": true,
225
- "type": "string",
226
- "value_allowed_null": false
227
- },
228
- {
229
- "disabled": false,
230
- "document": "返回信息",
231
- "example": "无",
232
- "member": "string",
233
- "name": "Msg",
234
- "output_required": true,
235
- "type": "string",
236
- "value_allowed_null": false
237
- },
238
90
  {
239
91
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
240
92
  "member": "string",
@@ -244,18 +96,29 @@
244
96
  ],
245
97
  "type": "object"
246
98
  },
247
- "Instance": {
248
- "document": "实例维度组合数组",
99
+ "PageByNoParams": {
100
+ "document": "分页请求参数",
249
101
  "members": [
250
102
  {
251
103
  "disabled": false,
252
- "document": "实例的维度组合\n注意:此字段可能返回 null,表示取不到有效值。",
104
+ "document": "每个分页的数量是多少\n注意:此字段可能返回 null,表示取不到有效值。",
105
+ "example": "19",
106
+ "member": "int64",
107
+ "name": "PerPage",
108
+ "output_required": false,
109
+ "required": false,
110
+ "type": "int",
111
+ "value_allowed_null": true
112
+ },
113
+ {
114
+ "disabled": false,
115
+ "document": "第几个分页,从1开始\n注意:此字段可能返回 null,表示取不到有效值。",
253
116
  "example": "无",
254
- "member": "Dimension",
255
- "name": "Dimensions",
117
+ "member": "string",
118
+ "name": "PageNo",
256
119
  "output_required": false,
257
- "required": true,
258
- "type": "list",
120
+ "required": false,
121
+ "type": "string",
259
122
  "value_allowed_null": true
260
123
  }
261
124
  ],
@@ -1,17 +1,11 @@
1
1
  {
2
2
  "actions": {
3
- "GetMonitorData": [
4
- {
5
- "document": "拉取某台云服务器某段时间内统计周期为5分钟的CPU利用率监控数据",
6
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetMonitorData\n<公共请求参数>\n\n{\n \"Namespace\": \"QCE/CVM\",\n \"MetricName\": \"CPUUsage\",\n \"Period\": 300,\n \"Instances\": [\n {\n \"Dimensions\": [\n {\n \"Name\": \"InstanceId\",\n \"Value\": \"ins-j0hk02zo\"\n }\n ]\n }\n ],\n \"StartTime\": \"2019-03-24T10:51:23+08:00\",\n \"EndTime\": \"2019-03-24T20:51:23+08:00\"\n}",
7
- "output": "{\n \"Response\": {\n \"StartTime\": \"2019-03-24T10:50:00+08:00\",\n \"EndTime\": \"2019-03-24T20:50:00+08:00\",\n \"Period\": 300,\n \"MetricName\": \"CPUUsage\",\n \"DataPoints\": [\n {\n \"Dimensions\": [\n {\n \"Name\": \"InstanceId\",\n \"Value\": \"ins-j0hk02zo\"\n }\n ],\n \"Timestamps\": [\n 1535079000,\n 1535079300,\n 1535079600,\n 1535079900,\n 1535080200,\n 1535080500\n ],\n \"Values\": [\n 2.566,\n 2.283,\n 6.316,\n 2.816,\n 2.7,\n 2.35\n ]\n }\n ],\n \"Msg\": \"\",\n \"RequestId\": \"d96ec542-6547-4af2-91ac-fee85c1b8b85\"\n }\n}",
8
- "title": "拉取单台云服务器监控数据"
9
- },
3
+ "DescribeAlarmNotifyHistories": [
10
4
  {
11
5
  "document": "",
12
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetMonitorData\n<公共请求参数>\n\n{\n \"Namespace\": \"QCE/BWP\",\n \"MetricName\": \"BWPResourceBandwidthOut\",\n \"Instances\": [\n {\n \"Dimensions\": [\n {\n \"Name\": \"bandwidthPackageId\",\n \"Value\": \"bwp-djhptxvq\"\n },\n {\n \"Name\": \"resourceId\",\n \"Value\": \"eip-abcd\"\n }\n ]\n }\n ],\n \"Expr\": {\n \"Function\": \"PERCENTILE\",\n \"N\": 99\n },\n \"Period\": 60,\n \"StartTime\": \"2024-12-11T10:57:27+08:00\",\n \"EndTime\": \"2024-12-11T11:07:27+08:00\"\n}",
13
- "output": "{\n \"Response\": {\n \"RequestId\": \"34e19559-914f-4730-be56-6d53a13e9764\",\n \"Msg\": \"Success\",\n \"StartTime\": \"2024-12-11T10:57:27+08:00\",\n \"EndTime\": \"2024-12-11T11:07:27+08:00\",\n \"MetricName\": \"BWPResourceBandwidthOut\",\n \"Period\": 60,\n \"DataPoints\": [\n {\n \"Dimensions\": [\n {\n \"Name\": \"u_id\",\n \"Value\": \"eip-abcd\"\n },\n {\n \"Name\": \"netgroup\",\n \"Value\": \"bwp-djhptxvq\"\n }\n ],\n \"Timestamps\": [\n 1733886060\n ],\n \"Values\": [\n 12139179.200000001\n ]\n }\n ]\n }\n}",
14
- "title": "获取带宽包P99数据"
6
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAlarmNotifyHistories\n<公共请求参数>\n\n{\n \"MonitorType\": \"MT_PROME\",\n \"QueryBaseTime\": 1734576676,\n \"QueryBeforeSeconds\": 172000,\n \"PageParams\": {\n \"PerPage\": 1,\n \"PageNo\": \"1\"\n }\n}",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"efc734bb-1caa-4a4f-a159-97115b57125a\"\n }\n}",
8
+ "title": "测试环境真实示例"
15
9
  }
16
10
  ]
17
11
  },
@@ -2617,6 +2617,58 @@ def doDeleteWorkflow(args, parsed_globals):
2617
2617
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2618
2618
 
2619
2619
 
2620
+ def doCreateMediaEvaluation(args, parsed_globals):
2621
+ g_param = parse_global_arg(parsed_globals)
2622
+
2623
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2624
+ cred = credential.CVMRoleCredential()
2625
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2626
+ cred = credential.STSAssumeRoleCredential(
2627
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2628
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2629
+ )
2630
+ 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):
2631
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2632
+ else:
2633
+ cred = credential.Credential(
2634
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2635
+ )
2636
+ http_profile = HttpProfile(
2637
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2638
+ reqMethod="POST",
2639
+ endpoint=g_param[OptionsDefine.Endpoint],
2640
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2641
+ )
2642
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2643
+ if g_param[OptionsDefine.Language]:
2644
+ profile.language = g_param[OptionsDefine.Language]
2645
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2646
+ client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
2647
+ client._sdkVersion += ("_CLI_" + __version__)
2648
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2649
+ model = models.CreateMediaEvaluationRequest()
2650
+ model.from_json_string(json.dumps(args))
2651
+ start_time = time.time()
2652
+ while True:
2653
+ rsp = client.CreateMediaEvaluation(model)
2654
+ result = rsp.to_json_string()
2655
+ try:
2656
+ json_obj = json.loads(result)
2657
+ except TypeError as e:
2658
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2659
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2660
+ break
2661
+ cur_time = time.time()
2662
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2663
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2664
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2665
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2666
+ else:
2667
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2668
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2669
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
+
2671
+
2620
2672
  def doCreateQualityControlTemplate(args, parsed_globals):
2621
2673
  g_param = parse_global_arg(parsed_globals)
2622
2674
 
@@ -6890,6 +6942,7 @@ ACTION_MAP = {
6890
6942
  "ResetWorkflow": doResetWorkflow,
6891
6943
  "DeleteQualityControlTemplate": doDeleteQualityControlTemplate,
6892
6944
  "DeleteWorkflow": doDeleteWorkflow,
6945
+ "CreateMediaEvaluation": doCreateMediaEvaluation,
6893
6946
  "CreateQualityControlTemplate": doCreateQualityControlTemplate,
6894
6947
  "ModifyImageSpriteTemplate": doModifyImageSpriteTemplate,
6895
6948
  "DescribeTranscodeTemplates": doDescribeTranscodeTemplates,