tencentcloud-sdk-cat 1.0.332 → 1.0.333
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180409/client.rb +0 -648
- data/lib/v20180409/models.rb +110 -2461
- metadata +1 -1
data/lib/v20180409/client.rb
CHANGED
@@ -29,54 +29,6 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
# 绑定拨测任务和告警策略组
|
33
|
-
|
34
|
-
# @param request: Request instance for BindAlarmPolicy.
|
35
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::BindAlarmPolicyRequest`
|
36
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::BindAlarmPolicyResponse`
|
37
|
-
def BindAlarmPolicy(request)
|
38
|
-
body = send_request('BindAlarmPolicy', request.serialize)
|
39
|
-
response = JSON.parse(body)
|
40
|
-
if response['Response'].key?('Error') == false
|
41
|
-
model = BindAlarmPolicyResponse.new
|
42
|
-
model.deserialize(response['Response'])
|
43
|
-
model
|
44
|
-
else
|
45
|
-
code = response['Response']['Error']['Code']
|
46
|
-
message = response['Response']['Error']['Message']
|
47
|
-
reqid = response['Response']['RequestId']
|
48
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
-
end
|
50
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
-
raise e
|
52
|
-
rescue StandardError => e
|
53
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
-
end
|
55
|
-
|
56
|
-
# 添加拨测分组
|
57
|
-
|
58
|
-
# @param request: Request instance for CreateAgentGroup.
|
59
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::CreateAgentGroupRequest`
|
60
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::CreateAgentGroupResponse`
|
61
|
-
def CreateAgentGroup(request)
|
62
|
-
body = send_request('CreateAgentGroup', request.serialize)
|
63
|
-
response = JSON.parse(body)
|
64
|
-
if response['Response'].key?('Error') == false
|
65
|
-
model = CreateAgentGroupResponse.new
|
66
|
-
model.deserialize(response['Response'])
|
67
|
-
model
|
68
|
-
else
|
69
|
-
code = response['Response']['Error']['Code']
|
70
|
-
message = response['Response']['Error']['Message']
|
71
|
-
reqid = response['Response']['RequestId']
|
72
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
-
end
|
74
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
-
raise e
|
76
|
-
rescue StandardError => e
|
77
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
-
end
|
79
|
-
|
80
32
|
# 批量创建拨测任务
|
81
33
|
|
82
34
|
# @param request: Request instance for CreateProbeTasks.
|
@@ -101,54 +53,6 @@ module TencentCloud
|
|
101
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
54
|
end
|
103
55
|
|
104
|
-
# 创建拨测任务(扩展)
|
105
|
-
|
106
|
-
# @param request: Request instance for CreateTaskEx.
|
107
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::CreateTaskExRequest`
|
108
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::CreateTaskExResponse`
|
109
|
-
def CreateTaskEx(request)
|
110
|
-
body = send_request('CreateTaskEx', request.serialize)
|
111
|
-
response = JSON.parse(body)
|
112
|
-
if response['Response'].key?('Error') == false
|
113
|
-
model = CreateTaskExResponse.new
|
114
|
-
model.deserialize(response['Response'])
|
115
|
-
model
|
116
|
-
else
|
117
|
-
code = response['Response']['Error']['Code']
|
118
|
-
message = response['Response']['Error']['Message']
|
119
|
-
reqid = response['Response']['RequestId']
|
120
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
-
end
|
122
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
-
raise e
|
124
|
-
rescue StandardError => e
|
125
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
-
end
|
127
|
-
|
128
|
-
# 删除拨测分组
|
129
|
-
|
130
|
-
# @param request: Request instance for DeleteAgentGroup.
|
131
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DeleteAgentGroupRequest`
|
132
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DeleteAgentGroupResponse`
|
133
|
-
def DeleteAgentGroup(request)
|
134
|
-
body = send_request('DeleteAgentGroup', request.serialize)
|
135
|
-
response = JSON.parse(body)
|
136
|
-
if response['Response'].key?('Error') == false
|
137
|
-
model = DeleteAgentGroupResponse.new
|
138
|
-
model.deserialize(response['Response'])
|
139
|
-
model
|
140
|
-
else
|
141
|
-
code = response['Response']['Error']['Code']
|
142
|
-
message = response['Response']['Error']['Message']
|
143
|
-
reqid = response['Response']['RequestId']
|
144
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
-
end
|
146
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
-
raise e
|
148
|
-
rescue StandardError => e
|
149
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
-
end
|
151
|
-
|
152
56
|
# 删除拨测任务
|
153
57
|
|
154
58
|
# @param request: Request instance for DeleteProbeTask.
|
@@ -173,174 +77,6 @@ module TencentCloud
|
|
173
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
78
|
end
|
175
79
|
|
176
|
-
# 删除多个拨测任务
|
177
|
-
|
178
|
-
# @param request: Request instance for DeleteTasks.
|
179
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DeleteTasksRequest`
|
180
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DeleteTasksResponse`
|
181
|
-
def DeleteTasks(request)
|
182
|
-
body = send_request('DeleteTasks', request.serialize)
|
183
|
-
response = JSON.parse(body)
|
184
|
-
if response['Response'].key?('Error') == false
|
185
|
-
model = DeleteTasksResponse.new
|
186
|
-
model.deserialize(response['Response'])
|
187
|
-
model
|
188
|
-
else
|
189
|
-
code = response['Response']['Error']['Code']
|
190
|
-
message = response['Response']['Error']['Message']
|
191
|
-
reqid = response['Response']['RequestId']
|
192
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
-
end
|
194
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
-
raise e
|
196
|
-
rescue StandardError => e
|
197
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
-
end
|
199
|
-
|
200
|
-
# 查询拨测分组列表
|
201
|
-
|
202
|
-
# @param request: Request instance for DescribeAgentGroups.
|
203
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeAgentGroupsRequest`
|
204
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeAgentGroupsResponse`
|
205
|
-
def DescribeAgentGroups(request)
|
206
|
-
body = send_request('DescribeAgentGroups', request.serialize)
|
207
|
-
response = JSON.parse(body)
|
208
|
-
if response['Response'].key?('Error') == false
|
209
|
-
model = DescribeAgentGroupsResponse.new
|
210
|
-
model.deserialize(response['Response'])
|
211
|
-
model
|
212
|
-
else
|
213
|
-
code = response['Response']['Error']['Code']
|
214
|
-
message = response['Response']['Error']['Message']
|
215
|
-
reqid = response['Response']['RequestId']
|
216
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
-
end
|
218
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
-
raise e
|
220
|
-
rescue StandardError => e
|
221
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
-
end
|
223
|
-
|
224
|
-
# 查询本用户可选的拨测点列表
|
225
|
-
|
226
|
-
# @param request: Request instance for DescribeAgents.
|
227
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeAgentsRequest`
|
228
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeAgentsResponse`
|
229
|
-
def DescribeAgents(request)
|
230
|
-
body = send_request('DescribeAgents', request.serialize)
|
231
|
-
response = JSON.parse(body)
|
232
|
-
if response['Response'].key?('Error') == false
|
233
|
-
model = DescribeAgentsResponse.new
|
234
|
-
model.deserialize(response['Response'])
|
235
|
-
model
|
236
|
-
else
|
237
|
-
code = response['Response']['Error']['Code']
|
238
|
-
message = response['Response']['Error']['Message']
|
239
|
-
reqid = response['Response']['RequestId']
|
240
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
-
end
|
242
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
-
raise e
|
244
|
-
rescue StandardError => e
|
245
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
-
end
|
247
|
-
|
248
|
-
# 查询用户的告警主题列表
|
249
|
-
|
250
|
-
# @param request: Request instance for DescribeAlarmTopic.
|
251
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeAlarmTopicRequest`
|
252
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeAlarmTopicResponse`
|
253
|
-
def DescribeAlarmTopic(request)
|
254
|
-
body = send_request('DescribeAlarmTopic', request.serialize)
|
255
|
-
response = JSON.parse(body)
|
256
|
-
if response['Response'].key?('Error') == false
|
257
|
-
model = DescribeAlarmTopicResponse.new
|
258
|
-
model.deserialize(response['Response'])
|
259
|
-
model
|
260
|
-
else
|
261
|
-
code = response['Response']['Error']['Code']
|
262
|
-
message = response['Response']['Error']['Message']
|
263
|
-
reqid = response['Response']['RequestId']
|
264
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
-
end
|
266
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
-
raise e
|
268
|
-
rescue StandardError => e
|
269
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
-
end
|
271
|
-
|
272
|
-
# 查询拨测告警列表
|
273
|
-
|
274
|
-
# @param request: Request instance for DescribeAlarms.
|
275
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeAlarmsRequest`
|
276
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeAlarmsResponse`
|
277
|
-
def DescribeAlarms(request)
|
278
|
-
body = send_request('DescribeAlarms', request.serialize)
|
279
|
-
response = JSON.parse(body)
|
280
|
-
if response['Response'].key?('Error') == false
|
281
|
-
model = DescribeAlarmsResponse.new
|
282
|
-
model.deserialize(response['Response'])
|
283
|
-
model
|
284
|
-
else
|
285
|
-
code = response['Response']['Error']['Code']
|
286
|
-
message = response['Response']['Error']['Message']
|
287
|
-
reqid = response['Response']['RequestId']
|
288
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
-
end
|
290
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
-
raise e
|
292
|
-
rescue StandardError => e
|
293
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
-
end
|
295
|
-
|
296
|
-
# 按任务查询拨测告警列表
|
297
|
-
|
298
|
-
# @param request: Request instance for DescribeAlarmsByTask.
|
299
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeAlarmsByTaskRequest`
|
300
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeAlarmsByTaskResponse`
|
301
|
-
def DescribeAlarmsByTask(request)
|
302
|
-
body = send_request('DescribeAlarmsByTask', request.serialize)
|
303
|
-
response = JSON.parse(body)
|
304
|
-
if response['Response'].key?('Error') == false
|
305
|
-
model = DescribeAlarmsByTaskResponse.new
|
306
|
-
model.deserialize(response['Response'])
|
307
|
-
model
|
308
|
-
else
|
309
|
-
code = response['Response']['Error']['Code']
|
310
|
-
message = response['Response']['Error']['Message']
|
311
|
-
reqid = response['Response']['RequestId']
|
312
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
-
end
|
314
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
-
raise e
|
316
|
-
rescue StandardError => e
|
317
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
-
end
|
319
|
-
|
320
|
-
# 查询拨测流水
|
321
|
-
|
322
|
-
# @param request: Request instance for DescribeCatLogs.
|
323
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeCatLogsRequest`
|
324
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeCatLogsResponse`
|
325
|
-
def DescribeCatLogs(request)
|
326
|
-
body = send_request('DescribeCatLogs', request.serialize)
|
327
|
-
response = JSON.parse(body)
|
328
|
-
if response['Response'].key?('Error') == false
|
329
|
-
model = DescribeCatLogsResponse.new
|
330
|
-
model.deserialize(response['Response'])
|
331
|
-
model
|
332
|
-
else
|
333
|
-
code = response['Response']['Error']['Code']
|
334
|
-
message = response['Response']['Error']['Message']
|
335
|
-
reqid = response['Response']['RequestId']
|
336
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
-
end
|
338
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
-
raise e
|
340
|
-
rescue StandardError => e
|
341
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
-
end
|
343
|
-
|
344
80
|
# 根据时间范围、任务ID、运营商等条件查询单次拨测详情数据
|
345
81
|
|
346
82
|
# @param request: Request instance for DescribeDetailedSingleProbeData.
|
@@ -437,342 +173,6 @@ module TencentCloud
|
|
437
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
174
|
end
|
439
175
|
|
440
|
-
# 查询拨测任务信息
|
441
|
-
|
442
|
-
# @param request: Request instance for DescribeTaskDetail.
|
443
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeTaskDetailRequest`
|
444
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeTaskDetailResponse`
|
445
|
-
def DescribeTaskDetail(request)
|
446
|
-
body = send_request('DescribeTaskDetail', request.serialize)
|
447
|
-
response = JSON.parse(body)
|
448
|
-
if response['Response'].key?('Error') == false
|
449
|
-
model = DescribeTaskDetailResponse.new
|
450
|
-
model.deserialize(response['Response'])
|
451
|
-
model
|
452
|
-
else
|
453
|
-
code = response['Response']['Error']['Code']
|
454
|
-
message = response['Response']['Error']['Message']
|
455
|
-
reqid = response['Response']['RequestId']
|
456
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
-
end
|
458
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
-
raise e
|
460
|
-
rescue StandardError => e
|
461
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
-
end
|
463
|
-
|
464
|
-
# 按类型查询拨测任务列表
|
465
|
-
|
466
|
-
# @param request: Request instance for DescribeTasksByType.
|
467
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeTasksByTypeRequest`
|
468
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeTasksByTypeResponse`
|
469
|
-
def DescribeTasksByType(request)
|
470
|
-
body = send_request('DescribeTasksByType', request.serialize)
|
471
|
-
response = JSON.parse(body)
|
472
|
-
if response['Response'].key?('Error') == false
|
473
|
-
model = DescribeTasksByTypeResponse.new
|
474
|
-
model.deserialize(response['Response'])
|
475
|
-
model
|
476
|
-
else
|
477
|
-
code = response['Response']['Error']['Code']
|
478
|
-
message = response['Response']['Error']['Message']
|
479
|
-
reqid = response['Response']['RequestId']
|
480
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
-
end
|
482
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
-
raise e
|
484
|
-
rescue StandardError => e
|
485
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
-
end
|
487
|
-
|
488
|
-
# 获取用户可用资源限制
|
489
|
-
|
490
|
-
# @param request: Request instance for DescribeUserLimit.
|
491
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeUserLimitRequest`
|
492
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeUserLimitResponse`
|
493
|
-
def DescribeUserLimit(request)
|
494
|
-
body = send_request('DescribeUserLimit', request.serialize)
|
495
|
-
response = JSON.parse(body)
|
496
|
-
if response['Response'].key?('Error') == false
|
497
|
-
model = DescribeUserLimitResponse.new
|
498
|
-
model.deserialize(response['Response'])
|
499
|
-
model
|
500
|
-
else
|
501
|
-
code = response['Response']['Error']['Code']
|
502
|
-
message = response['Response']['Error']['Message']
|
503
|
-
reqid = response['Response']['RequestId']
|
504
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
-
end
|
506
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
-
raise e
|
508
|
-
rescue StandardError => e
|
509
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
-
end
|
511
|
-
|
512
|
-
# 获取指定时刻的可用率地图信息
|
513
|
-
|
514
|
-
# @param request: Request instance for GetAvailRatioHistory.
|
515
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::GetAvailRatioHistoryRequest`
|
516
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::GetAvailRatioHistoryResponse`
|
517
|
-
def GetAvailRatioHistory(request)
|
518
|
-
body = send_request('GetAvailRatioHistory', request.serialize)
|
519
|
-
response = JSON.parse(body)
|
520
|
-
if response['Response'].key?('Error') == false
|
521
|
-
model = GetAvailRatioHistoryResponse.new
|
522
|
-
model.deserialize(response['Response'])
|
523
|
-
model
|
524
|
-
else
|
525
|
-
code = response['Response']['Error']['Code']
|
526
|
-
message = response['Response']['Error']['Message']
|
527
|
-
reqid = response['Response']['RequestId']
|
528
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
529
|
-
end
|
530
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
531
|
-
raise e
|
532
|
-
rescue StandardError => e
|
533
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
|
-
end
|
535
|
-
|
536
|
-
# 获取一天的整体可用率信息
|
537
|
-
|
538
|
-
# @param request: Request instance for GetDailyAvailRatio.
|
539
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::GetDailyAvailRatioRequest`
|
540
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::GetDailyAvailRatioResponse`
|
541
|
-
def GetDailyAvailRatio(request)
|
542
|
-
body = send_request('GetDailyAvailRatio', request.serialize)
|
543
|
-
response = JSON.parse(body)
|
544
|
-
if response['Response'].key?('Error') == false
|
545
|
-
model = GetDailyAvailRatioResponse.new
|
546
|
-
model.deserialize(response['Response'])
|
547
|
-
model
|
548
|
-
else
|
549
|
-
code = response['Response']['Error']['Code']
|
550
|
-
message = response['Response']['Error']['Message']
|
551
|
-
reqid = response['Response']['RequestId']
|
552
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
-
end
|
554
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
-
raise e
|
556
|
-
rescue StandardError => e
|
557
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
-
end
|
559
|
-
|
560
|
-
# 获取实时可用率信息
|
561
|
-
|
562
|
-
# @param request: Request instance for GetRealAvailRatio.
|
563
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::GetRealAvailRatioRequest`
|
564
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::GetRealAvailRatioResponse`
|
565
|
-
def GetRealAvailRatio(request)
|
566
|
-
body = send_request('GetRealAvailRatio', request.serialize)
|
567
|
-
response = JSON.parse(body)
|
568
|
-
if response['Response'].key?('Error') == false
|
569
|
-
model = GetRealAvailRatioResponse.new
|
570
|
-
model.deserialize(response['Response'])
|
571
|
-
model
|
572
|
-
else
|
573
|
-
code = response['Response']['Error']['Code']
|
574
|
-
message = response['Response']['Error']['Message']
|
575
|
-
reqid = response['Response']['RequestId']
|
576
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
-
end
|
578
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
-
raise e
|
580
|
-
rescue StandardError => e
|
581
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
-
end
|
583
|
-
|
584
|
-
# 查询拨测任务的走势数据
|
585
|
-
|
586
|
-
# @param request: Request instance for GetRespTimeTrendEx.
|
587
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::GetRespTimeTrendExRequest`
|
588
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::GetRespTimeTrendExResponse`
|
589
|
-
def GetRespTimeTrendEx(request)
|
590
|
-
body = send_request('GetRespTimeTrendEx', request.serialize)
|
591
|
-
response = JSON.parse(body)
|
592
|
-
if response['Response'].key?('Error') == false
|
593
|
-
model = GetRespTimeTrendExResponse.new
|
594
|
-
model.deserialize(response['Response'])
|
595
|
-
model
|
596
|
-
else
|
597
|
-
code = response['Response']['Error']['Code']
|
598
|
-
message = response['Response']['Error']['Message']
|
599
|
-
reqid = response['Response']['RequestId']
|
600
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
-
end
|
602
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
-
raise e
|
604
|
-
rescue StandardError => e
|
605
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
-
end
|
607
|
-
|
608
|
-
# 获取任务列表的实时数据
|
609
|
-
|
610
|
-
# @param request: Request instance for GetResultSummary.
|
611
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::GetResultSummaryRequest`
|
612
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::GetResultSummaryResponse`
|
613
|
-
def GetResultSummary(request)
|
614
|
-
body = send_request('GetResultSummary', request.serialize)
|
615
|
-
response = JSON.parse(body)
|
616
|
-
if response['Response'].key?('Error') == false
|
617
|
-
model = GetResultSummaryResponse.new
|
618
|
-
model.deserialize(response['Response'])
|
619
|
-
model
|
620
|
-
else
|
621
|
-
code = response['Response']['Error']['Code']
|
622
|
-
message = response['Response']['Error']['Message']
|
623
|
-
reqid = response['Response']['RequestId']
|
624
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
625
|
-
end
|
626
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
627
|
-
raise e
|
628
|
-
rescue StandardError => e
|
629
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
|
-
end
|
631
|
-
|
632
|
-
# 查询拨测任务的历史返回码信息
|
633
|
-
|
634
|
-
# @param request: Request instance for GetReturnCodeHistory.
|
635
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::GetReturnCodeHistoryRequest`
|
636
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::GetReturnCodeHistoryResponse`
|
637
|
-
def GetReturnCodeHistory(request)
|
638
|
-
body = send_request('GetReturnCodeHistory', request.serialize)
|
639
|
-
response = JSON.parse(body)
|
640
|
-
if response['Response'].key?('Error') == false
|
641
|
-
model = GetReturnCodeHistoryResponse.new
|
642
|
-
model.deserialize(response['Response'])
|
643
|
-
model
|
644
|
-
else
|
645
|
-
code = response['Response']['Error']['Code']
|
646
|
-
message = response['Response']['Error']['Message']
|
647
|
-
reqid = response['Response']['RequestId']
|
648
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
-
end
|
650
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
-
raise e
|
652
|
-
rescue StandardError => e
|
653
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
-
end
|
655
|
-
|
656
|
-
# 查询拨测任务的返回码统计信息
|
657
|
-
|
658
|
-
# @param request: Request instance for GetReturnCodeInfo.
|
659
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::GetReturnCodeInfoRequest`
|
660
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::GetReturnCodeInfoResponse`
|
661
|
-
def GetReturnCodeInfo(request)
|
662
|
-
body = send_request('GetReturnCodeInfo', request.serialize)
|
663
|
-
response = JSON.parse(body)
|
664
|
-
if response['Response'].key?('Error') == false
|
665
|
-
model = GetReturnCodeInfoResponse.new
|
666
|
-
model.deserialize(response['Response'])
|
667
|
-
model
|
668
|
-
else
|
669
|
-
code = response['Response']['Error']['Code']
|
670
|
-
message = response['Response']['Error']['Message']
|
671
|
-
reqid = response['Response']['RequestId']
|
672
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
-
end
|
674
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
-
raise e
|
676
|
-
rescue StandardError => e
|
677
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
-
end
|
679
|
-
|
680
|
-
# 获取AppId下的拨测任务总数
|
681
|
-
|
682
|
-
# @param request: Request instance for GetTaskTotalNumber.
|
683
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::GetTaskTotalNumberRequest`
|
684
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::GetTaskTotalNumberResponse`
|
685
|
-
def GetTaskTotalNumber(request)
|
686
|
-
body = send_request('GetTaskTotalNumber', request.serialize)
|
687
|
-
response = JSON.parse(body)
|
688
|
-
if response['Response'].key?('Error') == false
|
689
|
-
model = GetTaskTotalNumberResponse.new
|
690
|
-
model.deserialize(response['Response'])
|
691
|
-
model
|
692
|
-
else
|
693
|
-
code = response['Response']['Error']['Code']
|
694
|
-
message = response['Response']['Error']['Message']
|
695
|
-
reqid = response['Response']['RequestId']
|
696
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
-
end
|
698
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
-
raise e
|
700
|
-
rescue StandardError => e
|
701
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
-
end
|
703
|
-
|
704
|
-
# 修改拨测分组
|
705
|
-
|
706
|
-
# @param request: Request instance for ModifyAgentGroup.
|
707
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::ModifyAgentGroupRequest`
|
708
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::ModifyAgentGroupResponse`
|
709
|
-
def ModifyAgentGroup(request)
|
710
|
-
body = send_request('ModifyAgentGroup', request.serialize)
|
711
|
-
response = JSON.parse(body)
|
712
|
-
if response['Response'].key?('Error') == false
|
713
|
-
model = ModifyAgentGroupResponse.new
|
714
|
-
model.deserialize(response['Response'])
|
715
|
-
model
|
716
|
-
else
|
717
|
-
code = response['Response']['Error']['Code']
|
718
|
-
message = response['Response']['Error']['Message']
|
719
|
-
reqid = response['Response']['RequestId']
|
720
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
-
end
|
722
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
-
raise e
|
724
|
-
rescue StandardError => e
|
725
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
-
end
|
727
|
-
|
728
|
-
# 修改拨测任务(扩展)
|
729
|
-
|
730
|
-
# @param request: Request instance for ModifyTaskEx.
|
731
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::ModifyTaskExRequest`
|
732
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::ModifyTaskExResponse`
|
733
|
-
def ModifyTaskEx(request)
|
734
|
-
body = send_request('ModifyTaskEx', request.serialize)
|
735
|
-
response = JSON.parse(body)
|
736
|
-
if response['Response'].key?('Error') == false
|
737
|
-
model = ModifyTaskExResponse.new
|
738
|
-
model.deserialize(response['Response'])
|
739
|
-
model
|
740
|
-
else
|
741
|
-
code = response['Response']['Error']['Code']
|
742
|
-
message = response['Response']['Error']['Message']
|
743
|
-
reqid = response['Response']['RequestId']
|
744
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
745
|
-
end
|
746
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
747
|
-
raise e
|
748
|
-
rescue StandardError => e
|
749
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
|
-
end
|
751
|
-
|
752
|
-
# 暂停拨测任务
|
753
|
-
|
754
|
-
# @param request: Request instance for PauseTask.
|
755
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::PauseTaskRequest`
|
756
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::PauseTaskResponse`
|
757
|
-
def PauseTask(request)
|
758
|
-
body = send_request('PauseTask', request.serialize)
|
759
|
-
response = JSON.parse(body)
|
760
|
-
if response['Response'].key?('Error') == false
|
761
|
-
model = PauseTaskResponse.new
|
762
|
-
model.deserialize(response['Response'])
|
763
|
-
model
|
764
|
-
else
|
765
|
-
code = response['Response']['Error']['Code']
|
766
|
-
message = response['Response']['Error']['Message']
|
767
|
-
reqid = response['Response']['RequestId']
|
768
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
-
end
|
770
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
-
raise e
|
772
|
-
rescue StandardError => e
|
773
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
-
end
|
775
|
-
|
776
176
|
# 恢复拨测任务
|
777
177
|
|
778
178
|
# @param request: Request instance for ResumeProbeTask.
|
@@ -797,30 +197,6 @@ module TencentCloud
|
|
797
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
198
|
end
|
799
199
|
|
800
|
-
# 运行拨测任务
|
801
|
-
|
802
|
-
# @param request: Request instance for RunTask.
|
803
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::RunTaskRequest`
|
804
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::RunTaskResponse`
|
805
|
-
def RunTask(request)
|
806
|
-
body = send_request('RunTask', request.serialize)
|
807
|
-
response = JSON.parse(body)
|
808
|
-
if response['Response'].key?('Error') == false
|
809
|
-
model = RunTaskResponse.new
|
810
|
-
model.deserialize(response['Response'])
|
811
|
-
model
|
812
|
-
else
|
813
|
-
code = response['Response']['Error']['Code']
|
814
|
-
message = response['Response']['Error']['Message']
|
815
|
-
reqid = response['Response']['RequestId']
|
816
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
817
|
-
end
|
818
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
819
|
-
raise e
|
820
|
-
rescue StandardError => e
|
821
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
|
-
end
|
823
|
-
|
824
200
|
# 暂停拨测任务
|
825
201
|
|
826
202
|
# @param request: Request instance for SuspendProbeTask.
|
@@ -869,30 +245,6 @@ module TencentCloud
|
|
869
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
246
|
end
|
871
247
|
|
872
|
-
# 验证拨测任务,结果验证查询(验证成功的,才建议创建拨测任务)
|
873
|
-
|
874
|
-
# @param request: Request instance for VerifyResult.
|
875
|
-
# @type request: :class:`Tencentcloud::cat::V20180409::VerifyResultRequest`
|
876
|
-
# @rtype: :class:`Tencentcloud::cat::V20180409::VerifyResultResponse`
|
877
|
-
def VerifyResult(request)
|
878
|
-
body = send_request('VerifyResult', request.serialize)
|
879
|
-
response = JSON.parse(body)
|
880
|
-
if response['Response'].key?('Error') == false
|
881
|
-
model = VerifyResultResponse.new
|
882
|
-
model.deserialize(response['Response'])
|
883
|
-
model
|
884
|
-
else
|
885
|
-
code = response['Response']['Error']['Code']
|
886
|
-
message = response['Response']['Error']['Message']
|
887
|
-
reqid = response['Response']['RequestId']
|
888
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
-
end
|
890
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
-
raise e
|
892
|
-
rescue StandardError => e
|
893
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
-
end
|
895
|
-
|
896
248
|
|
897
249
|
end
|
898
250
|
end
|