tencentcloud-sdk-cat 3.0.711 → 3.0.712
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 +24 -0
- data/lib/v20180409/models.rb +124 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0753d85555225671f3b5bc4502d63acf20eff6c
|
4
|
+
data.tar.gz: 5211249711f2dc72086d252590b286d917242c1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f78ddb9764621236c737bf11a234d6a3c3799fe639c717908b6ea4012ac4728591b0ee4992fc67d77eecadf757874d1f41ec89515ef32a9865b897e7cfdc437
|
7
|
+
data.tar.gz: b9ee85d50ba90222d0e513b83a37de0551434ab6c8783b537778baf05e43fd1093418fefebfc922316f75c069895ddba7a5de1ee0d4c0e11008c3658dd43c1fd
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.712
|
data/lib/v20180409/client.rb
CHANGED
@@ -101,6 +101,30 @@ module TencentCloud
|
|
101
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
102
|
end
|
103
103
|
|
104
|
+
# 获取历史即时拨测任务
|
105
|
+
|
106
|
+
# @param request: Request instance for DescribeInstantTasks.
|
107
|
+
# @type request: :class:`Tencentcloud::cat::V20180409::DescribeInstantTasksRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::cat::V20180409::DescribeInstantTasksResponse`
|
109
|
+
def DescribeInstantTasks(request)
|
110
|
+
body = send_request('DescribeInstantTasks', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = DescribeInstantTasksResponse.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
|
+
|
104
128
|
# 获取拨测节点
|
105
129
|
|
106
130
|
# @param request: Request instance for DescribeNodes.
|
data/lib/v20180409/models.rb
CHANGED
@@ -21,13 +21,13 @@ module TencentCloud
|
|
21
21
|
class CreateProbeTasksRequest < TencentCloud::Common::AbstractModel
|
22
22
|
# @param BatchTasks: 批量任务名-地址
|
23
23
|
# @type BatchTasks: Array
|
24
|
-
# @param TaskType:
|
24
|
+
# @param TaskType: 任务类型,如1、2、3、4、5、6、7;1-页面性能、2-文件上传、3-文件下载、4-端口性能、5-网络质量、6-音视频体验、7-域名whois
|
25
25
|
# @type TaskType: Integer
|
26
|
-
# @param Nodes:
|
26
|
+
# @param Nodes: 拨测节点,如10001,具体拨测地域运营商对应的拨测点编号可联系云拨测确认。
|
27
27
|
# @type Nodes: Array
|
28
28
|
# @param Interval: 拨测间隔
|
29
29
|
# @type Interval: Integer
|
30
|
-
# @param Parameters:
|
30
|
+
# @param Parameters: 拨测参数,如{},详细可参考云拨测官方文档。
|
31
31
|
# @type Parameters: String
|
32
32
|
# @param TaskCategory: 任务分类
|
33
33
|
# <li>1 = PC</li>
|
@@ -37,16 +37,18 @@ module TencentCloud
|
|
37
37
|
# @type Cron: String
|
38
38
|
# @param Tag: 资源标签值
|
39
39
|
# @type Tag: Array
|
40
|
-
# @param ProbeType:
|
40
|
+
# @param ProbeType: 测试类型,包含定时测试与即时测试。1-定时拨测,其它表示即时拨测。
|
41
41
|
# @type ProbeType: Integer
|
42
|
-
# @param PluginSource:
|
42
|
+
# @param PluginSource: 插件类型,如CDN,详情参考云拨测官方文档。
|
43
43
|
# @type PluginSource: String
|
44
44
|
# @param ClientNum: 客户端ID
|
45
45
|
# @type ClientNum: String
|
46
|
+
# @param NodeIpType: 拨测点IP类型:0-不限制IP类型,1-IPv4,2-IPv6
|
47
|
+
# @type NodeIpType: Integer
|
46
48
|
|
47
|
-
attr_accessor :BatchTasks, :TaskType, :Nodes, :Interval, :Parameters, :TaskCategory, :Cron, :Tag, :ProbeType, :PluginSource, :ClientNum
|
49
|
+
attr_accessor :BatchTasks, :TaskType, :Nodes, :Interval, :Parameters, :TaskCategory, :Cron, :Tag, :ProbeType, :PluginSource, :ClientNum, :NodeIpType
|
48
50
|
|
49
|
-
def initialize(batchtasks=nil, tasktype=nil, nodes=nil, interval=nil, parameters=nil, taskcategory=nil, cron=nil, tag=nil, probetype=nil, pluginsource=nil, clientnum=nil)
|
51
|
+
def initialize(batchtasks=nil, tasktype=nil, nodes=nil, interval=nil, parameters=nil, taskcategory=nil, cron=nil, tag=nil, probetype=nil, pluginsource=nil, clientnum=nil, nodeiptype=nil)
|
50
52
|
@BatchTasks = batchtasks
|
51
53
|
@TaskType = tasktype
|
52
54
|
@Nodes = nodes
|
@@ -58,6 +60,7 @@ module TencentCloud
|
|
58
60
|
@ProbeType = probetype
|
59
61
|
@PluginSource = pluginsource
|
60
62
|
@ClientNum = clientnum
|
63
|
+
@NodeIpType = nodeiptype
|
61
64
|
end
|
62
65
|
|
63
66
|
def deserialize(params)
|
@@ -86,6 +89,7 @@ module TencentCloud
|
|
86
89
|
@ProbeType = params['ProbeType']
|
87
90
|
@PluginSource = params['PluginSource']
|
88
91
|
@ClientNum = params['ClientNum']
|
92
|
+
@NodeIpType = params['NodeIpType']
|
89
93
|
end
|
90
94
|
end
|
91
95
|
|
@@ -292,6 +296,58 @@ module TencentCloud
|
|
292
296
|
end
|
293
297
|
end
|
294
298
|
|
299
|
+
# DescribeInstantTasks请求参数结构体
|
300
|
+
class DescribeInstantTasksRequest < TencentCloud::Common::AbstractModel
|
301
|
+
# @param Limit: 数量
|
302
|
+
# @type Limit: Integer
|
303
|
+
# @param Offset: 起始位置
|
304
|
+
# @type Offset: Integer
|
305
|
+
|
306
|
+
attr_accessor :Limit, :Offset
|
307
|
+
|
308
|
+
def initialize(limit=nil, offset=nil)
|
309
|
+
@Limit = limit
|
310
|
+
@Offset = offset
|
311
|
+
end
|
312
|
+
|
313
|
+
def deserialize(params)
|
314
|
+
@Limit = params['Limit']
|
315
|
+
@Offset = params['Offset']
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
# DescribeInstantTasks返回参数结构体
|
320
|
+
class DescribeInstantTasksResponse < TencentCloud::Common::AbstractModel
|
321
|
+
# @param Tasks: 任务
|
322
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
323
|
+
# @type Tasks: Array
|
324
|
+
# @param Total: 总数
|
325
|
+
# @type Total: Integer
|
326
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
327
|
+
# @type RequestId: String
|
328
|
+
|
329
|
+
attr_accessor :Tasks, :Total, :RequestId
|
330
|
+
|
331
|
+
def initialize(tasks=nil, total=nil, requestid=nil)
|
332
|
+
@Tasks = tasks
|
333
|
+
@Total = total
|
334
|
+
@RequestId = requestid
|
335
|
+
end
|
336
|
+
|
337
|
+
def deserialize(params)
|
338
|
+
unless params['Tasks'].nil?
|
339
|
+
@Tasks = []
|
340
|
+
params['Tasks'].each do |i|
|
341
|
+
singleinstanttask_tmp = SingleInstantTask.new
|
342
|
+
singleinstanttask_tmp.deserialize(i)
|
343
|
+
@Tasks << singleinstanttask_tmp
|
344
|
+
end
|
345
|
+
end
|
346
|
+
@Total = params['Total']
|
347
|
+
@RequestId = params['RequestId']
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
295
351
|
# DescribeNodes请求参数结构体
|
296
352
|
class DescribeNodesRequest < TencentCloud::Common::AbstractModel
|
297
353
|
# @param NodeType: 节点类型
|
@@ -879,6 +935,9 @@ module TencentCloud
|
|
879
935
|
# @type TaskType: Integer
|
880
936
|
# @param Nodes: 拨测节点列表
|
881
937
|
# @type Nodes: Array
|
938
|
+
# @param NodeIpType: 拨测任务所选的拨测点IP类型,0-不限,1-IPv4,2-IPv6
|
939
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
940
|
+
# @type NodeIpType: Integer
|
882
941
|
# @param Interval: 拨测间隔
|
883
942
|
# @type Interval: Integer
|
884
943
|
# @param Parameters: 拨测参数
|
@@ -923,13 +982,14 @@ module TencentCloud
|
|
923
982
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
924
983
|
# @type TagInfoList: Array
|
925
984
|
|
926
|
-
attr_accessor :Name, :TaskId, :TaskType, :Nodes, :Interval, :Parameters, :Status, :TargetAddress, :PayMode, :OrderState, :TaskCategory, :CreatedAt, :Cron, :CronState, :TagInfoList
|
985
|
+
attr_accessor :Name, :TaskId, :TaskType, :Nodes, :NodeIpType, :Interval, :Parameters, :Status, :TargetAddress, :PayMode, :OrderState, :TaskCategory, :CreatedAt, :Cron, :CronState, :TagInfoList
|
927
986
|
|
928
|
-
def initialize(name=nil, taskid=nil, tasktype=nil, nodes=nil, interval=nil, parameters=nil, status=nil, targetaddress=nil, paymode=nil, orderstate=nil, taskcategory=nil, createdat=nil, cron=nil, cronstate=nil, taginfolist=nil)
|
987
|
+
def initialize(name=nil, taskid=nil, tasktype=nil, nodes=nil, nodeiptype=nil, interval=nil, parameters=nil, status=nil, targetaddress=nil, paymode=nil, orderstate=nil, taskcategory=nil, createdat=nil, cron=nil, cronstate=nil, taginfolist=nil)
|
929
988
|
@Name = name
|
930
989
|
@TaskId = taskid
|
931
990
|
@TaskType = tasktype
|
932
991
|
@Nodes = nodes
|
992
|
+
@NodeIpType = nodeiptype
|
933
993
|
@Interval = interval
|
934
994
|
@Parameters = parameters
|
935
995
|
@Status = status
|
@@ -948,6 +1008,7 @@ module TencentCloud
|
|
948
1008
|
@TaskId = params['TaskId']
|
949
1009
|
@TaskType = params['TaskType']
|
950
1010
|
@Nodes = params['Nodes']
|
1011
|
+
@NodeIpType = params['NodeIpType']
|
951
1012
|
@Interval = params['Interval']
|
952
1013
|
@Parameters = params['Parameters']
|
953
1014
|
@Status = params['Status']
|
@@ -1042,6 +1103,50 @@ module TencentCloud
|
|
1042
1103
|
end
|
1043
1104
|
end
|
1044
1105
|
|
1106
|
+
# 单个即时拨测任务信息
|
1107
|
+
class SingleInstantTask < TencentCloud::Common::AbstractModel
|
1108
|
+
# @param TaskId: 任务ID
|
1109
|
+
# @type TaskId: String
|
1110
|
+
# @param TargetAddress: 任务地址
|
1111
|
+
# @type TargetAddress: String
|
1112
|
+
# @param TaskType: 任务类型
|
1113
|
+
# @type TaskType: Integer
|
1114
|
+
# @param ProbeTime: 测试时间
|
1115
|
+
# @type ProbeTime: Integer
|
1116
|
+
# @param Status: 任务状态
|
1117
|
+
# @type Status: String
|
1118
|
+
# @param SuccessRate: 成功率
|
1119
|
+
# @type SuccessRate: Float
|
1120
|
+
# @param NodeCount: 节点数量
|
1121
|
+
# @type NodeCount: Integer
|
1122
|
+
# @param TaskCategory: 节点类型
|
1123
|
+
# @type TaskCategory: Integer
|
1124
|
+
|
1125
|
+
attr_accessor :TaskId, :TargetAddress, :TaskType, :ProbeTime, :Status, :SuccessRate, :NodeCount, :TaskCategory
|
1126
|
+
|
1127
|
+
def initialize(taskid=nil, targetaddress=nil, tasktype=nil, probetime=nil, status=nil, successrate=nil, nodecount=nil, taskcategory=nil)
|
1128
|
+
@TaskId = taskid
|
1129
|
+
@TargetAddress = targetaddress
|
1130
|
+
@TaskType = tasktype
|
1131
|
+
@ProbeTime = probetime
|
1132
|
+
@Status = status
|
1133
|
+
@SuccessRate = successrate
|
1134
|
+
@NodeCount = nodecount
|
1135
|
+
@TaskCategory = taskcategory
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
def deserialize(params)
|
1139
|
+
@TaskId = params['TaskId']
|
1140
|
+
@TargetAddress = params['TargetAddress']
|
1141
|
+
@TaskType = params['TaskType']
|
1142
|
+
@ProbeTime = params['ProbeTime']
|
1143
|
+
@Status = params['Status']
|
1144
|
+
@SuccessRate = params['SuccessRate']
|
1145
|
+
@NodeCount = params['NodeCount']
|
1146
|
+
@TaskCategory = params['TaskCategory']
|
1147
|
+
end
|
1148
|
+
end
|
1149
|
+
|
1045
1150
|
# SuspendProbeTask请求参数结构体
|
1046
1151
|
class SuspendProbeTaskRequest < TencentCloud::Common::AbstractModel
|
1047
1152
|
# @param TaskIds: 任务 ID
|
@@ -1179,29 +1284,32 @@ module TencentCloud
|
|
1179
1284
|
|
1180
1285
|
# UpdateProbeTaskConfigurationList请求参数结构体
|
1181
1286
|
class UpdateProbeTaskConfigurationListRequest < TencentCloud::Common::AbstractModel
|
1182
|
-
# @param TaskIds: 任务 ID
|
1287
|
+
# @param TaskIds: 任务 ID,如task-n1wchki8
|
1183
1288
|
# @type TaskIds: Array
|
1184
|
-
# @param Nodes:
|
1289
|
+
# @param Nodes: 拨测节点,如10001,详细地区运营商拨测编号请联系云拨测。
|
1185
1290
|
# @type Nodes: Array
|
1186
|
-
# @param Interval:
|
1291
|
+
# @param Interval: 拨测间隔,如30,单位为分钟。
|
1187
1292
|
# @type Interval: Integer
|
1188
|
-
# @param Parameters:
|
1293
|
+
# @param Parameters: 拨测参数,详细参数配置可参考云拨测官网文档。
|
1189
1294
|
# @type Parameters: String
|
1190
1295
|
# @param Cron: 定时任务cron表达式
|
1191
1296
|
# @type Cron: String
|
1192
1297
|
# @param ResourceIDs: 预付费套餐id
|
1193
1298
|
# 需要与taskId对应
|
1194
1299
|
# @type ResourceIDs: Array
|
1300
|
+
# @param NodeIpType: 拨测节点的IP类型,0-不限,1-IPv4,2-IPv6
|
1301
|
+
# @type NodeIpType: Integer
|
1195
1302
|
|
1196
|
-
attr_accessor :TaskIds, :Nodes, :Interval, :Parameters, :Cron, :ResourceIDs
|
1303
|
+
attr_accessor :TaskIds, :Nodes, :Interval, :Parameters, :Cron, :ResourceIDs, :NodeIpType
|
1197
1304
|
|
1198
|
-
def initialize(taskids=nil, nodes=nil, interval=nil, parameters=nil, cron=nil, resourceids=nil)
|
1305
|
+
def initialize(taskids=nil, nodes=nil, interval=nil, parameters=nil, cron=nil, resourceids=nil, nodeiptype=nil)
|
1199
1306
|
@TaskIds = taskids
|
1200
1307
|
@Nodes = nodes
|
1201
1308
|
@Interval = interval
|
1202
1309
|
@Parameters = parameters
|
1203
1310
|
@Cron = cron
|
1204
1311
|
@ResourceIDs = resourceids
|
1312
|
+
@NodeIpType = nodeiptype
|
1205
1313
|
end
|
1206
1314
|
|
1207
1315
|
def deserialize(params)
|
@@ -1211,6 +1319,7 @@ module TencentCloud
|
|
1211
1319
|
@Parameters = params['Parameters']
|
1212
1320
|
@Cron = params['Cron']
|
1213
1321
|
@ResourceIDs = params['ResourceIDs']
|
1322
|
+
@NodeIpType = params['NodeIpType']
|
1214
1323
|
end
|
1215
1324
|
end
|
1216
1325
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.712
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|