tencentcloud-sdk-rum 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d6991b06dfc6db88dd914190b5502af0886a46d6
4
+ data.tar.gz: aeac112bc5f7d60091c81f3081349d6d79721161
5
+ SHA512:
6
+ metadata.gz: 724a006841839a9cd5e2756aff362bb90c5f150caae9d15be29aaabb3be5be5b967de4991e6659b72d1e818c3aab16a1e4d4f17f7335330060225afb27452a65
7
+ data.tar.gz: f9ac1824f244008a227013d59749cae65659abc8c744416696fdf8b4d496a9b5fcae12834f41a0c68e0864548d3670f8d1249335976b26c057f906c5864d6947
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20210622/client'
6
+ require_relative 'v20210622/models'
7
+
8
+ module TencentCloud
9
+ module Rum
10
+ end
11
+ end
@@ -0,0 +1,204 @@
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
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Rum
21
+ module V20210622
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2021-06-22'
26
+ api_endpoint = 'rum.tencentcloudapi.com'
27
+ sdk_version = 'RUM_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 创建项目(归属于某个团队)
33
+
34
+ # @param request: Request instance for CreateProject.
35
+ # @type request: :class:`Tencentcloud::rum::V20210622::CreateProjectRequest`
36
+ # @rtype: :class:`Tencentcloud::rum::V20210622::CreateProjectResponse`
37
+ def CreateProject(request)
38
+ body = send_request('CreateProject', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateProjectResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 获取LogUrlStatistics信息
57
+
58
+ # @param request: Request instance for DescribeDataLogUrlStatistics.
59
+ # @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataLogUrlStatisticsRequest`
60
+ # @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataLogUrlStatisticsResponse`
61
+ def DescribeDataLogUrlStatistics(request)
62
+ body = send_request('DescribeDataLogUrlStatistics', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeDataLogUrlStatisticsResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 获取PerformancePage信息
81
+
82
+ # @param request: Request instance for DescribeDataPerformancePage.
83
+ # @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataPerformancePageRequest`
84
+ # @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataPerformancePageResponse`
85
+ def DescribeDataPerformancePage(request)
86
+ body = send_request('DescribeDataPerformancePage', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeDataPerformancePageResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 获取首页错误信息
105
+
106
+ # @param request: Request instance for DescribeError.
107
+ # @type request: :class:`Tencentcloud::rum::V20210622::DescribeErrorRequest`
108
+ # @rtype: :class:`Tencentcloud::rum::V20210622::DescribeErrorResponse`
109
+ def DescribeError(request)
110
+ body = send_request('DescribeError', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeErrorResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 获取项目下的日志列表(实例创建的项目下的日志列表)
129
+
130
+ # @param request: Request instance for DescribeLogList.
131
+ # @type request: :class:`Tencentcloud::rum::V20210622::DescribeLogListRequest`
132
+ # @rtype: :class:`Tencentcloud::rum::V20210622::DescribeLogListResponse`
133
+ def DescribeLogList(request)
134
+ body = send_request('DescribeLogList', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeLogListResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 获取项目列表(实例创建的团队下的项目列表)
153
+
154
+ # @param request: Request instance for DescribeProjects.
155
+ # @type request: :class:`Tencentcloud::rum::V20210622::DescribeProjectsRequest`
156
+ # @rtype: :class:`Tencentcloud::rum::V20210622::DescribeProjectsResponse`
157
+ def DescribeProjects(request)
158
+ body = send_request('DescribeProjects', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeProjectsResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 获取首页分数列表
177
+
178
+ # @param request: Request instance for DescribeScores.
179
+ # @type request: :class:`Tencentcloud::rum::V20210622::DescribeScoresRequest`
180
+ # @rtype: :class:`Tencentcloud::rum::V20210622::DescribeScoresResponse`
181
+ def DescribeScores(request)
182
+ body = send_request('DescribeScores', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeScoresResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+
201
+ end
202
+ end
203
+ end
204
+ end
@@ -0,0 +1,707 @@
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 Rum
19
+ module V20210622
20
+ # CreateProject请求参数结构体
21
+ class CreateProjectRequest < TencentCloud::Common::AbstractModel
22
+ # @param Name: 创建的项目名(不为空且最长为 200)
23
+ # @type Name: String
24
+ # @param InstanceID: 业务系统 ID
25
+ # @type InstanceID: String
26
+ # @param Rate: 项目抽样率(大于等于 0)
27
+ # @type Rate: String
28
+ # @param EnableURLGroup: 是否开启聚类
29
+ # @type EnableURLGroup: Integer
30
+ # @param Type: 项目类型("web", "mp", "android", "ios", "node", "hippy", "weex", "viola", "rn")
31
+ # @type Type: String
32
+ # @param Repo: 项目对应仓库地址(可选,最长为 256)
33
+ # @type Repo: String
34
+ # @param URL: 项目对应网页地址(可选,最长为 256)
35
+ # @type URL: String
36
+ # @param Desc: 创建的项目描述(可选,最长为 1000)
37
+ # @type Desc: String
38
+
39
+ attr_accessor :Name, :InstanceID, :Rate, :EnableURLGroup, :Type, :Repo, :URL, :Desc
40
+
41
+ def initialize(name=nil, instanceid=nil, rate=nil, enableurlgroup=nil, type=nil, repo=nil, url=nil, desc=nil)
42
+ @Name = name
43
+ @InstanceID = instanceid
44
+ @Rate = rate
45
+ @EnableURLGroup = enableurlgroup
46
+ @Type = type
47
+ @Repo = repo
48
+ @URL = url
49
+ @Desc = desc
50
+ end
51
+
52
+ def deserialize(params)
53
+ @Name = params['Name']
54
+ @InstanceID = params['InstanceID']
55
+ @Rate = params['Rate']
56
+ @EnableURLGroup = params['EnableURLGroup']
57
+ @Type = params['Type']
58
+ @Repo = params['Repo']
59
+ @URL = params['URL']
60
+ @Desc = params['Desc']
61
+ end
62
+ end
63
+
64
+ # CreateProject返回参数结构体
65
+ class CreateProjectResponse < TencentCloud::Common::AbstractModel
66
+ # @param ID: 项目 id
67
+ # @type ID: Integer
68
+ # @param Key: 项目唯一key
69
+ # @type Key: String
70
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
71
+ # @type RequestId: String
72
+
73
+ attr_accessor :ID, :Key, :RequestId
74
+
75
+ def initialize(id=nil, key=nil, requestid=nil)
76
+ @ID = id
77
+ @Key = key
78
+ @RequestId = requestid
79
+ end
80
+
81
+ def deserialize(params)
82
+ @ID = params['ID']
83
+ @Key = params['Key']
84
+ @RequestId = params['RequestId']
85
+ end
86
+ end
87
+
88
+ # DescribeDataLogUrlStatistics请求参数结构体
89
+ class DescribeDataLogUrlStatisticsRequest < TencentCloud::Common::AbstractModel
90
+ # @param StartTime: 开始时间
91
+ # @type StartTime: Integer
92
+ # @param Type: "analysis", "compare", "samp", "version", "ext3","nettype", "platform","isp","region","device","browser","ext1","ext2"
93
+ # @type Type: String
94
+ # @param EndTime: 结束时间
95
+ # @type EndTime: Integer
96
+ # @param ID: 项目ID
97
+ # @type ID: Integer
98
+ # @param ExtSecond: 自定义2
99
+ # @type ExtSecond: String
100
+ # @param Engine: 浏览器引擎
101
+ # @type Engine: String
102
+ # @param Isp: 运营商
103
+ # @type Isp: String
104
+ # @param From: 来源页面
105
+ # @type From: String
106
+ # @param Level: 日志等级
107
+ # @type Level: String
108
+ # @param Brand: 品牌
109
+ # @type Brand: String
110
+ # @param Area: 地区
111
+ # @type Area: String
112
+ # @param VersionNum: 版本
113
+ # @type VersionNum: String
114
+ # @param Platform: 平台
115
+ # @type Platform: String
116
+ # @param ExtThird: 自定义3
117
+ # @type ExtThird: String
118
+ # @param ExtFirst: 自定义1
119
+ # @type ExtFirst: String
120
+ # @param NetType: 网络类型
121
+ # @type NetType: String
122
+ # @param Device: 机型
123
+ # @type Device: String
124
+ # @param IsAbroad: 是否海外
125
+ # @type IsAbroad: String
126
+ # @param Os: 操作系统
127
+ # @type Os: String
128
+ # @param Browser: 浏览器
129
+ # @type Browser: String
130
+
131
+ attr_accessor :StartTime, :Type, :EndTime, :ID, :ExtSecond, :Engine, :Isp, :From, :Level, :Brand, :Area, :VersionNum, :Platform, :ExtThird, :ExtFirst, :NetType, :Device, :IsAbroad, :Os, :Browser
132
+
133
+ def initialize(starttime=nil, type=nil, endtime=nil, id=nil, extsecond=nil, engine=nil, isp=nil, from=nil, level=nil, brand=nil, area=nil, versionnum=nil, platform=nil, extthird=nil, extfirst=nil, nettype=nil, device=nil, isabroad=nil, os=nil, browser=nil)
134
+ @StartTime = starttime
135
+ @Type = type
136
+ @EndTime = endtime
137
+ @ID = id
138
+ @ExtSecond = extsecond
139
+ @Engine = engine
140
+ @Isp = isp
141
+ @From = from
142
+ @Level = level
143
+ @Brand = brand
144
+ @Area = area
145
+ @VersionNum = versionnum
146
+ @Platform = platform
147
+ @ExtThird = extthird
148
+ @ExtFirst = extfirst
149
+ @NetType = nettype
150
+ @Device = device
151
+ @IsAbroad = isabroad
152
+ @Os = os
153
+ @Browser = browser
154
+ end
155
+
156
+ def deserialize(params)
157
+ @StartTime = params['StartTime']
158
+ @Type = params['Type']
159
+ @EndTime = params['EndTime']
160
+ @ID = params['ID']
161
+ @ExtSecond = params['ExtSecond']
162
+ @Engine = params['Engine']
163
+ @Isp = params['Isp']
164
+ @From = params['From']
165
+ @Level = params['Level']
166
+ @Brand = params['Brand']
167
+ @Area = params['Area']
168
+ @VersionNum = params['VersionNum']
169
+ @Platform = params['Platform']
170
+ @ExtThird = params['ExtThird']
171
+ @ExtFirst = params['ExtFirst']
172
+ @NetType = params['NetType']
173
+ @Device = params['Device']
174
+ @IsAbroad = params['IsAbroad']
175
+ @Os = params['Os']
176
+ @Browser = params['Browser']
177
+ end
178
+ end
179
+
180
+ # DescribeDataLogUrlStatistics返回参数结构体
181
+ class DescribeDataLogUrlStatisticsResponse < TencentCloud::Common::AbstractModel
182
+ # @param Result: 返回值
183
+ # @type Result: String
184
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
185
+ # @type RequestId: String
186
+
187
+ attr_accessor :Result, :RequestId
188
+
189
+ def initialize(result=nil, requestid=nil)
190
+ @Result = result
191
+ @RequestId = requestid
192
+ end
193
+
194
+ def deserialize(params)
195
+ @Result = params['Result']
196
+ @RequestId = params['RequestId']
197
+ end
198
+ end
199
+
200
+ # DescribeDataPerformancePage请求参数结构体
201
+ class DescribeDataPerformancePageRequest < TencentCloud::Common::AbstractModel
202
+ # @param ID: 项目ID
203
+ # @type ID: Integer
204
+ # @param StartTime: 开始时间
205
+ # @type StartTime: Integer
206
+ # @param EndTime: 结束时间
207
+ # @type EndTime: Integer
208
+ # @param Type: ["pagepv", "allcount"]
209
+ # @type Type: String
210
+ # @param Level: 日志等级
211
+ # @type Level: String
212
+ # @param Isp: 运营商
213
+ # @type Isp: String
214
+ # @param Area: 地区
215
+ # @type Area: String
216
+ # @param NetType: 网络类型
217
+ # @type NetType: String
218
+ # @param Platform: 平台
219
+ # @type Platform: String
220
+ # @param Device: 机型
221
+ # @type Device: String
222
+ # @param VersionNum: 版本
223
+ # @type VersionNum: String
224
+ # @param ExtFirst: 自定义1
225
+ # @type ExtFirst: String
226
+ # @param ExtSecond: 自定义2
227
+ # @type ExtSecond: String
228
+ # @param ExtThird: 自定义3
229
+ # @type ExtThird: String
230
+ # @param IsAbroad: 是否海外
231
+ # @type IsAbroad: String
232
+ # @param Browser: 浏览器
233
+ # @type Browser: String
234
+ # @param Os: 操作系统
235
+ # @type Os: String
236
+ # @param Engine: 浏览器引擎
237
+ # @type Engine: String
238
+ # @param Brand: 品牌
239
+ # @type Brand: String
240
+ # @param From: 来源页面
241
+ # @type From: String
242
+ # @param CostType: 耗时计算方式
243
+ # @type CostType: String
244
+
245
+ attr_accessor :ID, :StartTime, :EndTime, :Type, :Level, :Isp, :Area, :NetType, :Platform, :Device, :VersionNum, :ExtFirst, :ExtSecond, :ExtThird, :IsAbroad, :Browser, :Os, :Engine, :Brand, :From, :CostType
246
+
247
+ def initialize(id=nil, starttime=nil, endtime=nil, type=nil, level=nil, isp=nil, area=nil, nettype=nil, platform=nil, device=nil, versionnum=nil, extfirst=nil, extsecond=nil, extthird=nil, isabroad=nil, browser=nil, os=nil, engine=nil, brand=nil, from=nil, costtype=nil)
248
+ @ID = id
249
+ @StartTime = starttime
250
+ @EndTime = endtime
251
+ @Type = type
252
+ @Level = level
253
+ @Isp = isp
254
+ @Area = area
255
+ @NetType = nettype
256
+ @Platform = platform
257
+ @Device = device
258
+ @VersionNum = versionnum
259
+ @ExtFirst = extfirst
260
+ @ExtSecond = extsecond
261
+ @ExtThird = extthird
262
+ @IsAbroad = isabroad
263
+ @Browser = browser
264
+ @Os = os
265
+ @Engine = engine
266
+ @Brand = brand
267
+ @From = from
268
+ @CostType = costtype
269
+ end
270
+
271
+ def deserialize(params)
272
+ @ID = params['ID']
273
+ @StartTime = params['StartTime']
274
+ @EndTime = params['EndTime']
275
+ @Type = params['Type']
276
+ @Level = params['Level']
277
+ @Isp = params['Isp']
278
+ @Area = params['Area']
279
+ @NetType = params['NetType']
280
+ @Platform = params['Platform']
281
+ @Device = params['Device']
282
+ @VersionNum = params['VersionNum']
283
+ @ExtFirst = params['ExtFirst']
284
+ @ExtSecond = params['ExtSecond']
285
+ @ExtThird = params['ExtThird']
286
+ @IsAbroad = params['IsAbroad']
287
+ @Browser = params['Browser']
288
+ @Os = params['Os']
289
+ @Engine = params['Engine']
290
+ @Brand = params['Brand']
291
+ @From = params['From']
292
+ @CostType = params['CostType']
293
+ end
294
+ end
295
+
296
+ # DescribeDataPerformancePage返回参数结构体
297
+ class DescribeDataPerformancePageResponse < TencentCloud::Common::AbstractModel
298
+ # @param Result: 返回值
299
+ # @type Result: String
300
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
301
+ # @type RequestId: String
302
+
303
+ attr_accessor :Result, :RequestId
304
+
305
+ def initialize(result=nil, requestid=nil)
306
+ @Result = result
307
+ @RequestId = requestid
308
+ end
309
+
310
+ def deserialize(params)
311
+ @Result = params['Result']
312
+ @RequestId = params['RequestId']
313
+ end
314
+ end
315
+
316
+ # DescribeError请求参数结构体
317
+ class DescribeErrorRequest < TencentCloud::Common::AbstractModel
318
+ # @param Date: 日期
319
+ # @type Date: String
320
+ # @param ID: 项目ID
321
+ # @type ID: Integer
322
+
323
+ attr_accessor :Date, :ID
324
+
325
+ def initialize(date=nil, id=nil)
326
+ @Date = date
327
+ @ID = id
328
+ end
329
+
330
+ def deserialize(params)
331
+ @Date = params['Date']
332
+ @ID = params['ID']
333
+ end
334
+ end
335
+
336
+ # DescribeError返回参数结构体
337
+ class DescribeErrorResponse < TencentCloud::Common::AbstractModel
338
+ # @param Content: 内容
339
+ # @type Content: String
340
+ # @param ID: 项目ID
341
+ # @type ID: Integer
342
+ # @param CreateTime: 时间
343
+ # @type CreateTime: String
344
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
345
+ # @type RequestId: String
346
+
347
+ attr_accessor :Content, :ID, :CreateTime, :RequestId
348
+
349
+ def initialize(content=nil, id=nil, createtime=nil, requestid=nil)
350
+ @Content = content
351
+ @ID = id
352
+ @CreateTime = createtime
353
+ @RequestId = requestid
354
+ end
355
+
356
+ def deserialize(params)
357
+ @Content = params['Content']
358
+ @ID = params['ID']
359
+ @CreateTime = params['CreateTime']
360
+ @RequestId = params['RequestId']
361
+ end
362
+ end
363
+
364
+ # DescribeLogList请求参数结构体
365
+ class DescribeLogListRequest < TencentCloud::Common::AbstractModel
366
+ # @param Sort: 排序方式 desc asc
367
+ # @type Sort: String
368
+ # @param ActionType: searchlog histogram
369
+ # @type ActionType: String
370
+ # @param ID: 项目ID
371
+ # @type ID: Integer
372
+ # @param StartTime: 开始时间
373
+ # @type StartTime: String
374
+ # @param Limit: 限制
375
+ # @type Limit: Integer
376
+ # @param Context: 上下文
377
+ # @type Context: String
378
+ # @param Query: 查询语句
379
+ # @type Query: String
380
+ # @param EndTime: 结束时间
381
+ # @type EndTime: String
382
+
383
+ attr_accessor :Sort, :ActionType, :ID, :StartTime, :Limit, :Context, :Query, :EndTime
384
+
385
+ def initialize(sort=nil, actiontype=nil, id=nil, starttime=nil, limit=nil, context=nil, query=nil, endtime=nil)
386
+ @Sort = sort
387
+ @ActionType = actiontype
388
+ @ID = id
389
+ @StartTime = starttime
390
+ @Limit = limit
391
+ @Context = context
392
+ @Query = query
393
+ @EndTime = endtime
394
+ end
395
+
396
+ def deserialize(params)
397
+ @Sort = params['Sort']
398
+ @ActionType = params['ActionType']
399
+ @ID = params['ID']
400
+ @StartTime = params['StartTime']
401
+ @Limit = params['Limit']
402
+ @Context = params['Context']
403
+ @Query = params['Query']
404
+ @EndTime = params['EndTime']
405
+ end
406
+ end
407
+
408
+ # DescribeLogList返回参数结构体
409
+ class DescribeLogListResponse < TencentCloud::Common::AbstractModel
410
+ # @param Result: 返回字符串
411
+ # @type Result: String
412
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
413
+ # @type RequestId: String
414
+
415
+ attr_accessor :Result, :RequestId
416
+
417
+ def initialize(result=nil, requestid=nil)
418
+ @Result = result
419
+ @RequestId = requestid
420
+ end
421
+
422
+ def deserialize(params)
423
+ @Result = params['Result']
424
+ @RequestId = params['RequestId']
425
+ end
426
+ end
427
+
428
+ # DescribeProjects请求参数结构体
429
+ class DescribeProjectsRequest < TencentCloud::Common::AbstractModel
430
+ # @param Limit: 分页每页数目,整型
431
+ # @type Limit: Integer
432
+ # @param Offset: 分页页码,整型
433
+ # @type Offset: Integer
434
+ # @param Filters: 过滤条件
435
+ # @type Filters: Array
436
+
437
+ attr_accessor :Limit, :Offset, :Filters
438
+
439
+ def initialize(limit=nil, offset=nil, filters=nil)
440
+ @Limit = limit
441
+ @Offset = offset
442
+ @Filters = filters
443
+ end
444
+
445
+ def deserialize(params)
446
+ @Limit = params['Limit']
447
+ @Offset = params['Offset']
448
+ unless params['Filters'].nil?
449
+ @Filters = []
450
+ params['Filters'].each do |i|
451
+ filter_tmp = Filter.new
452
+ filter_tmp.deserialize(i)
453
+ @Filters << filter_tmp
454
+ end
455
+ end
456
+ end
457
+ end
458
+
459
+ # DescribeProjects返回参数结构体
460
+ class DescribeProjectsResponse < TencentCloud::Common::AbstractModel
461
+ # @param TotalCount: 列表总数
462
+ # @type TotalCount: Integer
463
+ # @param ProjectSet: 项目列表
464
+ # @type ProjectSet: Array
465
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
466
+ # @type RequestId: String
467
+
468
+ attr_accessor :TotalCount, :ProjectSet, :RequestId
469
+
470
+ def initialize(totalcount=nil, projectset=nil, requestid=nil)
471
+ @TotalCount = totalcount
472
+ @ProjectSet = projectset
473
+ @RequestId = requestid
474
+ end
475
+
476
+ def deserialize(params)
477
+ @TotalCount = params['TotalCount']
478
+ unless params['ProjectSet'].nil?
479
+ @ProjectSet = []
480
+ params['ProjectSet'].each do |i|
481
+ rumproject_tmp = RumProject.new
482
+ rumproject_tmp.deserialize(i)
483
+ @ProjectSet << rumproject_tmp
484
+ end
485
+ end
486
+ @RequestId = params['RequestId']
487
+ end
488
+ end
489
+
490
+ # DescribeScores请求参数结构体
491
+ class DescribeScoresRequest < TencentCloud::Common::AbstractModel
492
+ # @param EndTime: 结束时间
493
+ # @type EndTime: String
494
+ # @param StartTime: 开始时间
495
+ # @type StartTime: String
496
+ # @param ID: 项目ID
497
+ # @type ID: Integer
498
+
499
+ attr_accessor :EndTime, :StartTime, :ID
500
+
501
+ def initialize(endtime=nil, starttime=nil, id=nil)
502
+ @EndTime = endtime
503
+ @StartTime = starttime
504
+ @ID = id
505
+ end
506
+
507
+ def deserialize(params)
508
+ @EndTime = params['EndTime']
509
+ @StartTime = params['StartTime']
510
+ @ID = params['ID']
511
+ end
512
+ end
513
+
514
+ # DescribeScores返回参数结构体
515
+ class DescribeScoresResponse < TencentCloud::Common::AbstractModel
516
+ # @param ScoreSet: 数组
517
+ # @type ScoreSet: Array
518
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
519
+ # @type RequestId: String
520
+
521
+ attr_accessor :ScoreSet, :RequestId
522
+
523
+ def initialize(scoreset=nil, requestid=nil)
524
+ @ScoreSet = scoreset
525
+ @RequestId = requestid
526
+ end
527
+
528
+ def deserialize(params)
529
+ unless params['ScoreSet'].nil?
530
+ @ScoreSet = []
531
+ params['ScoreSet'].each do |i|
532
+ scoreinfo_tmp = ScoreInfo.new
533
+ scoreinfo_tmp.deserialize(i)
534
+ @ScoreSet << scoreinfo_tmp
535
+ end
536
+ end
537
+ @RequestId = params['RequestId']
538
+ end
539
+ end
540
+
541
+ # 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
542
+
543
+ # · 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
544
+ # · 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
545
+ class Filter < TencentCloud::Common::AbstractModel
546
+ # @param Values: 一个或者多个过滤值。
547
+ # @type Values: Array
548
+ # @param Name: 过滤键的名称。
549
+ # @type Name: String
550
+
551
+ attr_accessor :Values, :Name
552
+
553
+ def initialize(values=nil, name=nil)
554
+ @Values = values
555
+ @Name = name
556
+ end
557
+
558
+ def deserialize(params)
559
+ @Values = params['Values']
560
+ @Name = params['Name']
561
+ end
562
+ end
563
+
564
+ # Rum 项目信息
565
+ class RumProject < TencentCloud::Common::AbstractModel
566
+ # @param Name: 项目名
567
+ # @type Name: String
568
+ # @param Creator: 创建者 id
569
+ # @type Creator: String
570
+ # @param InstanceID: 实例 id
571
+ # @type InstanceID: String
572
+ # @param Type: 项目类型
573
+ # @type Type: String
574
+ # @param CreateTime: 创建时间
575
+ # @type CreateTime: String
576
+ # @param Repo: 项目仓库地址
577
+ # 注意:此字段可能返回 null,表示取不到有效值。
578
+ # @type Repo: String
579
+ # @param URL: 项目网址地址
580
+ # 注意:此字段可能返回 null,表示取不到有效值。
581
+ # @type URL: String
582
+ # @param Rate: 项目采样频率
583
+ # @type Rate: String
584
+ # @param Key: 项目唯一key(长度 12 位)
585
+ # @type Key: String
586
+ # @param EnableURLGroup: 是否开启url聚类
587
+ # @type EnableURLGroup: Integer
588
+ # @param InstanceName: 实例名
589
+ # @type InstanceName: String
590
+ # @param ID: 项目 ID
591
+ # @type ID: Integer
592
+ # @param InstanceKey: 实例 key
593
+ # @type InstanceKey: String
594
+ # @param Desc: 项目描述
595
+ # 注意:此字段可能返回 null,表示取不到有效值。
596
+ # @type Desc: String
597
+ # @param IsStar: 是否星标 1:是 0:否
598
+ # 注意:此字段可能返回 null,表示取不到有效值。
599
+ # @type IsStar: Integer
600
+
601
+ attr_accessor :Name, :Creator, :InstanceID, :Type, :CreateTime, :Repo, :URL, :Rate, :Key, :EnableURLGroup, :InstanceName, :ID, :InstanceKey, :Desc, :IsStar
602
+
603
+ def initialize(name=nil, creator=nil, instanceid=nil, type=nil, createtime=nil, repo=nil, url=nil, rate=nil, key=nil, enableurlgroup=nil, instancename=nil, id=nil, instancekey=nil, desc=nil, isstar=nil)
604
+ @Name = name
605
+ @Creator = creator
606
+ @InstanceID = instanceid
607
+ @Type = type
608
+ @CreateTime = createtime
609
+ @Repo = repo
610
+ @URL = url
611
+ @Rate = rate
612
+ @Key = key
613
+ @EnableURLGroup = enableurlgroup
614
+ @InstanceName = instancename
615
+ @ID = id
616
+ @InstanceKey = instancekey
617
+ @Desc = desc
618
+ @IsStar = isstar
619
+ end
620
+
621
+ def deserialize(params)
622
+ @Name = params['Name']
623
+ @Creator = params['Creator']
624
+ @InstanceID = params['InstanceID']
625
+ @Type = params['Type']
626
+ @CreateTime = params['CreateTime']
627
+ @Repo = params['Repo']
628
+ @URL = params['URL']
629
+ @Rate = params['Rate']
630
+ @Key = params['Key']
631
+ @EnableURLGroup = params['EnableURLGroup']
632
+ @InstanceName = params['InstanceName']
633
+ @ID = params['ID']
634
+ @InstanceKey = params['InstanceKey']
635
+ @Desc = params['Desc']
636
+ @IsStar = params['IsStar']
637
+ end
638
+ end
639
+
640
+ # project Score分数实体
641
+ class ScoreInfo < TencentCloud::Common::AbstractModel
642
+ # @param StaticDuration: duration
643
+ # @type StaticDuration: String
644
+ # @param PagePv: pv
645
+ # @type PagePv: String
646
+ # @param ApiFail: 失败
647
+ # @type ApiFail: String
648
+ # @param ApiNum: 请求
649
+ # @type ApiNum: String
650
+ # @param StaticFail: fail
651
+ # @type StaticFail: String
652
+ # @param ProjectID: 项目id
653
+ # @type ProjectID: Integer
654
+ # @param PageUv: uv
655
+ # @type PageUv: String
656
+ # @param ApiDuration: 请求次数
657
+ # @type ApiDuration: String
658
+ # @param Score: 分数
659
+ # @type Score: String
660
+ # @param PageError: error
661
+ # @type PageError: String
662
+ # @param StaticNum: num
663
+ # @type StaticNum: String
664
+ # @param RecordNum: num
665
+ # @type RecordNum: Integer
666
+ # @param PageDuration: Duration
667
+ # @type PageDuration: String
668
+
669
+ attr_accessor :StaticDuration, :PagePv, :ApiFail, :ApiNum, :StaticFail, :ProjectID, :PageUv, :ApiDuration, :Score, :PageError, :StaticNum, :RecordNum, :PageDuration
670
+
671
+ def initialize(staticduration=nil, pagepv=nil, apifail=nil, apinum=nil, staticfail=nil, projectid=nil, pageuv=nil, apiduration=nil, score=nil, pageerror=nil, staticnum=nil, recordnum=nil, pageduration=nil)
672
+ @StaticDuration = staticduration
673
+ @PagePv = pagepv
674
+ @ApiFail = apifail
675
+ @ApiNum = apinum
676
+ @StaticFail = staticfail
677
+ @ProjectID = projectid
678
+ @PageUv = pageuv
679
+ @ApiDuration = apiduration
680
+ @Score = score
681
+ @PageError = pageerror
682
+ @StaticNum = staticnum
683
+ @RecordNum = recordnum
684
+ @PageDuration = pageduration
685
+ end
686
+
687
+ def deserialize(params)
688
+ @StaticDuration = params['StaticDuration']
689
+ @PagePv = params['PagePv']
690
+ @ApiFail = params['ApiFail']
691
+ @ApiNum = params['ApiNum']
692
+ @StaticFail = params['StaticFail']
693
+ @ProjectID = params['ProjectID']
694
+ @PageUv = params['PageUv']
695
+ @ApiDuration = params['ApiDuration']
696
+ @Score = params['Score']
697
+ @PageError = params['PageError']
698
+ @StaticNum = params['StaticNum']
699
+ @RecordNum = params['RecordNum']
700
+ @PageDuration = params['PageDuration']
701
+ end
702
+ end
703
+
704
+ end
705
+ end
706
+ end
707
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-rum
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.200
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ RUM.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-rum.rb
38
+ - lib/v20210622/client.rb
39
+ - lib/v20210622/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-rum
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - RUM
66
+ test_files: []