tencentcloud-sdk-securitylake 3.0.1092

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: 3a015e6f49ee0e017942b527e4f33af0522a3b40
4
+ data.tar.gz: 8153a051f4dfa0014215a6292f36865a8524a5ef
5
+ SHA512:
6
+ metadata.gz: 7beea569cdf9fefd4379fdad872488b85bb982beb22ccc12c65b8ab25dbbac2c7b443dd35425abf4f81aafb16aaf19ba232417c392f362e5f4153d97895af279
7
+ data.tar.gz: 0826f676e6116e583f7dc3e5b550d2b0b53e18edd98f5d6aea31ad2aa01fd3d2e0dc564f43cb5672e87c66255436054cf70519c37ad26fe4eb98327a49e16073
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.1092
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20240117/client'
6
+ require_relative 'v20240117/models'
7
+
8
+ module TencentCloud
9
+ module Securitylake
10
+ end
11
+ end
@@ -0,0 +1,60 @@
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 Securitylake
21
+ module V20240117
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2024-01-17'
26
+ api_endpoint = 'securitylake.tencentcloudapi.com'
27
+ sdk_version = 'SECURITYLAKE_' + 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 DescribeSecurityAlarmTableList.
35
+ # @type request: :class:`Tencentcloud::securitylake::V20240117::DescribeSecurityAlarmTableListRequest`
36
+ # @rtype: :class:`Tencentcloud::securitylake::V20240117::DescribeSecurityAlarmTableListResponse`
37
+ def DescribeSecurityAlarmTableList(request)
38
+ body = send_request('DescribeSecurityAlarmTableList', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeSecurityAlarmTableListResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,377 @@
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 Securitylake
19
+ module V20240117
20
+ # DescribeSecurityAlarmTableList请求参数结构体
21
+ class DescribeSecurityAlarmTableListRequest < TencentCloud::Common::AbstractModel
22
+ # @param SdlId: 实例ID
23
+ # @type SdlId: String
24
+ # @param Filters: 过滤条件
25
+ # @type Filters: Array
26
+ # @param Limit: 长度
27
+ # @type Limit: Integer
28
+ # @param Offset: 偏移
29
+ # @type Offset: Integer
30
+ # @param Order: 排序
31
+ # @type Order: String
32
+ # @param By: 排序字段
33
+ # @type By: String
34
+ # @param StartTime: 开始时间,毫秒
35
+ # @type StartTime: Integer
36
+ # @param EndTime: 结束时间
37
+ # @type EndTime: Integer
38
+
39
+ attr_accessor :SdlId, :Filters, :Limit, :Offset, :Order, :By, :StartTime, :EndTime
40
+
41
+ def initialize(sdlid=nil, filters=nil, limit=nil, offset=nil, order=nil, by=nil, starttime=nil, endtime=nil)
42
+ @SdlId = sdlid
43
+ @Filters = filters
44
+ @Limit = limit
45
+ @Offset = offset
46
+ @Order = order
47
+ @By = by
48
+ @StartTime = starttime
49
+ @EndTime = endtime
50
+ end
51
+
52
+ def deserialize(params)
53
+ @SdlId = params['SdlId']
54
+ unless params['Filters'].nil?
55
+ @Filters = []
56
+ params['Filters'].each do |i|
57
+ websearchfilter_tmp = WebSearchFilter.new
58
+ websearchfilter_tmp.deserialize(i)
59
+ @Filters << websearchfilter_tmp
60
+ end
61
+ end
62
+ @Limit = params['Limit']
63
+ @Offset = params['Offset']
64
+ @Order = params['Order']
65
+ @By = params['By']
66
+ @StartTime = params['StartTime']
67
+ @EndTime = params['EndTime']
68
+ end
69
+ end
70
+
71
+ # DescribeSecurityAlarmTableList返回参数结构体
72
+ class DescribeSecurityAlarmTableListResponse < TencentCloud::Common::AbstractModel
73
+ # @param AlarmList: 字段列表
74
+ # @type AlarmList: Array
75
+ # @param TotalCount: 数量
76
+ # @type TotalCount: Integer
77
+ # @param Limit: 限制
78
+ # @type Limit: Integer
79
+ # @param Offset: 偏移
80
+ # @type Offset: Integer
81
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
82
+ # @type RequestId: String
83
+
84
+ attr_accessor :AlarmList, :TotalCount, :Limit, :Offset, :RequestId
85
+
86
+ def initialize(alarmlist=nil, totalcount=nil, limit=nil, offset=nil, requestid=nil)
87
+ @AlarmList = alarmlist
88
+ @TotalCount = totalcount
89
+ @Limit = limit
90
+ @Offset = offset
91
+ @RequestId = requestid
92
+ end
93
+
94
+ def deserialize(params)
95
+ unless params['AlarmList'].nil?
96
+ @AlarmList = []
97
+ params['AlarmList'].each do |i|
98
+ securityalarmtable_tmp = SecurityAlarmTable.new
99
+ securityalarmtable_tmp.deserialize(i)
100
+ @AlarmList << securityalarmtable_tmp
101
+ end
102
+ end
103
+ @TotalCount = params['TotalCount']
104
+ @Limit = params['Limit']
105
+ @Offset = params['Offset']
106
+ @RequestId = params['RequestId']
107
+ end
108
+ end
109
+
110
+ # 告警列表
111
+ class SecurityAlarmTable < TencentCloud::Common::AbstractModel
112
+ # @param Timestamp: 时间
113
+ # @type Timestamp: String
114
+ # @param AlarmName: 告警名称
115
+ # @type AlarmName: String
116
+ # @param RuleName: 规则名称
117
+ # @type RuleName: String
118
+ # @param AlarmId: 告警id
119
+ # @type AlarmId: Integer
120
+ # @param Severity: 安全性
121
+ # @type Severity: Integer
122
+ # @param Score: 评分
123
+ # @type Score: Integer
124
+ # @param Category: 分类
125
+ # @type Category: String
126
+ # @param SubCategory: 子分类
127
+ # @type SubCategory: String
128
+ # @param Tags: 标签
129
+ # @type Tags: String
130
+ # @param Payload: 有效载荷
131
+ # @type Payload: String
132
+ # @param Result: 结果
133
+ # @type Result: String
134
+ # @param Confidence: 可信度
135
+ # @type Confidence: Integer
136
+ # @param Status: 状态
137
+ # @type Status: String
138
+ # @param RuleTopic: 规则主题
139
+ # @type RuleTopic: String
140
+ # @param HandleTime: 处理时间
141
+ # @type HandleTime: String
142
+ # @param Suggestion: 建议
143
+ # @type Suggestion: String
144
+ # @param Description: 描述
145
+ # @type Description: String
146
+ # @param SourceName: 来源名称
147
+ # @type SourceName: String
148
+ # @param AppId: APPID
149
+ # @type AppId: Integer
150
+ # @param RuleId: 规则ID
151
+ # @type RuleId: Integer
152
+ # @param EventTime: 事件时间
153
+ # @type EventTime: String
154
+ # @param RuleType: 规则类型
155
+ # @type RuleType: String
156
+ # @param AttackNum: 攻击次数
157
+ # @type AttackNum: Integer
158
+ # @param AlarmCount: 告警数量
159
+ # @type AlarmCount: Integer
160
+ # @param AttackSubTechnique: ATT&CK子技术
161
+ # @type AttackSubTechnique: String
162
+ # @param AttackTechnique: ATT&CK技术
163
+ # @type AttackTechnique: String
164
+ # @param AttackTactic: ATT&CK战术
165
+ # @type AttackTactic: String
166
+ # @param AttackSubTechniqueName: ATT&CK子技术名称
167
+ # @type AttackSubTechniqueName: String
168
+ # @param AttackTechniqueName: ATT&CK技术名称
169
+ # @type AttackTechniqueName: String
170
+ # @param AttackTacticName: 凭证访问
171
+ # @type AttackTacticName: String
172
+ # @param StartTime: 开始时间
173
+ # @type StartTime: String
174
+ # @param EndTime: 结束时间
175
+ # @type EndTime: String
176
+ # @param RuleExpression: 规则表达式
177
+ # @type RuleExpression: String
178
+ # @param ExpressionType: 表达式类型
179
+ # @type ExpressionType: String
180
+ # @param DrillDownExpression: 下钻表达式
181
+ # @type DrillDownExpression: String
182
+ # @param SrcIp: 源IP
183
+ # @type SrcIp: String
184
+ # @param SrcPort: 源端口
185
+ # @type SrcPort: Integer
186
+ # @param DstIp: 目的IP
187
+ # @type DstIp: String
188
+ # @param DstPort: 目的端口
189
+ # @type DstPort: Integer
190
+ # @param HostIp: 主机IP
191
+ # @type HostIp: String
192
+ # @param HostAsset: 主机资产
193
+ # @type HostAsset: String
194
+ # @param SdlId: 实例id
195
+ # @type SdlId: String
196
+ # @param RichCustomInfos: 自定义富化字段信息
197
+ # 注意:此字段可能返回 null,表示取不到有效值。
198
+ # @type RichCustomInfos: Array
199
+ # @param AttackerIp: 攻击者ip
200
+ # @type AttackerIp: String
201
+ # @param AttackerAsset: 攻击者资产ID
202
+ # @type AttackerAsset: String
203
+ # @param VictimIp: 受害者ip
204
+ # @type VictimIp: String
205
+ # @param VictimAsset: 受害者资产ID
206
+ # @type VictimAsset: String
207
+ # @param AttackDirection: 攻击方向
208
+ # @type AttackDirection: String
209
+ # @param TrafficDirection: 流量方向
210
+ # @type TrafficDirection: String
211
+ # @param SecurityGroupAlertInfos: 测试
212
+ # @type SecurityGroupAlertInfos: Array
213
+
214
+ attr_accessor :Timestamp, :AlarmName, :RuleName, :AlarmId, :Severity, :Score, :Category, :SubCategory, :Tags, :Payload, :Result, :Confidence, :Status, :RuleTopic, :HandleTime, :Suggestion, :Description, :SourceName, :AppId, :RuleId, :EventTime, :RuleType, :AttackNum, :AlarmCount, :AttackSubTechnique, :AttackTechnique, :AttackTactic, :AttackSubTechniqueName, :AttackTechniqueName, :AttackTacticName, :StartTime, :EndTime, :RuleExpression, :ExpressionType, :DrillDownExpression, :SrcIp, :SrcPort, :DstIp, :DstPort, :HostIp, :HostAsset, :SdlId, :RichCustomInfos, :AttackerIp, :AttackerAsset, :VictimIp, :VictimAsset, :AttackDirection, :TrafficDirection, :SecurityGroupAlertInfos
215
+
216
+ def initialize(timestamp=nil, alarmname=nil, rulename=nil, alarmid=nil, severity=nil, score=nil, category=nil, subcategory=nil, tags=nil, payload=nil, result=nil, confidence=nil, status=nil, ruletopic=nil, handletime=nil, suggestion=nil, description=nil, sourcename=nil, appid=nil, ruleid=nil, eventtime=nil, ruletype=nil, attacknum=nil, alarmcount=nil, attacksubtechnique=nil, attacktechnique=nil, attacktactic=nil, attacksubtechniquename=nil, attacktechniquename=nil, attacktacticname=nil, starttime=nil, endtime=nil, ruleexpression=nil, expressiontype=nil, drilldownexpression=nil, srcip=nil, srcport=nil, dstip=nil, dstport=nil, hostip=nil, hostasset=nil, sdlid=nil, richcustominfos=nil, attackerip=nil, attackerasset=nil, victimip=nil, victimasset=nil, attackdirection=nil, trafficdirection=nil, securitygroupalertinfos=nil)
217
+ @Timestamp = timestamp
218
+ @AlarmName = alarmname
219
+ @RuleName = rulename
220
+ @AlarmId = alarmid
221
+ @Severity = severity
222
+ @Score = score
223
+ @Category = category
224
+ @SubCategory = subcategory
225
+ @Tags = tags
226
+ @Payload = payload
227
+ @Result = result
228
+ @Confidence = confidence
229
+ @Status = status
230
+ @RuleTopic = ruletopic
231
+ @HandleTime = handletime
232
+ @Suggestion = suggestion
233
+ @Description = description
234
+ @SourceName = sourcename
235
+ @AppId = appid
236
+ @RuleId = ruleid
237
+ @EventTime = eventtime
238
+ @RuleType = ruletype
239
+ @AttackNum = attacknum
240
+ @AlarmCount = alarmcount
241
+ @AttackSubTechnique = attacksubtechnique
242
+ @AttackTechnique = attacktechnique
243
+ @AttackTactic = attacktactic
244
+ @AttackSubTechniqueName = attacksubtechniquename
245
+ @AttackTechniqueName = attacktechniquename
246
+ @AttackTacticName = attacktacticname
247
+ @StartTime = starttime
248
+ @EndTime = endtime
249
+ @RuleExpression = ruleexpression
250
+ @ExpressionType = expressiontype
251
+ @DrillDownExpression = drilldownexpression
252
+ @SrcIp = srcip
253
+ @SrcPort = srcport
254
+ @DstIp = dstip
255
+ @DstPort = dstport
256
+ @HostIp = hostip
257
+ @HostAsset = hostasset
258
+ @SdlId = sdlid
259
+ @RichCustomInfos = richcustominfos
260
+ @AttackerIp = attackerip
261
+ @AttackerAsset = attackerasset
262
+ @VictimIp = victimip
263
+ @VictimAsset = victimasset
264
+ @AttackDirection = attackdirection
265
+ @TrafficDirection = trafficdirection
266
+ @SecurityGroupAlertInfos = securitygroupalertinfos
267
+ end
268
+
269
+ def deserialize(params)
270
+ @Timestamp = params['Timestamp']
271
+ @AlarmName = params['AlarmName']
272
+ @RuleName = params['RuleName']
273
+ @AlarmId = params['AlarmId']
274
+ @Severity = params['Severity']
275
+ @Score = params['Score']
276
+ @Category = params['Category']
277
+ @SubCategory = params['SubCategory']
278
+ @Tags = params['Tags']
279
+ @Payload = params['Payload']
280
+ @Result = params['Result']
281
+ @Confidence = params['Confidence']
282
+ @Status = params['Status']
283
+ @RuleTopic = params['RuleTopic']
284
+ @HandleTime = params['HandleTime']
285
+ @Suggestion = params['Suggestion']
286
+ @Description = params['Description']
287
+ @SourceName = params['SourceName']
288
+ @AppId = params['AppId']
289
+ @RuleId = params['RuleId']
290
+ @EventTime = params['EventTime']
291
+ @RuleType = params['RuleType']
292
+ @AttackNum = params['AttackNum']
293
+ @AlarmCount = params['AlarmCount']
294
+ @AttackSubTechnique = params['AttackSubTechnique']
295
+ @AttackTechnique = params['AttackTechnique']
296
+ @AttackTactic = params['AttackTactic']
297
+ @AttackSubTechniqueName = params['AttackSubTechniqueName']
298
+ @AttackTechniqueName = params['AttackTechniqueName']
299
+ @AttackTacticName = params['AttackTacticName']
300
+ @StartTime = params['StartTime']
301
+ @EndTime = params['EndTime']
302
+ @RuleExpression = params['RuleExpression']
303
+ @ExpressionType = params['ExpressionType']
304
+ @DrillDownExpression = params['DrillDownExpression']
305
+ @SrcIp = params['SrcIp']
306
+ @SrcPort = params['SrcPort']
307
+ @DstIp = params['DstIp']
308
+ @DstPort = params['DstPort']
309
+ @HostIp = params['HostIp']
310
+ @HostAsset = params['HostAsset']
311
+ @SdlId = params['SdlId']
312
+ @RichCustomInfos = params['RichCustomInfos']
313
+ @AttackerIp = params['AttackerIp']
314
+ @AttackerAsset = params['AttackerAsset']
315
+ @VictimIp = params['VictimIp']
316
+ @VictimAsset = params['VictimAsset']
317
+ @AttackDirection = params['AttackDirection']
318
+ @TrafficDirection = params['TrafficDirection']
319
+ unless params['SecurityGroupAlertInfos'].nil?
320
+ @SecurityGroupAlertInfos = []
321
+ params['SecurityGroupAlertInfos'].each do |i|
322
+ securitygroupalertinfo_tmp = SecurityGroupAlertInfo.new
323
+ securitygroupalertinfo_tmp.deserialize(i)
324
+ @SecurityGroupAlertInfos << securitygroupalertinfo_tmp
325
+ end
326
+ end
327
+ end
328
+ end
329
+
330
+ # 被归并的原始告警信息
331
+ class SecurityGroupAlertInfo < TencentCloud::Common::AbstractModel
332
+ # @param AlarmUuid: 告警Uuid
333
+ # @type AlarmUuid: String
334
+ # @param Timestamp: 告警生成时间
335
+ # @type Timestamp: String
336
+
337
+ attr_accessor :AlarmUuid, :Timestamp
338
+
339
+ def initialize(alarmuuid=nil, timestamp=nil)
340
+ @AlarmUuid = alarmuuid
341
+ @Timestamp = timestamp
342
+ end
343
+
344
+ def deserialize(params)
345
+ @AlarmUuid = params['AlarmUuid']
346
+ @Timestamp = params['Timestamp']
347
+ end
348
+ end
349
+
350
+ # web搜索过滤
351
+ class WebSearchFilter < TencentCloud::Common::AbstractModel
352
+ # @param Name: 过滤字段
353
+ # @type Name: String
354
+ # @param Values: 值
355
+ # @type Values: Array
356
+ # @param ExactMatch: 是否全匹配
357
+ # @type ExactMatch: Boolean
358
+
359
+ attr_accessor :Name, :Values, :ExactMatch
360
+
361
+ def initialize(name=nil, values=nil, exactmatch=nil)
362
+ @Name = name
363
+ @Values = values
364
+ @ExactMatch = exactmatch
365
+ end
366
+
367
+ def deserialize(params)
368
+ @Name = params['Name']
369
+ @Values = params['Values']
370
+ @ExactMatch = params['ExactMatch']
371
+ end
372
+ end
373
+
374
+ end
375
+ end
376
+ end
377
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-securitylake
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.1092
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-07-03 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: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.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
+ SECURITYLAKE.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/v20240117/client.rb
37
+ - lib/v20240117/models.rb
38
+ - lib/tencentcloud-sdk-securitylake.rb
39
+ - lib/VERSION
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-securitylake
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.0.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - SECURITYLAKE
66
+ test_files: []