tencentcloud-sdk-cat 1.0.200

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.
@@ -0,0 +1,2374 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Cat
19
+ module V20180409
20
+ # 拨测分组
21
+ class AgentGroup < TencentCloud::Common::AbstractModel
22
+ # @param GroupId: 拨测分组ID
23
+ # @type GroupId: Integer
24
+ # @param GroupName: 拨测分组名称
25
+ # @type GroupName: String
26
+ # @param IsDefault: 是否默认拨测分组。1表示是,0表示否
27
+ # @type IsDefault: Integer
28
+ # @param TaskNum: 使用本拨测分组的任务数
29
+ # @type TaskNum: Integer
30
+ # @param GroupDetail: 拨测结点列表
31
+ # @type GroupDetail: Array
32
+ # @param MaxGroupNum: 最大拨测分组数
33
+ # @type MaxGroupNum: Integer
34
+
35
+ attr_accessor :GroupId, :GroupName, :IsDefault, :TaskNum, :GroupDetail, :MaxGroupNum
36
+
37
+ def initialize(groupid=nil, groupname=nil, isdefault=nil, tasknum=nil, groupdetail=nil, maxgroupnum=nil)
38
+ @GroupId = groupid
39
+ @GroupName = groupname
40
+ @IsDefault = isdefault
41
+ @TaskNum = tasknum
42
+ @GroupDetail = groupdetail
43
+ @MaxGroupNum = maxgroupnum
44
+ end
45
+
46
+ def deserialize(params)
47
+ @GroupId = params['GroupId']
48
+ @GroupName = params['GroupName']
49
+ @IsDefault = params['IsDefault']
50
+ @TaskNum = params['TaskNum']
51
+ unless params['GroupDetail'].nil?
52
+ @GroupDetail = []
53
+ params['GroupDetail'].each do |i|
54
+ catagent_tmp = CatAgent.new
55
+ catagent_tmp.deserialize(i)
56
+ @GroupDetail << catagent_tmp
57
+ end
58
+ end
59
+ @MaxGroupNum = params['MaxGroupNum']
60
+ end
61
+ end
62
+
63
+ # 拨测告警信息
64
+ class AlarmInfo < TencentCloud::Common::AbstractModel
65
+ # @param ObjName: 告警对象的名称
66
+ # @type ObjName: String
67
+ # @param FirstOccurTime: 告警发生的时间
68
+ # @type FirstOccurTime: String
69
+ # @param LastOccurTime: 告警结束的时间
70
+ # @type LastOccurTime: String
71
+ # @param Status: 告警状态。1 表示已恢复,0 表示未恢复,2表示数据不足
72
+ # @type Status: Integer
73
+ # @param Content: 告警的内容
74
+ # @type Content: String
75
+ # @param TaskId: 拨测任务ID
76
+ # @type TaskId: Integer
77
+ # @param MetricName: 特征项名字
78
+ # @type MetricName: String
79
+ # @param MetricValue: 特征项数值
80
+ # @type MetricValue: String
81
+ # @param ObjId: 告警对象的ID
82
+ # @type ObjId: String
83
+
84
+ attr_accessor :ObjName, :FirstOccurTime, :LastOccurTime, :Status, :Content, :TaskId, :MetricName, :MetricValue, :ObjId
85
+
86
+ def initialize(objname=nil, firstoccurtime=nil, lastoccurtime=nil, status=nil, content=nil, taskid=nil, metricname=nil, metricvalue=nil, objid=nil)
87
+ @ObjName = objname
88
+ @FirstOccurTime = firstoccurtime
89
+ @LastOccurTime = lastoccurtime
90
+ @Status = status
91
+ @Content = content
92
+ @TaskId = taskid
93
+ @MetricName = metricname
94
+ @MetricValue = metricvalue
95
+ @ObjId = objid
96
+ end
97
+
98
+ def deserialize(params)
99
+ @ObjName = params['ObjName']
100
+ @FirstOccurTime = params['FirstOccurTime']
101
+ @LastOccurTime = params['LastOccurTime']
102
+ @Status = params['Status']
103
+ @Content = params['Content']
104
+ @TaskId = params['TaskId']
105
+ @MetricName = params['MetricName']
106
+ @MetricValue = params['MetricValue']
107
+ @ObjId = params['ObjId']
108
+ end
109
+ end
110
+
111
+ # 告警主题
112
+ class AlarmTopic < TencentCloud::Common::AbstractModel
113
+ # @param TopicId: 主题的ID
114
+ # @type TopicId: String
115
+ # @param TopicName: 主题的名称
116
+ # @type TopicName: String
117
+
118
+ attr_accessor :TopicId, :TopicName
119
+
120
+ def initialize(topicid=nil, topicname=nil)
121
+ @TopicId = topicid
122
+ @TopicName = topicname
123
+ end
124
+
125
+ def deserialize(params)
126
+ @TopicId = params['TopicId']
127
+ @TopicName = params['TopicName']
128
+ end
129
+ end
130
+
131
+ # BindAlarmPolicy请求参数结构体
132
+ class BindAlarmPolicyRequest < TencentCloud::Common::AbstractModel
133
+ # @param TaskId: 拨测任务Id
134
+ # @type TaskId: Integer
135
+ # @param PolicyGroupId: 告警策略组Id
136
+ # @type PolicyGroupId: Integer
137
+ # @param IfBind: 是否绑定操作。非0 为绑定, 0 为 解绑。缺省表示 绑定。
138
+ # @type IfBind: Integer
139
+ # @param TopicId: 告警主题Id
140
+ # @type TopicId: String
141
+
142
+ attr_accessor :TaskId, :PolicyGroupId, :IfBind, :TopicId
143
+
144
+ def initialize(taskid=nil, policygroupid=nil, ifbind=nil, topicid=nil)
145
+ @TaskId = taskid
146
+ @PolicyGroupId = policygroupid
147
+ @IfBind = ifbind
148
+ @TopicId = topicid
149
+ end
150
+
151
+ def deserialize(params)
152
+ @TaskId = params['TaskId']
153
+ @PolicyGroupId = params['PolicyGroupId']
154
+ @IfBind = params['IfBind']
155
+ @TopicId = params['TopicId']
156
+ end
157
+ end
158
+
159
+ # BindAlarmPolicy返回参数结构体
160
+ class BindAlarmPolicyResponse < TencentCloud::Common::AbstractModel
161
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
162
+ # @type RequestId: String
163
+
164
+ attr_accessor :RequestId
165
+
166
+ def initialize(requestid=nil)
167
+ @RequestId = requestid
168
+ end
169
+
170
+ def deserialize(params)
171
+ @RequestId = params['RequestId']
172
+ end
173
+ end
174
+
175
+ # 拨测Agent 所在省份、运营商
176
+ class CatAgent < TencentCloud::Common::AbstractModel
177
+ # @param Province: 拨测结点所在的省份(拼音缩写)
178
+ # @type Province: String
179
+ # @param Isp: 拨测结点所在的运营商(英文缩写)
180
+ # @type Isp: String
181
+ # @param ProvinceName: 拨测结点所在的省份(中文名称)
182
+ # 注意:此字段可能返回 null,表示取不到有效值。
183
+ # @type ProvinceName: String
184
+ # @param IspName: 拨测结点所在的运营商(中文名称)
185
+ # 注意:此字段可能返回 null,表示取不到有效值。
186
+ # @type IspName: String
187
+
188
+ attr_accessor :Province, :Isp, :ProvinceName, :IspName
189
+
190
+ def initialize(province=nil, isp=nil, provincename=nil, ispname=nil)
191
+ @Province = province
192
+ @Isp = isp
193
+ @ProvinceName = provincename
194
+ @IspName = ispname
195
+ end
196
+
197
+ def deserialize(params)
198
+ @Province = params['Province']
199
+ @Isp = params['Isp']
200
+ @ProvinceName = params['ProvinceName']
201
+ @IspName = params['IspName']
202
+ end
203
+ end
204
+
205
+ # 拨测记录
206
+ class CatLog < TencentCloud::Common::AbstractModel
207
+ # @param Time: 拨测时间点
208
+ # @type Time: String
209
+ # @param CatTypeName: 拨测类型
210
+ # @type CatTypeName: String
211
+ # @param TaskId: 任务ID
212
+ # @type TaskId: Integer
213
+ # @param City: 拨测点所在城市
214
+ # @type City: String
215
+ # @param Isp: 拨测点所在运营商
216
+ # @type Isp: String
217
+ # @param ServerIp: 被拨测Server的IP
218
+ # @type ServerIp: String
219
+ # @param DomainName: 被拨测Server的域名
220
+ # @type DomainName: String
221
+ # @param TotalTime: 执行耗时,单位毫秒
222
+ # @type TotalTime: Integer
223
+ # @param ResultType: 成功失败(1 失败,0 成功)
224
+ # @type ResultType: Integer
225
+ # @param ResultCode: 失败错误码
226
+ # @type ResultCode: Integer
227
+ # @param ReqPkgSize: 请求包大小
228
+ # @type ReqPkgSize: Integer
229
+ # @param RspPkgSize: 回应包大小
230
+ # @type RspPkgSize: Integer
231
+ # @param ReqMsg: 拨测请求
232
+ # @type ReqMsg: String
233
+ # @param RespMsg: 拨测回应
234
+ # @type RespMsg: String
235
+ # @param ClientIp: 客户端IP
236
+ # @type ClientIp: String
237
+ # @param CityName: 拨测点所在城市名称
238
+ # @type CityName: String
239
+ # @param IspName: 拨测点所在运营商名称
240
+ # @type IspName: String
241
+ # @param ParseTime: 解析耗时,单位毫秒
242
+ # @type ParseTime: Integer
243
+ # @param ConnectTime: 连接耗时,单位毫秒
244
+ # @type ConnectTime: Integer
245
+ # @param SendTime: 数据发送耗时,单位毫秒
246
+ # @type SendTime: Integer
247
+ # @param WaitTime: 等待耗时,单位毫秒
248
+ # @type WaitTime: Integer
249
+ # @param ReceiveTime: 接收耗时,单位毫秒
250
+ # @type ReceiveTime: Integer
251
+
252
+ attr_accessor :Time, :CatTypeName, :TaskId, :City, :Isp, :ServerIp, :DomainName, :TotalTime, :ResultType, :ResultCode, :ReqPkgSize, :RspPkgSize, :ReqMsg, :RespMsg, :ClientIp, :CityName, :IspName, :ParseTime, :ConnectTime, :SendTime, :WaitTime, :ReceiveTime
253
+
254
+ def initialize(time=nil, cattypename=nil, taskid=nil, city=nil, isp=nil, serverip=nil, domainname=nil, totaltime=nil, resulttype=nil, resultcode=nil, reqpkgsize=nil, rsppkgsize=nil, reqmsg=nil, respmsg=nil, clientip=nil, cityname=nil, ispname=nil, parsetime=nil, connecttime=nil, sendtime=nil, waittime=nil, receivetime=nil)
255
+ @Time = time
256
+ @CatTypeName = cattypename
257
+ @TaskId = taskid
258
+ @City = city
259
+ @Isp = isp
260
+ @ServerIp = serverip
261
+ @DomainName = domainname
262
+ @TotalTime = totaltime
263
+ @ResultType = resulttype
264
+ @ResultCode = resultcode
265
+ @ReqPkgSize = reqpkgsize
266
+ @RspPkgSize = rsppkgsize
267
+ @ReqMsg = reqmsg
268
+ @RespMsg = respmsg
269
+ @ClientIp = clientip
270
+ @CityName = cityname
271
+ @IspName = ispname
272
+ @ParseTime = parsetime
273
+ @ConnectTime = connecttime
274
+ @SendTime = sendtime
275
+ @WaitTime = waittime
276
+ @ReceiveTime = receivetime
277
+ end
278
+
279
+ def deserialize(params)
280
+ @Time = params['Time']
281
+ @CatTypeName = params['CatTypeName']
282
+ @TaskId = params['TaskId']
283
+ @City = params['City']
284
+ @Isp = params['Isp']
285
+ @ServerIp = params['ServerIp']
286
+ @DomainName = params['DomainName']
287
+ @TotalTime = params['TotalTime']
288
+ @ResultType = params['ResultType']
289
+ @ResultCode = params['ResultCode']
290
+ @ReqPkgSize = params['ReqPkgSize']
291
+ @RspPkgSize = params['RspPkgSize']
292
+ @ReqMsg = params['ReqMsg']
293
+ @RespMsg = params['RespMsg']
294
+ @ClientIp = params['ClientIp']
295
+ @CityName = params['CityName']
296
+ @IspName = params['IspName']
297
+ @ParseTime = params['ParseTime']
298
+ @ConnectTime = params['ConnectTime']
299
+ @SendTime = params['SendTime']
300
+ @WaitTime = params['WaitTime']
301
+ @ReceiveTime = params['ReceiveTime']
302
+ end
303
+ end
304
+
305
+ # 拨测失败详情
306
+ class CatReturnDetail < TencentCloud::Common::AbstractModel
307
+ # @param IspName: 运营商名称
308
+ # @type IspName: String
309
+ # @param Province: 省份全拼
310
+ # @type Province: String
311
+ # @param ProvinceName: 省份中文名称
312
+ # @type ProvinceName: String
313
+ # @param MapKey: Map键值
314
+ # @type MapKey: String
315
+ # @param ServerIp: 拨测目标的IP
316
+ # @type ServerIp: String
317
+ # @param ResultCount: 拨测失败个数
318
+ # @type ResultCount: Integer
319
+ # @param ResultCode: 拨测失败返回码
320
+ # @type ResultCode: Integer
321
+ # @param ErrorReason: 拨测失败原因描述
322
+ # @type ErrorReason: String
323
+
324
+ attr_accessor :IspName, :Province, :ProvinceName, :MapKey, :ServerIp, :ResultCount, :ResultCode, :ErrorReason
325
+
326
+ def initialize(ispname=nil, province=nil, provincename=nil, mapkey=nil, serverip=nil, resultcount=nil, resultcode=nil, errorreason=nil)
327
+ @IspName = ispname
328
+ @Province = province
329
+ @ProvinceName = provincename
330
+ @MapKey = mapkey
331
+ @ServerIp = serverip
332
+ @ResultCount = resultcount
333
+ @ResultCode = resultcode
334
+ @ErrorReason = errorreason
335
+ end
336
+
337
+ def deserialize(params)
338
+ @IspName = params['IspName']
339
+ @Province = params['Province']
340
+ @ProvinceName = params['ProvinceName']
341
+ @MapKey = params['MapKey']
342
+ @ServerIp = params['ServerIp']
343
+ @ResultCount = params['ResultCount']
344
+ @ResultCode = params['ResultCode']
345
+ @ErrorReason = params['ErrorReason']
346
+ end
347
+ end
348
+
349
+ # 拨测失败返回情况汇总
350
+ class CatReturnSummary < TencentCloud::Common::AbstractModel
351
+ # @param ResultCount: 拨测失败个数
352
+ # @type ResultCount: Integer
353
+ # @param ResultCode: 拨测失败返回码
354
+ # @type ResultCode: Integer
355
+ # @param ErrorReason: 拨测失败原因描述
356
+ # @type ErrorReason: String
357
+
358
+ attr_accessor :ResultCount, :ResultCode, :ErrorReason
359
+
360
+ def initialize(resultcount=nil, resultcode=nil, errorreason=nil)
361
+ @ResultCount = resultcount
362
+ @ResultCode = resultcode
363
+ @ErrorReason = errorreason
364
+ end
365
+
366
+ def deserialize(params)
367
+ @ResultCount = params['ResultCount']
368
+ @ResultCode = params['ResultCode']
369
+ @ErrorReason = params['ErrorReason']
370
+ end
371
+ end
372
+
373
+ # 任务信息和告警策略组
374
+ class CatTaskDetail < TencentCloud::Common::AbstractModel
375
+ # @param TaskId: 任务ID
376
+ # @type TaskId: Integer
377
+ # @param TaskName: 任务名称
378
+ # @type TaskName: String
379
+ # @param Period: 任务周期,单位为分钟。目前支持1,5,15,30几种取值
380
+ # @type Period: Integer
381
+ # @param CatTypeName: 拨测类型。http, https, ping, tcp 之一
382
+ # @type CatTypeName: String
383
+ # @param CgiUrl: 拨测任务的URL
384
+ # @type CgiUrl: String
385
+ # @param AgentGroupId: 拨测分组ID
386
+ # @type AgentGroupId: Integer
387
+ # @param PolicyGroupId: 告警策略组ID
388
+ # @type PolicyGroupId: Integer
389
+ # @param Status: 任务状态。1表示暂停,2表示运行中,0为初始态
390
+ # @type Status: Integer
391
+ # @param AddTime: 任务创建时间
392
+ # @type AddTime: String
393
+ # @param Type: 任务类型。0 站点监控,2 可用性监控
394
+ # @type Type: Integer
395
+ # @param TopicId: 绑定的统一告警主题ID
396
+ # @type TopicId: String
397
+ # @param AlarmStatus: 告警状态。0 未启用,1, 启用
398
+ # @type AlarmStatus: Integer
399
+ # @param Host: 指定的域名
400
+ # @type Host: String
401
+ # @param Port: 拨测目标的端口号
402
+ # @type Port: Integer
403
+ # @param CheckStr: 要在结果中进行匹配的字符串
404
+ # @type CheckStr: String
405
+ # @param CheckType: 1 表示通过检查结果是否包含CheckStr 进行校验
406
+ # @type CheckType: Integer
407
+ # @param UserAgent: 用户Agent信息
408
+ # @type UserAgent: String
409
+ # @param Cookie: 设置的Cookie信息
410
+ # @type Cookie: String
411
+ # @param PostData: POST 请求数据。空字符串表示非POST请求
412
+ # @type PostData: String
413
+ # @param SslVer: SSL协议版本
414
+ # @type SslVer: String
415
+ # @param IsHeader: 是否为Header请求。非0 Header 请求
416
+ # @type IsHeader: Integer
417
+ # @param DnsSvr: 目的DNS服务器
418
+ # @type DnsSvr: String
419
+ # @param DnsCheckIp: 需要检验是否在DNS IP列表的IP
420
+ # @type DnsCheckIp: String
421
+ # @param DnsQueryType: DNS查询类型
422
+ # @type DnsQueryType: String
423
+ # @param UserName: 登录服务器的账号
424
+ # @type UserName: String
425
+ # @param PassWord: 登录服务器的密码
426
+ # @type PassWord: String
427
+ # @param UseSecConn: 是否使用安全链接SSL, 0 不使用,1 使用
428
+ # @type UseSecConn: Integer
429
+ # @param NeedAuth: FTP登录验证方式 0 不验证 1 匿名登录 2 需要身份验证
430
+ # @type NeedAuth: Integer
431
+ # @param ReqDataType: 请求数据类型。0 表示请求为字符串类型。1表示为二进制类型
432
+ # @type ReqDataType: Integer
433
+ # @param ReqData: 发起TCP, UDP请求的协议请求数据
434
+ # @type ReqData: String
435
+ # @param RespDataType: 响应数据类型。0 表示响应为字符串类型。1表示为二进制类型
436
+ # @type RespDataType: Integer
437
+ # @param RespData: 预期的UDP请求的回应数据
438
+ # @type RespData: String
439
+ # @param RedirectFollowNum: 跟随跳转次数
440
+ # @type RedirectFollowNum: Integer
441
+
442
+ attr_accessor :TaskId, :TaskName, :Period, :CatTypeName, :CgiUrl, :AgentGroupId, :PolicyGroupId, :Status, :AddTime, :Type, :TopicId, :AlarmStatus, :Host, :Port, :CheckStr, :CheckType, :UserAgent, :Cookie, :PostData, :SslVer, :IsHeader, :DnsSvr, :DnsCheckIp, :DnsQueryType, :UserName, :PassWord, :UseSecConn, :NeedAuth, :ReqDataType, :ReqData, :RespDataType, :RespData, :RedirectFollowNum
443
+
444
+ def initialize(taskid=nil, taskname=nil, period=nil, cattypename=nil, cgiurl=nil, agentgroupid=nil, policygroupid=nil, status=nil, addtime=nil, type=nil, topicid=nil, alarmstatus=nil, host=nil, port=nil, checkstr=nil, checktype=nil, useragent=nil, cookie=nil, postdata=nil, sslver=nil, isheader=nil, dnssvr=nil, dnscheckip=nil, dnsquerytype=nil, username=nil, password=nil, usesecconn=nil, needauth=nil, reqdatatype=nil, reqdata=nil, respdatatype=nil, respdata=nil, redirectfollownum=nil)
445
+ @TaskId = taskid
446
+ @TaskName = taskname
447
+ @Period = period
448
+ @CatTypeName = cattypename
449
+ @CgiUrl = cgiurl
450
+ @AgentGroupId = agentgroupid
451
+ @PolicyGroupId = policygroupid
452
+ @Status = status
453
+ @AddTime = addtime
454
+ @Type = type
455
+ @TopicId = topicid
456
+ @AlarmStatus = alarmstatus
457
+ @Host = host
458
+ @Port = port
459
+ @CheckStr = checkstr
460
+ @CheckType = checktype
461
+ @UserAgent = useragent
462
+ @Cookie = cookie
463
+ @PostData = postdata
464
+ @SslVer = sslver
465
+ @IsHeader = isheader
466
+ @DnsSvr = dnssvr
467
+ @DnsCheckIp = dnscheckip
468
+ @DnsQueryType = dnsquerytype
469
+ @UserName = username
470
+ @PassWord = password
471
+ @UseSecConn = usesecconn
472
+ @NeedAuth = needauth
473
+ @ReqDataType = reqdatatype
474
+ @ReqData = reqdata
475
+ @RespDataType = respdatatype
476
+ @RespData = respdata
477
+ @RedirectFollowNum = redirectfollownum
478
+ end
479
+
480
+ def deserialize(params)
481
+ @TaskId = params['TaskId']
482
+ @TaskName = params['TaskName']
483
+ @Period = params['Period']
484
+ @CatTypeName = params['CatTypeName']
485
+ @CgiUrl = params['CgiUrl']
486
+ @AgentGroupId = params['AgentGroupId']
487
+ @PolicyGroupId = params['PolicyGroupId']
488
+ @Status = params['Status']
489
+ @AddTime = params['AddTime']
490
+ @Type = params['Type']
491
+ @TopicId = params['TopicId']
492
+ @AlarmStatus = params['AlarmStatus']
493
+ @Host = params['Host']
494
+ @Port = params['Port']
495
+ @CheckStr = params['CheckStr']
496
+ @CheckType = params['CheckType']
497
+ @UserAgent = params['UserAgent']
498
+ @Cookie = params['Cookie']
499
+ @PostData = params['PostData']
500
+ @SslVer = params['SslVer']
501
+ @IsHeader = params['IsHeader']
502
+ @DnsSvr = params['DnsSvr']
503
+ @DnsCheckIp = params['DnsCheckIp']
504
+ @DnsQueryType = params['DnsQueryType']
505
+ @UserName = params['UserName']
506
+ @PassWord = params['PassWord']
507
+ @UseSecConn = params['UseSecConn']
508
+ @NeedAuth = params['NeedAuth']
509
+ @ReqDataType = params['ReqDataType']
510
+ @ReqData = params['ReqData']
511
+ @RespDataType = params['RespDataType']
512
+ @RespData = params['RespData']
513
+ @RedirectFollowNum = params['RedirectFollowNum']
514
+ end
515
+ end
516
+
517
+ # CreateAgentGroup请求参数结构体
518
+ class CreateAgentGroupRequest < TencentCloud::Common::AbstractModel
519
+ # @param GroupName: 拨测分组名称,不超过32个字符
520
+ # @type GroupName: String
521
+ # @param IsDefault: 是否为默认分组,取值可为 0 或 1。取 1 时表示设置为默认分组
522
+ # @type IsDefault: Integer
523
+ # @param Agents: Province, Isp 需要成对地进行选择。参数对的取值范围。参见:DescribeAgents 的返回结果。
524
+ # @type Agents: Array
525
+
526
+ attr_accessor :GroupName, :IsDefault, :Agents
527
+
528
+ def initialize(groupname=nil, isdefault=nil, agents=nil)
529
+ @GroupName = groupname
530
+ @IsDefault = isdefault
531
+ @Agents = agents
532
+ end
533
+
534
+ def deserialize(params)
535
+ @GroupName = params['GroupName']
536
+ @IsDefault = params['IsDefault']
537
+ unless params['Agents'].nil?
538
+ @Agents = []
539
+ params['Agents'].each do |i|
540
+ catagent_tmp = CatAgent.new
541
+ catagent_tmp.deserialize(i)
542
+ @Agents << catagent_tmp
543
+ end
544
+ end
545
+ end
546
+ end
547
+
548
+ # CreateAgentGroup返回参数结构体
549
+ class CreateAgentGroupResponse < TencentCloud::Common::AbstractModel
550
+ # @param GroupId: 拨测分组Id
551
+ # @type GroupId: Integer
552
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
553
+ # @type RequestId: String
554
+
555
+ attr_accessor :GroupId, :RequestId
556
+
557
+ def initialize(groupid=nil, requestid=nil)
558
+ @GroupId = groupid
559
+ @RequestId = requestid
560
+ end
561
+
562
+ def deserialize(params)
563
+ @GroupId = params['GroupId']
564
+ @RequestId = params['RequestId']
565
+ end
566
+ end
567
+
568
+ # CreateTaskEx请求参数结构体
569
+ class CreateTaskExRequest < TencentCloud::Common::AbstractModel
570
+ # @param CatTypeName: http, https, ping, tcp, ftp, smtp, udp, dns 之一
571
+ # @type CatTypeName: String
572
+ # @param Url: 拨测的URL, 例如:www.qq.com (URL域名解析需要能解析出具体的IP)
573
+ # @type Url: String
574
+ # @param Period: 拨测周期。取值可为1,5,15,30之一, 单位:分钟。精度不能低于用户等级规定的最小精度
575
+ # @type Period: Integer
576
+ # @param TaskName: 拨测任务名称不能超过32个字符。同一个用户创建的任务名不可重复
577
+ # @type TaskName: String
578
+ # @param AgentGroupId: 拨测分组ID,体现本拨测任务要采用哪些运营商作为拨测源。一般可直接填写本用户的默认拨测分组。参见:DescribeAgentGroups 接口,本参数使用返回结果里的GroupId的值。注意: Type为0时,AgentGroupId为必填
579
+ # @type AgentGroupId: Integer
580
+ # @param Host: 指定域名(如需要)
581
+ # @type Host: String
582
+ # @param IsHeader: 是否为Header请求(非0 发起Header 请求。为0,且PostData 非空,发起POST请求。为0,PostData 为空,发起GET请求)
583
+ # @type IsHeader: Integer
584
+ # @param SslVer: URL中含有"https"时有用。缺省为SSLv23。需要为 TLSv1_2, TLSv1_1, TLSv1, SSLv2, SSLv23, SSLv3 之一
585
+ # @type SslVer: String
586
+ # @param PostData: POST请求数据。空字符串表示非POST请求
587
+ # @type PostData: String
588
+ # @param UserAgent: 用户Agent信息
589
+ # @type UserAgent: String
590
+ # @param CheckStr: 要在结果中进行匹配的字符串
591
+ # @type CheckStr: String
592
+ # @param CheckType: 1 表示通过检查结果是否包含CheckStr 进行校验
593
+ # @type CheckType: Integer
594
+ # @param Cookie: 需要设置的Cookie信息
595
+ # @type Cookie: String
596
+ # @param TaskId: 任务ID,用于验证且修改任务时传入原任务ID
597
+ # @type TaskId: Integer
598
+ # @param UserName: 登录服务器的账号。如果为空字符串,表示不用校验用户密码。只做简单连接服务器的拨测
599
+ # @type UserName: String
600
+ # @param PassWord: 登录服务器的密码
601
+ # @type PassWord: String
602
+ # @param ReqDataType: 缺省为0。0 表示请求为字符串类型。1表示为二进制类型
603
+ # @type ReqDataType: Integer
604
+ # @param ReqData: 发起TCP, UDP请求的协议请求数据
605
+ # @type ReqData: String
606
+ # @param RespDataType: 缺省为0。0 表示响应为字符串类型。1表示为二进制类型
607
+ # @type RespDataType: Integer
608
+ # @param RespData: 预期的UDP请求的回应数据。字符串型,只需要返回的结果里包含本字符串算校验通过。二进制型,则需要严格等于才算通过
609
+ # @type RespData: String
610
+ # @param DnsSvr: 目的DNS服务器 可以为空字符串
611
+ # @type DnsSvr: String
612
+ # @param DnsCheckIp: 需要检验是否在DNS IP列表的IP。可以为空字符串,表示不校验
613
+ # @type DnsCheckIp: String
614
+ # @param DnsQueryType: 需要为下列值之一。缺省为A。A, MX, NS, CNAME, TXT, ANY
615
+ # @type DnsQueryType: String
616
+ # @param UseSecConn: 是否使用安全链接SSL, 0 不使用,1 使用
617
+ # @type UseSecConn: Integer
618
+ # @param NeedAuth: FTP登录验证方式, 0 不验证 , 1 匿名登录, 2 需要身份验证
619
+ # @type NeedAuth: Integer
620
+ # @param Port: 拨测目标的端口号
621
+ # @type Port: Integer
622
+ # @param Type: Type=0 默认 (站点监控)Type=2 可用率监控
623
+ # @type Type: Integer
624
+ # @param IsVerify: IsVerify=0 非验证任务 IsVerify=1 验证任务,不传则默认为0
625
+ # @type IsVerify: Integer
626
+ # @param RedirectFollowNum: 跟随跳转次数,取值范围0-5,不传则表示不跟随
627
+ # @type RedirectFollowNum: Integer
628
+
629
+ attr_accessor :CatTypeName, :Url, :Period, :TaskName, :AgentGroupId, :Host, :IsHeader, :SslVer, :PostData, :UserAgent, :CheckStr, :CheckType, :Cookie, :TaskId, :UserName, :PassWord, :ReqDataType, :ReqData, :RespDataType, :RespData, :DnsSvr, :DnsCheckIp, :DnsQueryType, :UseSecConn, :NeedAuth, :Port, :Type, :IsVerify, :RedirectFollowNum
630
+
631
+ def initialize(cattypename=nil, url=nil, period=nil, taskname=nil, agentgroupid=nil, host=nil, isheader=nil, sslver=nil, postdata=nil, useragent=nil, checkstr=nil, checktype=nil, cookie=nil, taskid=nil, username=nil, password=nil, reqdatatype=nil, reqdata=nil, respdatatype=nil, respdata=nil, dnssvr=nil, dnscheckip=nil, dnsquerytype=nil, usesecconn=nil, needauth=nil, port=nil, type=nil, isverify=nil, redirectfollownum=nil)
632
+ @CatTypeName = cattypename
633
+ @Url = url
634
+ @Period = period
635
+ @TaskName = taskname
636
+ @AgentGroupId = agentgroupid
637
+ @Host = host
638
+ @IsHeader = isheader
639
+ @SslVer = sslver
640
+ @PostData = postdata
641
+ @UserAgent = useragent
642
+ @CheckStr = checkstr
643
+ @CheckType = checktype
644
+ @Cookie = cookie
645
+ @TaskId = taskid
646
+ @UserName = username
647
+ @PassWord = password
648
+ @ReqDataType = reqdatatype
649
+ @ReqData = reqdata
650
+ @RespDataType = respdatatype
651
+ @RespData = respdata
652
+ @DnsSvr = dnssvr
653
+ @DnsCheckIp = dnscheckip
654
+ @DnsQueryType = dnsquerytype
655
+ @UseSecConn = usesecconn
656
+ @NeedAuth = needauth
657
+ @Port = port
658
+ @Type = type
659
+ @IsVerify = isverify
660
+ @RedirectFollowNum = redirectfollownum
661
+ end
662
+
663
+ def deserialize(params)
664
+ @CatTypeName = params['CatTypeName']
665
+ @Url = params['Url']
666
+ @Period = params['Period']
667
+ @TaskName = params['TaskName']
668
+ @AgentGroupId = params['AgentGroupId']
669
+ @Host = params['Host']
670
+ @IsHeader = params['IsHeader']
671
+ @SslVer = params['SslVer']
672
+ @PostData = params['PostData']
673
+ @UserAgent = params['UserAgent']
674
+ @CheckStr = params['CheckStr']
675
+ @CheckType = params['CheckType']
676
+ @Cookie = params['Cookie']
677
+ @TaskId = params['TaskId']
678
+ @UserName = params['UserName']
679
+ @PassWord = params['PassWord']
680
+ @ReqDataType = params['ReqDataType']
681
+ @ReqData = params['ReqData']
682
+ @RespDataType = params['RespDataType']
683
+ @RespData = params['RespData']
684
+ @DnsSvr = params['DnsSvr']
685
+ @DnsCheckIp = params['DnsCheckIp']
686
+ @DnsQueryType = params['DnsQueryType']
687
+ @UseSecConn = params['UseSecConn']
688
+ @NeedAuth = params['NeedAuth']
689
+ @Port = params['Port']
690
+ @Type = params['Type']
691
+ @IsVerify = params['IsVerify']
692
+ @RedirectFollowNum = params['RedirectFollowNum']
693
+ end
694
+ end
695
+
696
+ # CreateTaskEx返回参数结构体
697
+ class CreateTaskExResponse < TencentCloud::Common::AbstractModel
698
+ # @param ResultId: 拨测结果查询ID。接下来可以使用查询拨测是否能够成功,验证能否通过。
699
+ # @type ResultId: Integer
700
+ # @param TaskId: 拨测任务ID。验证通过后,创建任务时使用,传递给CreateTask 接口。
701
+ # @type TaskId: Integer
702
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
703
+ # @type RequestId: String
704
+
705
+ attr_accessor :ResultId, :TaskId, :RequestId
706
+
707
+ def initialize(resultid=nil, taskid=nil, requestid=nil)
708
+ @ResultId = resultid
709
+ @TaskId = taskid
710
+ @RequestId = requestid
711
+ end
712
+
713
+ def deserialize(params)
714
+ @ResultId = params['ResultId']
715
+ @TaskId = params['TaskId']
716
+ @RequestId = params['RequestId']
717
+ end
718
+ end
719
+
720
+ # 时延等数据,数据点
721
+ class DataPoint < TencentCloud::Common::AbstractModel
722
+ # @param LogTime: 数据点的时间
723
+ # @type LogTime: String
724
+ # @param MetricValue: 数据值
725
+ # @type MetricValue: Float
726
+
727
+ attr_accessor :LogTime, :MetricValue
728
+
729
+ def initialize(logtime=nil, metricvalue=nil)
730
+ @LogTime = logtime
731
+ @MetricValue = metricvalue
732
+ end
733
+
734
+ def deserialize(params)
735
+ @LogTime = params['LogTime']
736
+ @MetricValue = params['MetricValue']
737
+ end
738
+ end
739
+
740
+ # 包含MetricName的DataPoint数据
741
+ class DataPointMetric < TencentCloud::Common::AbstractModel
742
+ # @param MetricName: 数据项
743
+ # @type MetricName: String
744
+ # @param Points: 数据点的时间和值
745
+ # @type Points: Array
746
+
747
+ attr_accessor :MetricName, :Points
748
+
749
+ def initialize(metricname=nil, points=nil)
750
+ @MetricName = metricname
751
+ @Points = points
752
+ end
753
+
754
+ def deserialize(params)
755
+ @MetricName = params['MetricName']
756
+ unless params['Points'].nil?
757
+ @Points = []
758
+ params['Points'].each do |i|
759
+ datapoint_tmp = DataPoint.new
760
+ datapoint_tmp.deserialize(i)
761
+ @Points << datapoint_tmp
762
+ end
763
+ end
764
+ end
765
+ end
766
+
767
+ # DeleteAgentGroup请求参数结构体
768
+ class DeleteAgentGroupRequest < TencentCloud::Common::AbstractModel
769
+ # @param GroupId: 拨测分组id
770
+ # @type GroupId: Integer
771
+
772
+ attr_accessor :GroupId
773
+
774
+ def initialize(groupid=nil)
775
+ @GroupId = groupid
776
+ end
777
+
778
+ def deserialize(params)
779
+ @GroupId = params['GroupId']
780
+ end
781
+ end
782
+
783
+ # DeleteAgentGroup返回参数结构体
784
+ class DeleteAgentGroupResponse < TencentCloud::Common::AbstractModel
785
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
786
+ # @type RequestId: String
787
+
788
+ attr_accessor :RequestId
789
+
790
+ def initialize(requestid=nil)
791
+ @RequestId = requestid
792
+ end
793
+
794
+ def deserialize(params)
795
+ @RequestId = params['RequestId']
796
+ end
797
+ end
798
+
799
+ # DeleteTasks请求参数结构体
800
+ class DeleteTasksRequest < TencentCloud::Common::AbstractModel
801
+ # @param TaskIds: 拨测任务id
802
+ # @type TaskIds: Array
803
+
804
+ attr_accessor :TaskIds
805
+
806
+ def initialize(taskids=nil)
807
+ @TaskIds = taskids
808
+ end
809
+
810
+ def deserialize(params)
811
+ @TaskIds = params['TaskIds']
812
+ end
813
+ end
814
+
815
+ # DeleteTasks返回参数结构体
816
+ class DeleteTasksResponse < TencentCloud::Common::AbstractModel
817
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
818
+ # @type RequestId: String
819
+
820
+ attr_accessor :RequestId
821
+
822
+ def initialize(requestid=nil)
823
+ @RequestId = requestid
824
+ end
825
+
826
+ def deserialize(params)
827
+ @RequestId = params['RequestId']
828
+ end
829
+ end
830
+
831
+ # DescribeAgentGroups请求参数结构体
832
+ class DescribeAgentGroupsRequest < TencentCloud::Common::AbstractModel
833
+
834
+
835
+ def initialize()
836
+ end
837
+
838
+ def deserialize(params)
839
+ end
840
+ end
841
+
842
+ # DescribeAgentGroups返回参数结构体
843
+ class DescribeAgentGroupsResponse < TencentCloud::Common::AbstractModel
844
+ # @param SysDefaultGroup: 用户所属的系统默认拨测分组
845
+ # @type SysDefaultGroup: :class:`Tencentcloud::Cat.v20180409.models.AgentGroup`
846
+ # @param CustomGroups: 用户创建的拨测分组列表
847
+ # @type CustomGroups: Array
848
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
849
+ # @type RequestId: String
850
+
851
+ attr_accessor :SysDefaultGroup, :CustomGroups, :RequestId
852
+
853
+ def initialize(sysdefaultgroup=nil, customgroups=nil, requestid=nil)
854
+ @SysDefaultGroup = sysdefaultgroup
855
+ @CustomGroups = customgroups
856
+ @RequestId = requestid
857
+ end
858
+
859
+ def deserialize(params)
860
+ unless params['SysDefaultGroup'].nil?
861
+ @SysDefaultGroup = AgentGroup.new
862
+ @SysDefaultGroup.deserialize(params['SysDefaultGroup'])
863
+ end
864
+ unless params['CustomGroups'].nil?
865
+ @CustomGroups = []
866
+ params['CustomGroups'].each do |i|
867
+ agentgroup_tmp = AgentGroup.new
868
+ agentgroup_tmp.deserialize(i)
869
+ @CustomGroups << agentgroup_tmp
870
+ end
871
+ end
872
+ @RequestId = params['RequestId']
873
+ end
874
+ end
875
+
876
+ # DescribeAgents请求参数结构体
877
+ class DescribeAgentsRequest < TencentCloud::Common::AbstractModel
878
+
879
+
880
+ def initialize()
881
+ end
882
+
883
+ def deserialize(params)
884
+ end
885
+ end
886
+
887
+ # DescribeAgents返回参数结构体
888
+ class DescribeAgentsResponse < TencentCloud::Common::AbstractModel
889
+ # @param Agents: 本用户可选的拨测点列表
890
+ # @type Agents: Array
891
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
892
+ # @type RequestId: String
893
+
894
+ attr_accessor :Agents, :RequestId
895
+
896
+ def initialize(agents=nil, requestid=nil)
897
+ @Agents = agents
898
+ @RequestId = requestid
899
+ end
900
+
901
+ def deserialize(params)
902
+ unless params['Agents'].nil?
903
+ @Agents = []
904
+ params['Agents'].each do |i|
905
+ catagent_tmp = CatAgent.new
906
+ catagent_tmp.deserialize(i)
907
+ @Agents << catagent_tmp
908
+ end
909
+ end
910
+ @RequestId = params['RequestId']
911
+ end
912
+ end
913
+
914
+ # DescribeAlarmTopic请求参数结构体
915
+ class DescribeAlarmTopicRequest < TencentCloud::Common::AbstractModel
916
+ # @param NeedAdd: 如果不存在拨测相关的主题,是否自动创建一个。取值可为0, 1,默认为0
917
+ # @type NeedAdd: Integer
918
+
919
+ attr_accessor :NeedAdd
920
+
921
+ def initialize(needadd=nil)
922
+ @NeedAdd = needadd
923
+ end
924
+
925
+ def deserialize(params)
926
+ @NeedAdd = params['NeedAdd']
927
+ end
928
+ end
929
+
930
+ # DescribeAlarmTopic返回参数结构体
931
+ class DescribeAlarmTopicResponse < TencentCloud::Common::AbstractModel
932
+ # @param TotalCount: 主题个数
933
+ # @type TotalCount: Integer
934
+ # @param Topics: 主题列表
935
+ # @type Topics: Array
936
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
937
+ # @type RequestId: String
938
+
939
+ attr_accessor :TotalCount, :Topics, :RequestId
940
+
941
+ def initialize(totalcount=nil, topics=nil, requestid=nil)
942
+ @TotalCount = totalcount
943
+ @Topics = topics
944
+ @RequestId = requestid
945
+ end
946
+
947
+ def deserialize(params)
948
+ @TotalCount = params['TotalCount']
949
+ unless params['Topics'].nil?
950
+ @Topics = []
951
+ params['Topics'].each do |i|
952
+ alarmtopic_tmp = AlarmTopic.new
953
+ alarmtopic_tmp.deserialize(i)
954
+ @Topics << alarmtopic_tmp
955
+ end
956
+ end
957
+ @RequestId = params['RequestId']
958
+ end
959
+ end
960
+
961
+ # DescribeAlarmsByTask请求参数结构体
962
+ class DescribeAlarmsByTaskRequest < TencentCloud::Common::AbstractModel
963
+ # @param TaskId: 拨测任务Id
964
+ # @type TaskId: Integer
965
+ # @param Offset: 从第Offset 条开始查询。缺省值为0
966
+ # @type Offset: Integer
967
+ # @param Limit: 本批次查询Limit 条记录。缺省值为20
968
+ # @type Limit: Integer
969
+ # @param Status: 0 全部, 1 已恢复, 2 未恢复 默认为0。其他值,视为0 查全部状态
970
+ # @type Status: Integer
971
+ # @param BeginTime: 格式如:2017-05-09 00:00:00 缺省为7天前0点
972
+ # @type BeginTime: String
973
+ # @param EndTime: 格式如:2017-05-10 00:00:00 缺省为明天0点
974
+ # @type EndTime: String
975
+ # @param SortBy: 排序字段,可为Time, ObjName, Duration, Status, Content 之一。缺省为Time
976
+ # @type SortBy: String
977
+ # @param SortType: 升序或降序。可为Desc, Asc之一。缺省为Desc
978
+ # @type SortType: String
979
+ # @param ObjName: 告警对象的名称
980
+ # @type ObjName: String
981
+
982
+ attr_accessor :TaskId, :Offset, :Limit, :Status, :BeginTime, :EndTime, :SortBy, :SortType, :ObjName
983
+
984
+ def initialize(taskid=nil, offset=nil, limit=nil, status=nil, begintime=nil, endtime=nil, sortby=nil, sorttype=nil, objname=nil)
985
+ @TaskId = taskid
986
+ @Offset = offset
987
+ @Limit = limit
988
+ @Status = status
989
+ @BeginTime = begintime
990
+ @EndTime = endtime
991
+ @SortBy = sortby
992
+ @SortType = sorttype
993
+ @ObjName = objname
994
+ end
995
+
996
+ def deserialize(params)
997
+ @TaskId = params['TaskId']
998
+ @Offset = params['Offset']
999
+ @Limit = params['Limit']
1000
+ @Status = params['Status']
1001
+ @BeginTime = params['BeginTime']
1002
+ @EndTime = params['EndTime']
1003
+ @SortBy = params['SortBy']
1004
+ @SortType = params['SortType']
1005
+ @ObjName = params['ObjName']
1006
+ end
1007
+ end
1008
+
1009
+ # DescribeAlarmsByTask返回参数结构体
1010
+ class DescribeAlarmsByTaskResponse < TencentCloud::Common::AbstractModel
1011
+ # @param AlarmInfos: 告警信息列表
1012
+ # @type AlarmInfos: Array
1013
+ # @param FaultRatio: 故障率
1014
+ # @type FaultRatio: Float
1015
+ # @param FaultTimeSpec: 故障总时长
1016
+ # @type FaultTimeSpec: String
1017
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1018
+ # @type RequestId: String
1019
+
1020
+ attr_accessor :AlarmInfos, :FaultRatio, :FaultTimeSpec, :RequestId
1021
+
1022
+ def initialize(alarminfos=nil, faultratio=nil, faulttimespec=nil, requestid=nil)
1023
+ @AlarmInfos = alarminfos
1024
+ @FaultRatio = faultratio
1025
+ @FaultTimeSpec = faulttimespec
1026
+ @RequestId = requestid
1027
+ end
1028
+
1029
+ def deserialize(params)
1030
+ unless params['AlarmInfos'].nil?
1031
+ @AlarmInfos = []
1032
+ params['AlarmInfos'].each do |i|
1033
+ alarminfo_tmp = AlarmInfo.new
1034
+ alarminfo_tmp.deserialize(i)
1035
+ @AlarmInfos << alarminfo_tmp
1036
+ end
1037
+ end
1038
+ @FaultRatio = params['FaultRatio']
1039
+ @FaultTimeSpec = params['FaultTimeSpec']
1040
+ @RequestId = params['RequestId']
1041
+ end
1042
+ end
1043
+
1044
+ # DescribeAlarms请求参数结构体
1045
+ class DescribeAlarmsRequest < TencentCloud::Common::AbstractModel
1046
+ # @param Offset: 从第Offset 条开始查询。缺省值为0
1047
+ # @type Offset: Integer
1048
+ # @param Limit: 本批次查询Limit 条记录。缺省值为20
1049
+ # @type Limit: Integer
1050
+ # @param Status: 0 全部, 1 已恢复, 2 未恢复 默认为0。其他值,视为0 查全部状态。
1051
+ # @type Status: Integer
1052
+ # @param BeginTime: 格式如:2017-05-09 00:00:00 缺省为7天前0点
1053
+ # @type BeginTime: String
1054
+ # @param EndTime: 格式如:2017-05-10 00:00:00 缺省为明天0点
1055
+ # @type EndTime: String
1056
+ # @param ObjName: 告警任务名
1057
+ # @type ObjName: String
1058
+ # @param SortBy: 排序字段,可为Time, ObjName, Duration, Status, Content 之一。缺省为Time。
1059
+ # @type SortBy: String
1060
+ # @param SortType: 升序或降序。可为Desc, Asc之一。缺省为Desc。
1061
+ # @type SortType: String
1062
+
1063
+ attr_accessor :Offset, :Limit, :Status, :BeginTime, :EndTime, :ObjName, :SortBy, :SortType
1064
+
1065
+ def initialize(offset=nil, limit=nil, status=nil, begintime=nil, endtime=nil, objname=nil, sortby=nil, sorttype=nil)
1066
+ @Offset = offset
1067
+ @Limit = limit
1068
+ @Status = status
1069
+ @BeginTime = begintime
1070
+ @EndTime = endtime
1071
+ @ObjName = objname
1072
+ @SortBy = sortby
1073
+ @SortType = sorttype
1074
+ end
1075
+
1076
+ def deserialize(params)
1077
+ @Offset = params['Offset']
1078
+ @Limit = params['Limit']
1079
+ @Status = params['Status']
1080
+ @BeginTime = params['BeginTime']
1081
+ @EndTime = params['EndTime']
1082
+ @ObjName = params['ObjName']
1083
+ @SortBy = params['SortBy']
1084
+ @SortType = params['SortType']
1085
+ end
1086
+ end
1087
+
1088
+ # DescribeAlarms返回参数结构体
1089
+ class DescribeAlarmsResponse < TencentCloud::Common::AbstractModel
1090
+ # @param TotalCount: 告警总条数
1091
+ # @type TotalCount: Integer
1092
+ # @param AlarmInfos: 本批告警信息列表
1093
+ # @type AlarmInfos: Array
1094
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1095
+ # @type RequestId: String
1096
+
1097
+ attr_accessor :TotalCount, :AlarmInfos, :RequestId
1098
+
1099
+ def initialize(totalcount=nil, alarminfos=nil, requestid=nil)
1100
+ @TotalCount = totalcount
1101
+ @AlarmInfos = alarminfos
1102
+ @RequestId = requestid
1103
+ end
1104
+
1105
+ def deserialize(params)
1106
+ @TotalCount = params['TotalCount']
1107
+ unless params['AlarmInfos'].nil?
1108
+ @AlarmInfos = []
1109
+ params['AlarmInfos'].each do |i|
1110
+ alarminfo_tmp = AlarmInfo.new
1111
+ alarminfo_tmp.deserialize(i)
1112
+ @AlarmInfos << alarminfo_tmp
1113
+ end
1114
+ end
1115
+ @RequestId = params['RequestId']
1116
+ end
1117
+ end
1118
+
1119
+ # DescribeCatLogs请求参数结构体
1120
+ class DescribeCatLogsRequest < TencentCloud::Common::AbstractModel
1121
+ # @param TaskId: 拨测任务Id
1122
+ # @type TaskId: Integer
1123
+ # @param Offset: 从第Offset 条开始查询。缺省值为0
1124
+ # @type Offset: Integer
1125
+ # @param Limit: 本批次查询Limit 条记录。缺省值为20
1126
+ # @type Limit: Integer
1127
+ # @param BeginTime: 格式如:2017-05-09 00:00:00 缺省为当天0点,最多拉取1天的数据
1128
+ # @type BeginTime: String
1129
+ # @param EndTime: 格式如:2017-05-10 00:00:00 缺省为当前时间
1130
+ # @type EndTime: String
1131
+ # @param SortType: 按时间升序或降序。默认降序。可选值: Desc, Asc
1132
+ # @type SortType: String
1133
+
1134
+ attr_accessor :TaskId, :Offset, :Limit, :BeginTime, :EndTime, :SortType
1135
+
1136
+ def initialize(taskid=nil, offset=nil, limit=nil, begintime=nil, endtime=nil, sorttype=nil)
1137
+ @TaskId = taskid
1138
+ @Offset = offset
1139
+ @Limit = limit
1140
+ @BeginTime = begintime
1141
+ @EndTime = endtime
1142
+ @SortType = sorttype
1143
+ end
1144
+
1145
+ def deserialize(params)
1146
+ @TaskId = params['TaskId']
1147
+ @Offset = params['Offset']
1148
+ @Limit = params['Limit']
1149
+ @BeginTime = params['BeginTime']
1150
+ @EndTime = params['EndTime']
1151
+ @SortType = params['SortType']
1152
+ end
1153
+ end
1154
+
1155
+ # DescribeCatLogs返回参数结构体
1156
+ class DescribeCatLogsResponse < TencentCloud::Common::AbstractModel
1157
+ # @param TotalCount: 符合条件的总记录数
1158
+ # @type TotalCount: Integer
1159
+ # @param CatLogs: 拨测记录列表
1160
+ # @type CatLogs: Array
1161
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1162
+ # @type RequestId: String
1163
+
1164
+ attr_accessor :TotalCount, :CatLogs, :RequestId
1165
+
1166
+ def initialize(totalcount=nil, catlogs=nil, requestid=nil)
1167
+ @TotalCount = totalcount
1168
+ @CatLogs = catlogs
1169
+ @RequestId = requestid
1170
+ end
1171
+
1172
+ def deserialize(params)
1173
+ @TotalCount = params['TotalCount']
1174
+ unless params['CatLogs'].nil?
1175
+ @CatLogs = []
1176
+ params['CatLogs'].each do |i|
1177
+ catlog_tmp = CatLog.new
1178
+ catlog_tmp.deserialize(i)
1179
+ @CatLogs << catlog_tmp
1180
+ end
1181
+ end
1182
+ @RequestId = params['RequestId']
1183
+ end
1184
+ end
1185
+
1186
+ # DescribeTaskDetail请求参数结构体
1187
+ class DescribeTaskDetailRequest < TencentCloud::Common::AbstractModel
1188
+ # @param TaskIds: 拨测任务id 数组
1189
+ # @type TaskIds: Array
1190
+
1191
+ attr_accessor :TaskIds
1192
+
1193
+ def initialize(taskids=nil)
1194
+ @TaskIds = taskids
1195
+ end
1196
+
1197
+ def deserialize(params)
1198
+ @TaskIds = params['TaskIds']
1199
+ end
1200
+ end
1201
+
1202
+ # DescribeTaskDetail返回参数结构体
1203
+ class DescribeTaskDetailResponse < TencentCloud::Common::AbstractModel
1204
+ # @param Tasks: 拨测任务列表
1205
+ # @type Tasks: Array
1206
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1207
+ # @type RequestId: String
1208
+
1209
+ attr_accessor :Tasks, :RequestId
1210
+
1211
+ def initialize(tasks=nil, requestid=nil)
1212
+ @Tasks = tasks
1213
+ @RequestId = requestid
1214
+ end
1215
+
1216
+ def deserialize(params)
1217
+ unless params['Tasks'].nil?
1218
+ @Tasks = []
1219
+ params['Tasks'].each do |i|
1220
+ cattaskdetail_tmp = CatTaskDetail.new
1221
+ cattaskdetail_tmp.deserialize(i)
1222
+ @Tasks << cattaskdetail_tmp
1223
+ end
1224
+ end
1225
+ @RequestId = params['RequestId']
1226
+ end
1227
+ end
1228
+
1229
+ # DescribeTasksByType请求参数结构体
1230
+ class DescribeTasksByTypeRequest < TencentCloud::Common::AbstractModel
1231
+ # @param Offset: 从第Offset 条开始查询。缺省值为0
1232
+ # @type Offset: Integer
1233
+ # @param Limit: 本批次查询Limit 条记录。缺省值为20
1234
+ # @type Limit: Integer
1235
+ # @param Type: 拨测任务类型。0 站点监控,2 可用性监控。缺省值为2
1236
+ # @type Type: Integer
1237
+
1238
+ attr_accessor :Offset, :Limit, :Type
1239
+
1240
+ def initialize(offset=nil, limit=nil, type=nil)
1241
+ @Offset = offset
1242
+ @Limit = limit
1243
+ @Type = type
1244
+ end
1245
+
1246
+ def deserialize(params)
1247
+ @Offset = params['Offset']
1248
+ @Limit = params['Limit']
1249
+ @Type = params['Type']
1250
+ end
1251
+ end
1252
+
1253
+ # DescribeTasksByType返回参数结构体
1254
+ class DescribeTasksByTypeResponse < TencentCloud::Common::AbstractModel
1255
+ # @param TotalCount: 符合条件的总任务数
1256
+ # @type TotalCount: Integer
1257
+ # @param Tasks: 任务列表
1258
+ # @type Tasks: Array
1259
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1260
+ # @type RequestId: String
1261
+
1262
+ attr_accessor :TotalCount, :Tasks, :RequestId
1263
+
1264
+ def initialize(totalcount=nil, tasks=nil, requestid=nil)
1265
+ @TotalCount = totalcount
1266
+ @Tasks = tasks
1267
+ @RequestId = requestid
1268
+ end
1269
+
1270
+ def deserialize(params)
1271
+ @TotalCount = params['TotalCount']
1272
+ unless params['Tasks'].nil?
1273
+ @Tasks = []
1274
+ params['Tasks'].each do |i|
1275
+ taskalarm_tmp = TaskAlarm.new
1276
+ taskalarm_tmp.deserialize(i)
1277
+ @Tasks << taskalarm_tmp
1278
+ end
1279
+ end
1280
+ @RequestId = params['RequestId']
1281
+ end
1282
+ end
1283
+
1284
+ # DescribeUserLimit请求参数结构体
1285
+ class DescribeUserLimitRequest < TencentCloud::Common::AbstractModel
1286
+
1287
+
1288
+ def initialize()
1289
+ end
1290
+
1291
+ def deserialize(params)
1292
+ end
1293
+ end
1294
+
1295
+ # DescribeUserLimit返回参数结构体
1296
+ class DescribeUserLimitResponse < TencentCloud::Common::AbstractModel
1297
+ # @param MaxTaskNum: 用户可建立的最大任务数
1298
+ # @type MaxTaskNum: Integer
1299
+ # @param MaxAgentNum: 用户可用的最大拨测结点数
1300
+ # @type MaxAgentNum: Integer
1301
+ # @param MaxGroupNum: 用户可建立的最大拨测分组数
1302
+ # @type MaxGroupNum: Integer
1303
+ # @param MinPeriod: 用户可用的最小拨测间隔
1304
+ # @type MinPeriod: Integer
1305
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1306
+ # @type RequestId: String
1307
+
1308
+ attr_accessor :MaxTaskNum, :MaxAgentNum, :MaxGroupNum, :MinPeriod, :RequestId
1309
+
1310
+ def initialize(maxtasknum=nil, maxagentnum=nil, maxgroupnum=nil, minperiod=nil, requestid=nil)
1311
+ @MaxTaskNum = maxtasknum
1312
+ @MaxAgentNum = maxagentnum
1313
+ @MaxGroupNum = maxgroupnum
1314
+ @MinPeriod = minperiod
1315
+ @RequestId = requestid
1316
+ end
1317
+
1318
+ def deserialize(params)
1319
+ @MaxTaskNum = params['MaxTaskNum']
1320
+ @MaxAgentNum = params['MaxAgentNum']
1321
+ @MaxGroupNum = params['MaxGroupNum']
1322
+ @MinPeriod = params['MinPeriod']
1323
+ @RequestId = params['RequestId']
1324
+ end
1325
+ end
1326
+
1327
+ # 拨测点维度信息
1328
+ class DimensionsDetail < TencentCloud::Common::AbstractModel
1329
+ # @param Isp: 运营商列表
1330
+ # @type Isp: Array
1331
+ # @param Province: 省份列表
1332
+ # @type Province: Array
1333
+
1334
+ attr_accessor :Isp, :Province
1335
+
1336
+ def initialize(isp=nil, province=nil)
1337
+ @Isp = isp
1338
+ @Province = province
1339
+ end
1340
+
1341
+ def deserialize(params)
1342
+ @Isp = params['Isp']
1343
+ @Province = params['Province']
1344
+ end
1345
+ end
1346
+
1347
+ # GetAvailRatioHistory请求参数结构体
1348
+ class GetAvailRatioHistoryRequest < TencentCloud::Common::AbstractModel
1349
+ # @param TaskId: 拨测任务Id
1350
+ # @type TaskId: Integer
1351
+ # @param TimeStamp: 具体时间点
1352
+ # @type TimeStamp: String
1353
+
1354
+ attr_accessor :TaskId, :TimeStamp
1355
+
1356
+ def initialize(taskid=nil, timestamp=nil)
1357
+ @TaskId = taskid
1358
+ @TimeStamp = timestamp
1359
+ end
1360
+
1361
+ def deserialize(params)
1362
+ @TaskId = params['TaskId']
1363
+ @TimeStamp = params['TimeStamp']
1364
+ end
1365
+ end
1366
+
1367
+ # GetAvailRatioHistory返回参数结构体
1368
+ class GetAvailRatioHistoryResponse < TencentCloud::Common::AbstractModel
1369
+ # @param AvgAvailRatio: 整体平均可用率
1370
+ # @type AvgAvailRatio: Float
1371
+ # @param LowestAvailRatio: 各省份最低可用率
1372
+ # @type LowestAvailRatio: Float
1373
+ # @param LowestProvince: 可用率最低的省份
1374
+ # @type LowestProvince: String
1375
+ # @param LowestIsp: 可用率最低的运营商
1376
+ # @type LowestIsp: String
1377
+ # @param ProvinceData: 分省份的可用率数据
1378
+ # @type ProvinceData: Array
1379
+ # @param AvgTime: 国内平均耗时,单位毫秒
1380
+ # @type AvgTime: Float
1381
+ # @param AvgAvailRatio2: 国外平均可用率
1382
+ # @type AvgAvailRatio2: Float
1383
+ # @param AvgTime2: 国外平均耗时,单位毫秒
1384
+ # @type AvgTime2: Float
1385
+ # @param LowestAvailRatio2: 国外最低可用率
1386
+ # @type LowestAvailRatio2: Float
1387
+ # @param LowestProvince2: 国外可用率最低的区域
1388
+ # @type LowestProvince2: String
1389
+ # @param LowestIsp2: 国外可用率最低的运营商
1390
+ # @type LowestIsp2: String
1391
+ # @param ProvinceData2: 国外分区域的可用率数据
1392
+ # @type ProvinceData2: Array
1393
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1394
+ # @type RequestId: String
1395
+
1396
+ attr_accessor :AvgAvailRatio, :LowestAvailRatio, :LowestProvince, :LowestIsp, :ProvinceData, :AvgTime, :AvgAvailRatio2, :AvgTime2, :LowestAvailRatio2, :LowestProvince2, :LowestIsp2, :ProvinceData2, :RequestId
1397
+
1398
+ def initialize(avgavailratio=nil, lowestavailratio=nil, lowestprovince=nil, lowestisp=nil, provincedata=nil, avgtime=nil, avgavailratio2=nil, avgtime2=nil, lowestavailratio2=nil, lowestprovince2=nil, lowestisp2=nil, provincedata2=nil, requestid=nil)
1399
+ @AvgAvailRatio = avgavailratio
1400
+ @LowestAvailRatio = lowestavailratio
1401
+ @LowestProvince = lowestprovince
1402
+ @LowestIsp = lowestisp
1403
+ @ProvinceData = provincedata
1404
+ @AvgTime = avgtime
1405
+ @AvgAvailRatio2 = avgavailratio2
1406
+ @AvgTime2 = avgtime2
1407
+ @LowestAvailRatio2 = lowestavailratio2
1408
+ @LowestProvince2 = lowestprovince2
1409
+ @LowestIsp2 = lowestisp2
1410
+ @ProvinceData2 = provincedata2
1411
+ @RequestId = requestid
1412
+ end
1413
+
1414
+ def deserialize(params)
1415
+ @AvgAvailRatio = params['AvgAvailRatio']
1416
+ @LowestAvailRatio = params['LowestAvailRatio']
1417
+ @LowestProvince = params['LowestProvince']
1418
+ @LowestIsp = params['LowestIsp']
1419
+ unless params['ProvinceData'].nil?
1420
+ @ProvinceData = []
1421
+ params['ProvinceData'].each do |i|
1422
+ provincedetail_tmp = ProvinceDetail.new
1423
+ provincedetail_tmp.deserialize(i)
1424
+ @ProvinceData << provincedetail_tmp
1425
+ end
1426
+ end
1427
+ @AvgTime = params['AvgTime']
1428
+ @AvgAvailRatio2 = params['AvgAvailRatio2']
1429
+ @AvgTime2 = params['AvgTime2']
1430
+ @LowestAvailRatio2 = params['LowestAvailRatio2']
1431
+ @LowestProvince2 = params['LowestProvince2']
1432
+ @LowestIsp2 = params['LowestIsp2']
1433
+ unless params['ProvinceData2'].nil?
1434
+ @ProvinceData2 = []
1435
+ params['ProvinceData2'].each do |i|
1436
+ provincedetail_tmp = ProvinceDetail.new
1437
+ provincedetail_tmp.deserialize(i)
1438
+ @ProvinceData2 << provincedetail_tmp
1439
+ end
1440
+ end
1441
+ @RequestId = params['RequestId']
1442
+ end
1443
+ end
1444
+
1445
+ # GetDailyAvailRatio请求参数结构体
1446
+ class GetDailyAvailRatioRequest < TencentCloud::Common::AbstractModel
1447
+ # @param TaskId: 拨测任务Id
1448
+ # @type TaskId: Integer
1449
+
1450
+ attr_accessor :TaskId
1451
+
1452
+ def initialize(taskid=nil)
1453
+ @TaskId = taskid
1454
+ end
1455
+
1456
+ def deserialize(params)
1457
+ @TaskId = params['TaskId']
1458
+ end
1459
+ end
1460
+
1461
+ # GetDailyAvailRatio返回参数结构体
1462
+ class GetDailyAvailRatioResponse < TencentCloud::Common::AbstractModel
1463
+ # @param AvgAvailRatio: 整体平均可用率
1464
+ # @type AvgAvailRatio: Float
1465
+ # @param LowestAvailRatio: 各省份最低可用率
1466
+ # @type LowestAvailRatio: Float
1467
+ # @param LowestProvince: 可用率最低的省份
1468
+ # @type LowestProvince: String
1469
+ # @param ProvinceData: 分省份的可用率数据
1470
+ # @type ProvinceData: Array
1471
+ # @param AvgTime: 国内平均耗时,单位毫秒
1472
+ # @type AvgTime: Float
1473
+ # @param AvgAvailRatio2: 国外平均可用率
1474
+ # @type AvgAvailRatio2: Float
1475
+ # @param AvgTime2: 国外平均耗时,单位毫秒
1476
+ # @type AvgTime2: Float
1477
+ # @param LowestAvailRatio2: 国外最低可用率
1478
+ # @type LowestAvailRatio2: Float
1479
+ # @param LowestProvince2: 国外可用率最低的区域
1480
+ # @type LowestProvince2: String
1481
+ # @param ProvinceData2: 国外分区域的可用率数据
1482
+ # @type ProvinceData2: Array
1483
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1484
+ # @type RequestId: String
1485
+
1486
+ attr_accessor :AvgAvailRatio, :LowestAvailRatio, :LowestProvince, :ProvinceData, :AvgTime, :AvgAvailRatio2, :AvgTime2, :LowestAvailRatio2, :LowestProvince2, :ProvinceData2, :RequestId
1487
+
1488
+ def initialize(avgavailratio=nil, lowestavailratio=nil, lowestprovince=nil, provincedata=nil, avgtime=nil, avgavailratio2=nil, avgtime2=nil, lowestavailratio2=nil, lowestprovince2=nil, provincedata2=nil, requestid=nil)
1489
+ @AvgAvailRatio = avgavailratio
1490
+ @LowestAvailRatio = lowestavailratio
1491
+ @LowestProvince = lowestprovince
1492
+ @ProvinceData = provincedata
1493
+ @AvgTime = avgtime
1494
+ @AvgAvailRatio2 = avgavailratio2
1495
+ @AvgTime2 = avgtime2
1496
+ @LowestAvailRatio2 = lowestavailratio2
1497
+ @LowestProvince2 = lowestprovince2
1498
+ @ProvinceData2 = provincedata2
1499
+ @RequestId = requestid
1500
+ end
1501
+
1502
+ def deserialize(params)
1503
+ @AvgAvailRatio = params['AvgAvailRatio']
1504
+ @LowestAvailRatio = params['LowestAvailRatio']
1505
+ @LowestProvince = params['LowestProvince']
1506
+ unless params['ProvinceData'].nil?
1507
+ @ProvinceData = []
1508
+ params['ProvinceData'].each do |i|
1509
+ provincedetail_tmp = ProvinceDetail.new
1510
+ provincedetail_tmp.deserialize(i)
1511
+ @ProvinceData << provincedetail_tmp
1512
+ end
1513
+ end
1514
+ @AvgTime = params['AvgTime']
1515
+ @AvgAvailRatio2 = params['AvgAvailRatio2']
1516
+ @AvgTime2 = params['AvgTime2']
1517
+ @LowestAvailRatio2 = params['LowestAvailRatio2']
1518
+ @LowestProvince2 = params['LowestProvince2']
1519
+ unless params['ProvinceData2'].nil?
1520
+ @ProvinceData2 = []
1521
+ params['ProvinceData2'].each do |i|
1522
+ provincedetail_tmp = ProvinceDetail.new
1523
+ provincedetail_tmp.deserialize(i)
1524
+ @ProvinceData2 << provincedetail_tmp
1525
+ end
1526
+ end
1527
+ @RequestId = params['RequestId']
1528
+ end
1529
+ end
1530
+
1531
+ # GetRealAvailRatio请求参数结构体
1532
+ class GetRealAvailRatioRequest < TencentCloud::Common::AbstractModel
1533
+ # @param TaskId: 拨测任务Id
1534
+ # @type TaskId: Integer
1535
+
1536
+ attr_accessor :TaskId
1537
+
1538
+ def initialize(taskid=nil)
1539
+ @TaskId = taskid
1540
+ end
1541
+
1542
+ def deserialize(params)
1543
+ @TaskId = params['TaskId']
1544
+ end
1545
+ end
1546
+
1547
+ # GetRealAvailRatio返回参数结构体
1548
+ class GetRealAvailRatioResponse < TencentCloud::Common::AbstractModel
1549
+ # @param AvgAvailRatio: 国内平均可用率
1550
+ # @type AvgAvailRatio: Float
1551
+ # @param LowestAvailRatio: 各省份最低可用率
1552
+ # @type LowestAvailRatio: Float
1553
+ # @param LowestProvince: 可用率最低的省份
1554
+ # @type LowestProvince: String
1555
+ # @param LowestIsp: 可用率最低的运营商
1556
+ # @type LowestIsp: String
1557
+ # @param ProvinceData: 分省份的可用率数据
1558
+ # @type ProvinceData: Array
1559
+ # @param AvgTime: 国内平均耗时,单位毫秒
1560
+ # @type AvgTime: Float
1561
+ # @param AvgAvailRatio2: 国外平均可用率
1562
+ # @type AvgAvailRatio2: Float
1563
+ # @param AvgTime2: 国外平均耗时,单位毫秒
1564
+ # @type AvgTime2: Float
1565
+ # @param LowestAvailRatio2: 国外最低可用率
1566
+ # @type LowestAvailRatio2: Float
1567
+ # @param LowestProvince2: 国外可用率最低的区域
1568
+ # @type LowestProvince2: String
1569
+ # @param LowestIsp2: 国外可用率最低的运营商
1570
+ # @type LowestIsp2: String
1571
+ # @param ProvinceData2: 国外分区域的可用率数据
1572
+ # @type ProvinceData2: Array
1573
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1574
+ # @type RequestId: String
1575
+
1576
+ attr_accessor :AvgAvailRatio, :LowestAvailRatio, :LowestProvince, :LowestIsp, :ProvinceData, :AvgTime, :AvgAvailRatio2, :AvgTime2, :LowestAvailRatio2, :LowestProvince2, :LowestIsp2, :ProvinceData2, :RequestId
1577
+
1578
+ def initialize(avgavailratio=nil, lowestavailratio=nil, lowestprovince=nil, lowestisp=nil, provincedata=nil, avgtime=nil, avgavailratio2=nil, avgtime2=nil, lowestavailratio2=nil, lowestprovince2=nil, lowestisp2=nil, provincedata2=nil, requestid=nil)
1579
+ @AvgAvailRatio = avgavailratio
1580
+ @LowestAvailRatio = lowestavailratio
1581
+ @LowestProvince = lowestprovince
1582
+ @LowestIsp = lowestisp
1583
+ @ProvinceData = provincedata
1584
+ @AvgTime = avgtime
1585
+ @AvgAvailRatio2 = avgavailratio2
1586
+ @AvgTime2 = avgtime2
1587
+ @LowestAvailRatio2 = lowestavailratio2
1588
+ @LowestProvince2 = lowestprovince2
1589
+ @LowestIsp2 = lowestisp2
1590
+ @ProvinceData2 = provincedata2
1591
+ @RequestId = requestid
1592
+ end
1593
+
1594
+ def deserialize(params)
1595
+ @AvgAvailRatio = params['AvgAvailRatio']
1596
+ @LowestAvailRatio = params['LowestAvailRatio']
1597
+ @LowestProvince = params['LowestProvince']
1598
+ @LowestIsp = params['LowestIsp']
1599
+ unless params['ProvinceData'].nil?
1600
+ @ProvinceData = []
1601
+ params['ProvinceData'].each do |i|
1602
+ provincedetail_tmp = ProvinceDetail.new
1603
+ provincedetail_tmp.deserialize(i)
1604
+ @ProvinceData << provincedetail_tmp
1605
+ end
1606
+ end
1607
+ @AvgTime = params['AvgTime']
1608
+ @AvgAvailRatio2 = params['AvgAvailRatio2']
1609
+ @AvgTime2 = params['AvgTime2']
1610
+ @LowestAvailRatio2 = params['LowestAvailRatio2']
1611
+ @LowestProvince2 = params['LowestProvince2']
1612
+ @LowestIsp2 = params['LowestIsp2']
1613
+ unless params['ProvinceData2'].nil?
1614
+ @ProvinceData2 = []
1615
+ params['ProvinceData2'].each do |i|
1616
+ provincedetail_tmp = ProvinceDetail.new
1617
+ provincedetail_tmp.deserialize(i)
1618
+ @ProvinceData2 << provincedetail_tmp
1619
+ end
1620
+ end
1621
+ @RequestId = params['RequestId']
1622
+ end
1623
+ end
1624
+
1625
+ # GetRespTimeTrendEx请求参数结构体
1626
+ class GetRespTimeTrendExRequest < TencentCloud::Common::AbstractModel
1627
+ # @param TaskId: 验证成功的拨测任务id
1628
+ # @type TaskId: Integer
1629
+ # @param Date: 统计数据的发生日期。格式如:2017-05-09
1630
+ # @type Date: String
1631
+ # @param Period: 数据的采集周期,单位分钟。取值可为 1, 5, 15, 30
1632
+ # @type Period: Integer
1633
+ # @param Dimensions: 可为 Isp, Province
1634
+ # @type Dimensions: :class:`Tencentcloud::Cat.v20180409.models.DimensionsDetail`
1635
+ # @param MetricName: 可为 totalTime, parseTime, connectTime, sendTime, waitTime, receiveTime, availRatio。缺省值为 totalTime
1636
+ # @type MetricName: String
1637
+
1638
+ attr_accessor :TaskId, :Date, :Period, :Dimensions, :MetricName
1639
+
1640
+ def initialize(taskid=nil, date=nil, period=nil, dimensions=nil, metricname=nil)
1641
+ @TaskId = taskid
1642
+ @Date = date
1643
+ @Period = period
1644
+ @Dimensions = dimensions
1645
+ @MetricName = metricname
1646
+ end
1647
+
1648
+ def deserialize(params)
1649
+ @TaskId = params['TaskId']
1650
+ @Date = params['Date']
1651
+ @Period = params['Period']
1652
+ unless params['Dimensions'].nil?
1653
+ @Dimensions = DimensionsDetail.new
1654
+ @Dimensions.deserialize(params['Dimensions'])
1655
+ end
1656
+ @MetricName = params['MetricName']
1657
+ end
1658
+ end
1659
+
1660
+ # GetRespTimeTrendEx返回参数结构体
1661
+ class GetRespTimeTrendExResponse < TencentCloud::Common::AbstractModel
1662
+ # @param DataPoints: 数据点集合,时延等走势数据
1663
+ # @type DataPoints: Array
1664
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1665
+ # @type RequestId: String
1666
+
1667
+ attr_accessor :DataPoints, :RequestId
1668
+
1669
+ def initialize(datapoints=nil, requestid=nil)
1670
+ @DataPoints = datapoints
1671
+ @RequestId = requestid
1672
+ end
1673
+
1674
+ def deserialize(params)
1675
+ unless params['DataPoints'].nil?
1676
+ @DataPoints = []
1677
+ params['DataPoints'].each do |i|
1678
+ datapointmetric_tmp = DataPointMetric.new
1679
+ datapointmetric_tmp.deserialize(i)
1680
+ @DataPoints << datapointmetric_tmp
1681
+ end
1682
+ end
1683
+ @RequestId = params['RequestId']
1684
+ end
1685
+ end
1686
+
1687
+ # GetResultSummary请求参数结构体
1688
+ class GetResultSummaryRequest < TencentCloud::Common::AbstractModel
1689
+ # @param TaskIds: 任务Id列表
1690
+ # @type TaskIds: Array
1691
+
1692
+ attr_accessor :TaskIds
1693
+
1694
+ def initialize(taskids=nil)
1695
+ @TaskIds = taskids
1696
+ end
1697
+
1698
+ def deserialize(params)
1699
+ @TaskIds = params['TaskIds']
1700
+ end
1701
+ end
1702
+
1703
+ # GetResultSummary返回参数结构体
1704
+ class GetResultSummaryResponse < TencentCloud::Common::AbstractModel
1705
+ # @param RealData: 实时统计数据
1706
+ # @type RealData: Array
1707
+ # @param DayData: 按天的统计数据
1708
+ # @type DayData: Array
1709
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1710
+ # @type RequestId: String
1711
+
1712
+ attr_accessor :RealData, :DayData, :RequestId
1713
+
1714
+ def initialize(realdata=nil, daydata=nil, requestid=nil)
1715
+ @RealData = realdata
1716
+ @DayData = daydata
1717
+ @RequestId = requestid
1718
+ end
1719
+
1720
+ def deserialize(params)
1721
+ unless params['RealData'].nil?
1722
+ @RealData = []
1723
+ params['RealData'].each do |i|
1724
+ resultsummary_tmp = ResultSummary.new
1725
+ resultsummary_tmp.deserialize(i)
1726
+ @RealData << resultsummary_tmp
1727
+ end
1728
+ end
1729
+ unless params['DayData'].nil?
1730
+ @DayData = []
1731
+ params['DayData'].each do |i|
1732
+ resultsummary_tmp = ResultSummary.new
1733
+ resultsummary_tmp.deserialize(i)
1734
+ @DayData << resultsummary_tmp
1735
+ end
1736
+ end
1737
+ @RequestId = params['RequestId']
1738
+ end
1739
+ end
1740
+
1741
+ # GetReturnCodeHistory请求参数结构体
1742
+ class GetReturnCodeHistoryRequest < TencentCloud::Common::AbstractModel
1743
+ # @param TaskId: 正整数。验证成功的拨测任务id
1744
+ # @type TaskId: Integer
1745
+ # @param BeginTime: 开始时间点。格式如:2017-05-09 10:20:00。注意,BeginTime 和 EndTime 需要在同一天
1746
+ # @type BeginTime: String
1747
+ # @param EndTime: 结束时间点。格式如:2017-05-09 10:25:00。注意,BeginTime 和 EndTime 需要在同一天
1748
+ # @type EndTime: String
1749
+ # @param Province: 省份名称的全拼
1750
+ # @type Province: String
1751
+
1752
+ attr_accessor :TaskId, :BeginTime, :EndTime, :Province
1753
+
1754
+ def initialize(taskid=nil, begintime=nil, endtime=nil, province=nil)
1755
+ @TaskId = taskid
1756
+ @BeginTime = begintime
1757
+ @EndTime = endtime
1758
+ @Province = province
1759
+ end
1760
+
1761
+ def deserialize(params)
1762
+ @TaskId = params['TaskId']
1763
+ @BeginTime = params['BeginTime']
1764
+ @EndTime = params['EndTime']
1765
+ @Province = params['Province']
1766
+ end
1767
+ end
1768
+
1769
+ # GetReturnCodeHistory返回参数结构体
1770
+ class GetReturnCodeHistoryResponse < TencentCloud::Common::AbstractModel
1771
+ # @param Details: 拨测失败详情列表
1772
+ # @type Details: Array
1773
+ # @param Summary: 拨测失败汇总列表
1774
+ # @type Summary: Array
1775
+ # @param BeginTime: 开始时间
1776
+ # @type BeginTime: String
1777
+ # @param EndTime: 截至时间
1778
+ # @type EndTime: String
1779
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1780
+ # @type RequestId: String
1781
+
1782
+ attr_accessor :Details, :Summary, :BeginTime, :EndTime, :RequestId
1783
+
1784
+ def initialize(details=nil, summary=nil, begintime=nil, endtime=nil, requestid=nil)
1785
+ @Details = details
1786
+ @Summary = summary
1787
+ @BeginTime = begintime
1788
+ @EndTime = endtime
1789
+ @RequestId = requestid
1790
+ end
1791
+
1792
+ def deserialize(params)
1793
+ unless params['Details'].nil?
1794
+ @Details = []
1795
+ params['Details'].each do |i|
1796
+ catreturndetail_tmp = CatReturnDetail.new
1797
+ catreturndetail_tmp.deserialize(i)
1798
+ @Details << catreturndetail_tmp
1799
+ end
1800
+ end
1801
+ unless params['Summary'].nil?
1802
+ @Summary = []
1803
+ params['Summary'].each do |i|
1804
+ catreturnsummary_tmp = CatReturnSummary.new
1805
+ catreturnsummary_tmp.deserialize(i)
1806
+ @Summary << catreturnsummary_tmp
1807
+ end
1808
+ end
1809
+ @BeginTime = params['BeginTime']
1810
+ @EndTime = params['EndTime']
1811
+ @RequestId = params['RequestId']
1812
+ end
1813
+ end
1814
+
1815
+ # GetReturnCodeInfo请求参数结构体
1816
+ class GetReturnCodeInfoRequest < TencentCloud::Common::AbstractModel
1817
+ # @param TaskId: 正整数。验证成功的拨测任务id
1818
+ # @type TaskId: Integer
1819
+ # @param BeginTime: 开始时间点。格式如:2017-05-09 10:20:00,最多拉群两天的数据
1820
+ # @type BeginTime: String
1821
+ # @param EndTime: 结束时间点。格式如:2017-05-09 10:25:00,最多拉群两天的数据
1822
+ # @type EndTime: String
1823
+ # @param Province: 省份名称的全拼
1824
+ # @type Province: String
1825
+
1826
+ attr_accessor :TaskId, :BeginTime, :EndTime, :Province
1827
+
1828
+ def initialize(taskid=nil, begintime=nil, endtime=nil, province=nil)
1829
+ @TaskId = taskid
1830
+ @BeginTime = begintime
1831
+ @EndTime = endtime
1832
+ @Province = province
1833
+ end
1834
+
1835
+ def deserialize(params)
1836
+ @TaskId = params['TaskId']
1837
+ @BeginTime = params['BeginTime']
1838
+ @EndTime = params['EndTime']
1839
+ @Province = params['Province']
1840
+ end
1841
+ end
1842
+
1843
+ # GetReturnCodeInfo返回参数结构体
1844
+ class GetReturnCodeInfoResponse < TencentCloud::Common::AbstractModel
1845
+ # @param Details: 拨测失败详情列表
1846
+ # @type Details: Array
1847
+ # @param Summary: 拨测失败汇总列表
1848
+ # @type Summary: Array
1849
+ # @param BeginTime: 开始时间
1850
+ # @type BeginTime: String
1851
+ # @param EndTime: 截至时间
1852
+ # @type EndTime: String
1853
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1854
+ # @type RequestId: String
1855
+
1856
+ attr_accessor :Details, :Summary, :BeginTime, :EndTime, :RequestId
1857
+
1858
+ def initialize(details=nil, summary=nil, begintime=nil, endtime=nil, requestid=nil)
1859
+ @Details = details
1860
+ @Summary = summary
1861
+ @BeginTime = begintime
1862
+ @EndTime = endtime
1863
+ @RequestId = requestid
1864
+ end
1865
+
1866
+ def deserialize(params)
1867
+ unless params['Details'].nil?
1868
+ @Details = []
1869
+ params['Details'].each do |i|
1870
+ catreturndetail_tmp = CatReturnDetail.new
1871
+ catreturndetail_tmp.deserialize(i)
1872
+ @Details << catreturndetail_tmp
1873
+ end
1874
+ end
1875
+ unless params['Summary'].nil?
1876
+ @Summary = []
1877
+ params['Summary'].each do |i|
1878
+ catreturnsummary_tmp = CatReturnSummary.new
1879
+ catreturnsummary_tmp.deserialize(i)
1880
+ @Summary << catreturnsummary_tmp
1881
+ end
1882
+ end
1883
+ @BeginTime = params['BeginTime']
1884
+ @EndTime = params['EndTime']
1885
+ @RequestId = params['RequestId']
1886
+ end
1887
+ end
1888
+
1889
+ # GetTaskTotalNumber请求参数结构体
1890
+ class GetTaskTotalNumberRequest < TencentCloud::Common::AbstractModel
1891
+
1892
+
1893
+ def initialize()
1894
+ end
1895
+
1896
+ def deserialize(params)
1897
+ end
1898
+ end
1899
+
1900
+ # GetTaskTotalNumber返回参数结构体
1901
+ class GetTaskTotalNumberResponse < TencentCloud::Common::AbstractModel
1902
+ # @param TotalCount: 拨测任务总数
1903
+ # @type TotalCount: Integer
1904
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1905
+ # @type RequestId: String
1906
+
1907
+ attr_accessor :TotalCount, :RequestId
1908
+
1909
+ def initialize(totalcount=nil, requestid=nil)
1910
+ @TotalCount = totalcount
1911
+ @RequestId = requestid
1912
+ end
1913
+
1914
+ def deserialize(params)
1915
+ @TotalCount = params['TotalCount']
1916
+ @RequestId = params['RequestId']
1917
+ end
1918
+ end
1919
+
1920
+ # 运营商可用率
1921
+ class IspDetail < TencentCloud::Common::AbstractModel
1922
+ # @param IspName: 运营商名称
1923
+ # @type IspName: String
1924
+ # @param AvailRatio: 可用率
1925
+ # @type AvailRatio: Float
1926
+ # @param AvgTime: 平均耗时
1927
+ # 注意:此字段可能返回 null,表示取不到有效值。
1928
+ # @type AvgTime: Float
1929
+
1930
+ attr_accessor :IspName, :AvailRatio, :AvgTime
1931
+
1932
+ def initialize(ispname=nil, availratio=nil, avgtime=nil)
1933
+ @IspName = ispname
1934
+ @AvailRatio = availratio
1935
+ @AvgTime = avgtime
1936
+ end
1937
+
1938
+ def deserialize(params)
1939
+ @IspName = params['IspName']
1940
+ @AvailRatio = params['AvailRatio']
1941
+ @AvgTime = params['AvgTime']
1942
+ end
1943
+ end
1944
+
1945
+ # ModifyAgentGroup请求参数结构体
1946
+ class ModifyAgentGroupRequest < TencentCloud::Common::AbstractModel
1947
+ # @param GroupId: 拨测分组ID
1948
+ # @type GroupId: Integer
1949
+ # @param GroupName: 拨测分组名称
1950
+ # @type GroupName: String
1951
+ # @param IsDefault: 是否为默认分组。取值可为0,1。取 1 时表示设置为默认分组
1952
+ # @type IsDefault: Integer
1953
+ # @param Agents: Province, Isp 需要成对地进行选择。参数对的取值范围。参见:DescribeAgents 的返回结果。
1954
+ # @type Agents: Array
1955
+
1956
+ attr_accessor :GroupId, :GroupName, :IsDefault, :Agents
1957
+
1958
+ def initialize(groupid=nil, groupname=nil, isdefault=nil, agents=nil)
1959
+ @GroupId = groupid
1960
+ @GroupName = groupname
1961
+ @IsDefault = isdefault
1962
+ @Agents = agents
1963
+ end
1964
+
1965
+ def deserialize(params)
1966
+ @GroupId = params['GroupId']
1967
+ @GroupName = params['GroupName']
1968
+ @IsDefault = params['IsDefault']
1969
+ unless params['Agents'].nil?
1970
+ @Agents = []
1971
+ params['Agents'].each do |i|
1972
+ catagent_tmp = CatAgent.new
1973
+ catagent_tmp.deserialize(i)
1974
+ @Agents << catagent_tmp
1975
+ end
1976
+ end
1977
+ end
1978
+ end
1979
+
1980
+ # ModifyAgentGroup返回参数结构体
1981
+ class ModifyAgentGroupResponse < TencentCloud::Common::AbstractModel
1982
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1983
+ # @type RequestId: String
1984
+
1985
+ attr_accessor :RequestId
1986
+
1987
+ def initialize(requestid=nil)
1988
+ @RequestId = requestid
1989
+ end
1990
+
1991
+ def deserialize(params)
1992
+ @RequestId = params['RequestId']
1993
+ end
1994
+ end
1995
+
1996
+ # ModifyTaskEx请求参数结构体
1997
+ class ModifyTaskExRequest < TencentCloud::Common::AbstractModel
1998
+ # @param CatTypeName: http, https, ping, tcp, ftp, smtp, udp, dns 之一
1999
+ # @type CatTypeName: String
2000
+ # @param Url: 拨测的URL,例如:www.qq.com (URL域名解析需要能解析出具体的IP)
2001
+ # @type Url: String
2002
+ # @param Period: 拨测周期。取值可为1,5,15,30之一, 单位:分钟。精度不能低于用户等级规定的最小精度
2003
+ # @type Period: Integer
2004
+ # @param TaskName: 拨测任务名称不能超过32个字符。同一个用户创建的任务名不可重复
2005
+ # @type TaskName: String
2006
+ # @param TaskId: 验证成功的拨测任务ID
2007
+ # @type TaskId: Integer
2008
+ # @param AgentGroupId: 拨测分组ID,体现本拨测任务要采用哪些运营商作为拨测源。一般可直接填写本用户的默认拨测分组。参见:DescribeAgentGroupList 接口,本参数使用返回结果里的GroupId的值。注意,Type为0时,AgentGroupId为必填
2009
+ # @type AgentGroupId: Integer
2010
+ # @param Host: 指定域名(如需要)
2011
+ # @type Host: String
2012
+ # @param Port: 拨测目标的端口号
2013
+ # @type Port: Integer
2014
+ # @param IsHeader: 是否为Header请求(非0 发起Header 请求。为0,且PostData非空,发起POST请求。为0,PostData为空,发起GET请求)
2015
+ # @type IsHeader: Integer
2016
+ # @param SslVer: URL中含有"https"时有用。缺省为SSLv23。需要为 TLSv1_2, TLSv1_1, TLSv1, SSLv2, SSLv23, SSLv3 之一
2017
+ # @type SslVer: String
2018
+ # @param PostData: POST 请求数据,空字符串表示非POST请求
2019
+ # @type PostData: String
2020
+ # @param UserAgent: 用户Agent信息
2021
+ # @type UserAgent: String
2022
+ # @param CheckStr: 要在结果中进行匹配的字符串
2023
+ # @type CheckStr: String
2024
+ # @param CheckType: 1 表示通过检查结果是否包含CheckStr 进行校验
2025
+ # @type CheckType: Integer
2026
+ # @param Cookie: 需要设置的Cookie信息
2027
+ # @type Cookie: String
2028
+ # @param UserName: 登录服务器的账号。如果为空字符串,表示不用校验用户密码。只做简单连接服务器的拨测
2029
+ # @type UserName: String
2030
+ # @param PassWord: 登录服务器的密码
2031
+ # @type PassWord: String
2032
+ # @param ReqDataType: 缺省为0,0 表示请求为字符串类型, 1表示为二进制类型
2033
+ # @type ReqDataType: Integer
2034
+ # @param ReqData: 发起TCP, UDP请求的协议请求数据
2035
+ # @type ReqData: String
2036
+ # @param RespDataType: 缺省为0。0 表示请求为字符串类型。1表示为二进制类型
2037
+ # @type RespDataType: String
2038
+ # @param RespData: 预期的UDP请求的回应数据。字符串型,只需要返回的结果里包含本字符串算校验通过。二进制型,则需要严格等于才算通过
2039
+ # @type RespData: String
2040
+ # @param DnsSvr: 目的DNS服务器,可以为空字符串
2041
+ # @type DnsSvr: String
2042
+ # @param DnsCheckIp: 需要检验是否在DNS IP列表的IP。可以为空字符串,表示不校验
2043
+ # @type DnsCheckIp: String
2044
+ # @param DnsQueryType: 需要为下列值之一。缺省为A。A, MX, NS, CNAME, TXT, ANY
2045
+ # @type DnsQueryType: String
2046
+ # @param UseSecConn: 是否使用安全链接SSL, 0 不使用,1 使用
2047
+ # @type UseSecConn: Integer
2048
+ # @param NeedAuth: FTP登录验证方式, 0 不验证 1 匿名登录 2 需要身份验证
2049
+ # @type NeedAuth: Integer
2050
+ # @param Type: Type=0 默认 (站点监控) Type=2 可用率监控
2051
+ # @type Type: Integer
2052
+ # @param RedirectFollowNum: 跟随跳转次数,取值范围0-5,不传则表示不跟随
2053
+ # @type RedirectFollowNum: Integer
2054
+
2055
+ attr_accessor :CatTypeName, :Url, :Period, :TaskName, :TaskId, :AgentGroupId, :Host, :Port, :IsHeader, :SslVer, :PostData, :UserAgent, :CheckStr, :CheckType, :Cookie, :UserName, :PassWord, :ReqDataType, :ReqData, :RespDataType, :RespData, :DnsSvr, :DnsCheckIp, :DnsQueryType, :UseSecConn, :NeedAuth, :Type, :RedirectFollowNum
2056
+
2057
+ def initialize(cattypename=nil, url=nil, period=nil, taskname=nil, taskid=nil, agentgroupid=nil, host=nil, port=nil, isheader=nil, sslver=nil, postdata=nil, useragent=nil, checkstr=nil, checktype=nil, cookie=nil, username=nil, password=nil, reqdatatype=nil, reqdata=nil, respdatatype=nil, respdata=nil, dnssvr=nil, dnscheckip=nil, dnsquerytype=nil, usesecconn=nil, needauth=nil, type=nil, redirectfollownum=nil)
2058
+ @CatTypeName = cattypename
2059
+ @Url = url
2060
+ @Period = period
2061
+ @TaskName = taskname
2062
+ @TaskId = taskid
2063
+ @AgentGroupId = agentgroupid
2064
+ @Host = host
2065
+ @Port = port
2066
+ @IsHeader = isheader
2067
+ @SslVer = sslver
2068
+ @PostData = postdata
2069
+ @UserAgent = useragent
2070
+ @CheckStr = checkstr
2071
+ @CheckType = checktype
2072
+ @Cookie = cookie
2073
+ @UserName = username
2074
+ @PassWord = password
2075
+ @ReqDataType = reqdatatype
2076
+ @ReqData = reqdata
2077
+ @RespDataType = respdatatype
2078
+ @RespData = respdata
2079
+ @DnsSvr = dnssvr
2080
+ @DnsCheckIp = dnscheckip
2081
+ @DnsQueryType = dnsquerytype
2082
+ @UseSecConn = usesecconn
2083
+ @NeedAuth = needauth
2084
+ @Type = type
2085
+ @RedirectFollowNum = redirectfollownum
2086
+ end
2087
+
2088
+ def deserialize(params)
2089
+ @CatTypeName = params['CatTypeName']
2090
+ @Url = params['Url']
2091
+ @Period = params['Period']
2092
+ @TaskName = params['TaskName']
2093
+ @TaskId = params['TaskId']
2094
+ @AgentGroupId = params['AgentGroupId']
2095
+ @Host = params['Host']
2096
+ @Port = params['Port']
2097
+ @IsHeader = params['IsHeader']
2098
+ @SslVer = params['SslVer']
2099
+ @PostData = params['PostData']
2100
+ @UserAgent = params['UserAgent']
2101
+ @CheckStr = params['CheckStr']
2102
+ @CheckType = params['CheckType']
2103
+ @Cookie = params['Cookie']
2104
+ @UserName = params['UserName']
2105
+ @PassWord = params['PassWord']
2106
+ @ReqDataType = params['ReqDataType']
2107
+ @ReqData = params['ReqData']
2108
+ @RespDataType = params['RespDataType']
2109
+ @RespData = params['RespData']
2110
+ @DnsSvr = params['DnsSvr']
2111
+ @DnsCheckIp = params['DnsCheckIp']
2112
+ @DnsQueryType = params['DnsQueryType']
2113
+ @UseSecConn = params['UseSecConn']
2114
+ @NeedAuth = params['NeedAuth']
2115
+ @Type = params['Type']
2116
+ @RedirectFollowNum = params['RedirectFollowNum']
2117
+ end
2118
+ end
2119
+
2120
+ # ModifyTaskEx返回参数结构体
2121
+ class ModifyTaskExResponse < TencentCloud::Common::AbstractModel
2122
+ # @param TaskId: 拨测任务ID。验证通过后,创建任务时使用,传递给CreateTask 接口。
2123
+ # @type TaskId: Integer
2124
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2125
+ # @type RequestId: String
2126
+
2127
+ attr_accessor :TaskId, :RequestId
2128
+
2129
+ def initialize(taskid=nil, requestid=nil)
2130
+ @TaskId = taskid
2131
+ @RequestId = requestid
2132
+ end
2133
+
2134
+ def deserialize(params)
2135
+ @TaskId = params['TaskId']
2136
+ @RequestId = params['RequestId']
2137
+ end
2138
+ end
2139
+
2140
+ # PauseTask请求参数结构体
2141
+ class PauseTaskRequest < TencentCloud::Common::AbstractModel
2142
+ # @param TaskId: 拨测任务id
2143
+ # @type TaskId: Integer
2144
+
2145
+ attr_accessor :TaskId
2146
+
2147
+ def initialize(taskid=nil)
2148
+ @TaskId = taskid
2149
+ end
2150
+
2151
+ def deserialize(params)
2152
+ @TaskId = params['TaskId']
2153
+ end
2154
+ end
2155
+
2156
+ # PauseTask返回参数结构体
2157
+ class PauseTaskResponse < TencentCloud::Common::AbstractModel
2158
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2159
+ # @type RequestId: String
2160
+
2161
+ attr_accessor :RequestId
2162
+
2163
+ def initialize(requestid=nil)
2164
+ @RequestId = requestid
2165
+ end
2166
+
2167
+ def deserialize(params)
2168
+ @RequestId = params['RequestId']
2169
+ end
2170
+ end
2171
+
2172
+ # 省份可用率
2173
+ class ProvinceDetail < TencentCloud::Common::AbstractModel
2174
+ # @param AvgAvailRatio: 可用率
2175
+ # @type AvgAvailRatio: Float
2176
+ # @param ProvinceName: 省份名称
2177
+ # @type ProvinceName: String
2178
+ # @param Mapkey: 省份英文名称
2179
+ # @type Mapkey: String
2180
+ # @param TimeStamp: 统计时间点
2181
+ # @type TimeStamp: String
2182
+ # @param IspDetail: 分运营商可用率
2183
+ # @type IspDetail: Array
2184
+ # @param AvgTime: 平均耗时,单位毫秒
2185
+ # @type AvgTime: Float
2186
+ # @param Province: 省份
2187
+ # @type Province: String
2188
+
2189
+ attr_accessor :AvgAvailRatio, :ProvinceName, :Mapkey, :TimeStamp, :IspDetail, :AvgTime, :Province
2190
+
2191
+ def initialize(avgavailratio=nil, provincename=nil, mapkey=nil, timestamp=nil, ispdetail=nil, avgtime=nil, province=nil)
2192
+ @AvgAvailRatio = avgavailratio
2193
+ @ProvinceName = provincename
2194
+ @Mapkey = mapkey
2195
+ @TimeStamp = timestamp
2196
+ @IspDetail = ispdetail
2197
+ @AvgTime = avgtime
2198
+ @Province = province
2199
+ end
2200
+
2201
+ def deserialize(params)
2202
+ @AvgAvailRatio = params['AvgAvailRatio']
2203
+ @ProvinceName = params['ProvinceName']
2204
+ @Mapkey = params['Mapkey']
2205
+ @TimeStamp = params['TimeStamp']
2206
+ unless params['IspDetail'].nil?
2207
+ @IspDetail = []
2208
+ params['IspDetail'].each do |i|
2209
+ ispdetail_tmp = IspDetail.new
2210
+ ispdetail_tmp.deserialize(i)
2211
+ @IspDetail << ispdetail_tmp
2212
+ end
2213
+ end
2214
+ @AvgTime = params['AvgTime']
2215
+ @Province = params['Province']
2216
+ end
2217
+ end
2218
+
2219
+ # 实时统计数据
2220
+ class ResultSummary < TencentCloud::Common::AbstractModel
2221
+ # @param LogTime: 统计时间
2222
+ # @type LogTime: String
2223
+ # @param TaskId: 任务ID
2224
+ # @type TaskId: Integer
2225
+ # @param AvailRatio: 实时可用率
2226
+ # @type AvailRatio: Float
2227
+ # @param ReponseTime: 实时响应时间
2228
+ # @type ReponseTime: Float
2229
+
2230
+ attr_accessor :LogTime, :TaskId, :AvailRatio, :ReponseTime
2231
+
2232
+ def initialize(logtime=nil, taskid=nil, availratio=nil, reponsetime=nil)
2233
+ @LogTime = logtime
2234
+ @TaskId = taskid
2235
+ @AvailRatio = availratio
2236
+ @ReponseTime = reponsetime
2237
+ end
2238
+
2239
+ def deserialize(params)
2240
+ @LogTime = params['LogTime']
2241
+ @TaskId = params['TaskId']
2242
+ @AvailRatio = params['AvailRatio']
2243
+ @ReponseTime = params['ReponseTime']
2244
+ end
2245
+ end
2246
+
2247
+ # RunTask请求参数结构体
2248
+ class RunTaskRequest < TencentCloud::Common::AbstractModel
2249
+ # @param TaskId: 任务Id
2250
+ # @type TaskId: Integer
2251
+
2252
+ attr_accessor :TaskId
2253
+
2254
+ def initialize(taskid=nil)
2255
+ @TaskId = taskid
2256
+ end
2257
+
2258
+ def deserialize(params)
2259
+ @TaskId = params['TaskId']
2260
+ end
2261
+ end
2262
+
2263
+ # RunTask返回参数结构体
2264
+ class RunTaskResponse < TencentCloud::Common::AbstractModel
2265
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2266
+ # @type RequestId: String
2267
+
2268
+ attr_accessor :RequestId
2269
+
2270
+ def initialize(requestid=nil)
2271
+ @RequestId = requestid
2272
+ end
2273
+
2274
+ def deserialize(params)
2275
+ @RequestId = params['RequestId']
2276
+ end
2277
+ end
2278
+
2279
+ # 可用性监控任务状态及告警信息
2280
+ class TaskAlarm < TencentCloud::Common::AbstractModel
2281
+ # @param TaskId: 任务ID
2282
+ # @type TaskId: Integer
2283
+ # @param TaskName: 任务名称
2284
+ # @type TaskName: String
2285
+ # @param Period: 任务周期,单位为分钟。目前支持1,5,15,30几种取值
2286
+ # @type Period: Integer
2287
+ # @param CatTypeName: 拨测类型。http, https, ping, tcp, udp, smtp, pop3, dns 之一
2288
+ # @type CatTypeName: String
2289
+ # @param Status: 任务状态。1表示暂停,2表示运行中,0为初始态
2290
+ # @type Status: Integer
2291
+ # @param CgiUrl: 拨测任务的URL
2292
+ # @type CgiUrl: String
2293
+ # @param AddTime: 任务创建时间
2294
+ # @type AddTime: String
2295
+ # @param AlarmStatus: 告警状态。1 故障,0 正常
2296
+ # @type AlarmStatus: Integer
2297
+ # @param StatusInfo: 告警状态描述,统计信息
2298
+ # @type StatusInfo: String
2299
+ # @param UpdateTime: 任务更新时间
2300
+ # @type UpdateTime: String
2301
+
2302
+ attr_accessor :TaskId, :TaskName, :Period, :CatTypeName, :Status, :CgiUrl, :AddTime, :AlarmStatus, :StatusInfo, :UpdateTime
2303
+
2304
+ def initialize(taskid=nil, taskname=nil, period=nil, cattypename=nil, status=nil, cgiurl=nil, addtime=nil, alarmstatus=nil, statusinfo=nil, updatetime=nil)
2305
+ @TaskId = taskid
2306
+ @TaskName = taskname
2307
+ @Period = period
2308
+ @CatTypeName = cattypename
2309
+ @Status = status
2310
+ @CgiUrl = cgiurl
2311
+ @AddTime = addtime
2312
+ @AlarmStatus = alarmstatus
2313
+ @StatusInfo = statusinfo
2314
+ @UpdateTime = updatetime
2315
+ end
2316
+
2317
+ def deserialize(params)
2318
+ @TaskId = params['TaskId']
2319
+ @TaskName = params['TaskName']
2320
+ @Period = params['Period']
2321
+ @CatTypeName = params['CatTypeName']
2322
+ @Status = params['Status']
2323
+ @CgiUrl = params['CgiUrl']
2324
+ @AddTime = params['AddTime']
2325
+ @AlarmStatus = params['AlarmStatus']
2326
+ @StatusInfo = params['StatusInfo']
2327
+ @UpdateTime = params['UpdateTime']
2328
+ end
2329
+ end
2330
+
2331
+ # VerifyResult请求参数结构体
2332
+ class VerifyResultRequest < TencentCloud::Common::AbstractModel
2333
+ # @param ResultId: 要查询的拨测任务的结果id
2334
+ # @type ResultId: Integer
2335
+
2336
+ attr_accessor :ResultId
2337
+
2338
+ def initialize(resultid=nil)
2339
+ @ResultId = resultid
2340
+ end
2341
+
2342
+ def deserialize(params)
2343
+ @ResultId = params['ResultId']
2344
+ end
2345
+ end
2346
+
2347
+ # VerifyResult返回参数结构体
2348
+ class VerifyResultResponse < TencentCloud::Common::AbstractModel
2349
+ # @param ErrorReason: 错误的原因
2350
+ # @type ErrorReason: String
2351
+ # @param ResultCode: 错误号
2352
+ # @type ResultCode: Integer
2353
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2354
+ # @type RequestId: String
2355
+
2356
+ attr_accessor :ErrorReason, :ResultCode, :RequestId
2357
+
2358
+ def initialize(errorreason=nil, resultcode=nil, requestid=nil)
2359
+ @ErrorReason = errorreason
2360
+ @ResultCode = resultcode
2361
+ @RequestId = requestid
2362
+ end
2363
+
2364
+ def deserialize(params)
2365
+ @ErrorReason = params['ErrorReason']
2366
+ @ResultCode = params['ResultCode']
2367
+ @RequestId = params['RequestId']
2368
+ end
2369
+ end
2370
+
2371
+ end
2372
+ end
2373
+ end
2374
+