tencentcloud-sdk-cdb 3.0.534 → 3.0.535
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170320/client.rb +26 -0
- data/lib/v20170320/models.rb +177 -4
- 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: eef04c6366e7dd3834eea3e599b921a44c34532a
|
4
|
+
data.tar.gz: c5d8fbdb4fa857fddffef33654ab1ac7b324c7d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc8da331765c95d6805d16bb6bf4339ed15c9567f45b50efaca6fe7ef2523427116fd9fe5272cf7cf755b5dbaa13d9a124681dfa6854c6675a4da8d779326438
|
7
|
+
data.tar.gz: ee19264a575d32f3cc162169df20105f64956ac68f83ffd6723a7b8e9d53e71c3e3b456e141e44fdfcc680e193fb4ea39d76986050e198db6408fc36831cca68
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.535
|
data/lib/v20170320/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 在不同过滤条件下的审计日志结果集中,选定特定的数据列进行聚合统计。
|
57
|
+
|
58
|
+
# @param request: Request instance for AnalyzeAuditLogs.
|
59
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::AnalyzeAuditLogsRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::AnalyzeAuditLogsResponse`
|
61
|
+
def AnalyzeAuditLogs(request)
|
62
|
+
body = send_request('AnalyzeAuditLogs', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = AnalyzeAuditLogsResponse.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
|
+
|
56
80
|
# 本接口(AssociateSecurityGroups)用于安全组批量绑定实例。
|
57
81
|
|
58
82
|
# @param request: Request instance for AssociateSecurityGroups.
|
@@ -2072,6 +2096,8 @@ module TencentCloud
|
|
2072
2096
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2073
2097
|
end
|
2074
2098
|
|
2099
|
+
# 该接口不再维护,参考CreateDBInstance+API文档,在发货时即可完成初始化。
|
2100
|
+
|
2075
2101
|
# 本接口(InitDBInstances)用于初始化云数据库实例,包括初始化密码、默认字符集、实例端口号等。该接口已经废弃,在发货接口CreateDBInstance、CreateDBInstanceHour可以直接使用参数Password设置密码,使用参数ParamList设置字符集,使用参数Port设置端口号。
|
2076
2102
|
|
2077
2103
|
# @param request: Request instance for InitDBInstances.
|
data/lib/v20170320/models.rb
CHANGED
@@ -178,6 +178,105 @@ module TencentCloud
|
|
178
178
|
end
|
179
179
|
end
|
180
180
|
|
181
|
+
# 审计日志聚合条件
|
182
|
+
class AggregationCondition < TencentCloud::Common::AbstractModel
|
183
|
+
# @param AggregationField: 聚合字段。目前仅支持host-源IP、user-用户名、dbName-数据库名、sqlType-sql类型。
|
184
|
+
# @type AggregationField: String
|
185
|
+
# @param Offset: 偏移量。
|
186
|
+
# @type Offset: Integer
|
187
|
+
# @param Limit: 该聚合字段下要返回聚合桶的数量,最大100。
|
188
|
+
# @type Limit: Integer
|
189
|
+
|
190
|
+
attr_accessor :AggregationField, :Offset, :Limit
|
191
|
+
|
192
|
+
def initialize(aggregationfield=nil, offset=nil, limit=nil)
|
193
|
+
@AggregationField = aggregationfield
|
194
|
+
@Offset = offset
|
195
|
+
@Limit = limit
|
196
|
+
end
|
197
|
+
|
198
|
+
def deserialize(params)
|
199
|
+
@AggregationField = params['AggregationField']
|
200
|
+
@Offset = params['Offset']
|
201
|
+
@Limit = params['Limit']
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# AnalyzeAuditLogs请求参数结构体
|
206
|
+
class AnalyzeAuditLogsRequest < TencentCloud::Common::AbstractModel
|
207
|
+
# @param InstanceId: 实例ID。
|
208
|
+
# @type InstanceId: String
|
209
|
+
# @param StartTime: 要分析的日志开始时间,格式为:"2023-02-16 00:00:20"。
|
210
|
+
# @type StartTime: String
|
211
|
+
# @param EndTime: 要分析的日志结束时间,格式为:"2023-02-16 00:10:20"。
|
212
|
+
# @type EndTime: String
|
213
|
+
# @param AggregationConditions: 聚合维度的排序条件。
|
214
|
+
# @type AggregationConditions: Array
|
215
|
+
# @param AuditLogFilter: 该过滤条件下的审计日志结果集作为分析日志。
|
216
|
+
# @type AuditLogFilter: :class:`Tencentcloud::Cdb.v20170320.models.AuditLogFilter`
|
217
|
+
|
218
|
+
attr_accessor :InstanceId, :StartTime, :EndTime, :AggregationConditions, :AuditLogFilter
|
219
|
+
|
220
|
+
def initialize(instanceid=nil, starttime=nil, endtime=nil, aggregationconditions=nil, auditlogfilter=nil)
|
221
|
+
@InstanceId = instanceid
|
222
|
+
@StartTime = starttime
|
223
|
+
@EndTime = endtime
|
224
|
+
@AggregationConditions = aggregationconditions
|
225
|
+
@AuditLogFilter = auditlogfilter
|
226
|
+
end
|
227
|
+
|
228
|
+
def deserialize(params)
|
229
|
+
@InstanceId = params['InstanceId']
|
230
|
+
@StartTime = params['StartTime']
|
231
|
+
@EndTime = params['EndTime']
|
232
|
+
unless params['AggregationConditions'].nil?
|
233
|
+
@AggregationConditions = []
|
234
|
+
params['AggregationConditions'].each do |i|
|
235
|
+
aggregationcondition_tmp = AggregationCondition.new
|
236
|
+
aggregationcondition_tmp.deserialize(i)
|
237
|
+
@AggregationConditions << aggregationcondition_tmp
|
238
|
+
end
|
239
|
+
end
|
240
|
+
unless params['AuditLogFilter'].nil?
|
241
|
+
@AuditLogFilter = AuditLogFilter.new
|
242
|
+
@AuditLogFilter.deserialize(params['AuditLogFilter'])
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
# AnalyzeAuditLogs返回参数结构体
|
248
|
+
class AnalyzeAuditLogsResponse < TencentCloud::Common::AbstractModel
|
249
|
+
# @param Items: 返回的聚合桶信息集
|
250
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
251
|
+
# @type Items: Array
|
252
|
+
# @param TotalCount: 扫描的日志条数
|
253
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
254
|
+
# @type TotalCount: Integer
|
255
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
256
|
+
# @type RequestId: String
|
257
|
+
|
258
|
+
attr_accessor :Items, :TotalCount, :RequestId
|
259
|
+
|
260
|
+
def initialize(items=nil, totalcount=nil, requestid=nil)
|
261
|
+
@Items = items
|
262
|
+
@TotalCount = totalcount
|
263
|
+
@RequestId = requestid
|
264
|
+
end
|
265
|
+
|
266
|
+
def deserialize(params)
|
267
|
+
unless params['Items'].nil?
|
268
|
+
@Items = []
|
269
|
+
params['Items'].each do |i|
|
270
|
+
auditlogaggregationresult_tmp = AuditLogAggregationResult.new
|
271
|
+
auditlogaggregationresult_tmp.deserialize(i)
|
272
|
+
@Items << auditlogaggregationresult_tmp
|
273
|
+
end
|
274
|
+
end
|
275
|
+
@TotalCount = params['TotalCount']
|
276
|
+
@RequestId = params['RequestId']
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
181
280
|
# AssociateSecurityGroups请求参数结构体
|
182
281
|
class AssociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
183
282
|
# @param SecurityGroupId: 安全组 ID。
|
@@ -249,6 +348,35 @@ module TencentCloud
|
|
249
348
|
end
|
250
349
|
end
|
251
350
|
|
351
|
+
# 审计日志分析结果
|
352
|
+
class AuditLogAggregationResult < TencentCloud::Common::AbstractModel
|
353
|
+
# @param AggregationField: 聚合维度
|
354
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
355
|
+
# @type AggregationField: String
|
356
|
+
# @param Buckets: 聚合桶的结果集
|
357
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
358
|
+
# @type Buckets: Array
|
359
|
+
|
360
|
+
attr_accessor :AggregationField, :Buckets
|
361
|
+
|
362
|
+
def initialize(aggregationfield=nil, buckets=nil)
|
363
|
+
@AggregationField = aggregationfield
|
364
|
+
@Buckets = buckets
|
365
|
+
end
|
366
|
+
|
367
|
+
def deserialize(params)
|
368
|
+
@AggregationField = params['AggregationField']
|
369
|
+
unless params['Buckets'].nil?
|
370
|
+
@Buckets = []
|
371
|
+
params['Buckets'].each do |i|
|
372
|
+
bucket_tmp = Bucket.new
|
373
|
+
bucket_tmp.deserialize(i)
|
374
|
+
@Buckets << bucket_tmp
|
375
|
+
end
|
376
|
+
end
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
252
380
|
# 审计日志文件
|
253
381
|
class AuditLogFile < TencentCloud::Common::AbstractModel
|
254
382
|
# @param FileName: 审计日志文件名称
|
@@ -315,10 +443,22 @@ module TencentCloud
|
|
315
443
|
# @type SqlTypes: Array
|
316
444
|
# @param Sqls: SQL 语句。支持传递多个sql语句。
|
317
445
|
# @type Sqls: Array
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
446
|
+
# @param AffectRowsSection: 影响行数,格式为M-N,例如:10-200
|
447
|
+
# @type AffectRowsSection: String
|
448
|
+
# @param SentRowsSection: 返回行数,格式为M-N,例如:10-200
|
449
|
+
# @type SentRowsSection: String
|
450
|
+
# @param ExecTimeSection: 执行时间,格式为M-N,例如:10-200
|
451
|
+
# @type ExecTimeSection: String
|
452
|
+
# @param LockWaitTimeSection: 锁等待时间,格式为M-N,例如:10-200
|
453
|
+
# @type LockWaitTimeSection: String
|
454
|
+
# @param IoWaitTimeSection: IO等待时间,格式为M-N,例如:10-200
|
455
|
+
# @type IoWaitTimeSection: String
|
456
|
+
# @param TransactionLivingTimeSection: 事务持续时间,格式为M-N,例如:10-200
|
457
|
+
# @type TransactionLivingTimeSection: String
|
458
|
+
|
459
|
+
attr_accessor :Host, :User, :DBName, :TableName, :PolicyName, :Sql, :SqlType, :ExecTime, :AffectRows, :SqlTypes, :Sqls, :AffectRowsSection, :SentRowsSection, :ExecTimeSection, :LockWaitTimeSection, :IoWaitTimeSection, :TransactionLivingTimeSection
|
460
|
+
|
461
|
+
def initialize(host=nil, user=nil, dbname=nil, tablename=nil, policyname=nil, sql=nil, sqltype=nil, exectime=nil, affectrows=nil, sqltypes=nil, sqls=nil, affectrowssection=nil, sentrowssection=nil, exectimesection=nil, lockwaittimesection=nil, iowaittimesection=nil, transactionlivingtimesection=nil)
|
322
462
|
@Host = host
|
323
463
|
@User = user
|
324
464
|
@DBName = dbname
|
@@ -330,6 +470,12 @@ module TencentCloud
|
|
330
470
|
@AffectRows = affectrows
|
331
471
|
@SqlTypes = sqltypes
|
332
472
|
@Sqls = sqls
|
473
|
+
@AffectRowsSection = affectrowssection
|
474
|
+
@SentRowsSection = sentrowssection
|
475
|
+
@ExecTimeSection = exectimesection
|
476
|
+
@LockWaitTimeSection = lockwaittimesection
|
477
|
+
@IoWaitTimeSection = iowaittimesection
|
478
|
+
@TransactionLivingTimeSection = transactionlivingtimesection
|
333
479
|
end
|
334
480
|
|
335
481
|
def deserialize(params)
|
@@ -344,6 +490,12 @@ module TencentCloud
|
|
344
490
|
@AffectRows = params['AffectRows']
|
345
491
|
@SqlTypes = params['SqlTypes']
|
346
492
|
@Sqls = params['Sqls']
|
493
|
+
@AffectRowsSection = params['AffectRowsSection']
|
494
|
+
@SentRowsSection = params['SentRowsSection']
|
495
|
+
@ExecTimeSection = params['ExecTimeSection']
|
496
|
+
@LockWaitTimeSection = params['LockWaitTimeSection']
|
497
|
+
@IoWaitTimeSection = params['IoWaitTimeSection']
|
498
|
+
@TransactionLivingTimeSection = params['TransactionLivingTimeSection']
|
347
499
|
end
|
348
500
|
end
|
349
501
|
|
@@ -826,6 +978,27 @@ module TencentCloud
|
|
826
978
|
end
|
827
979
|
end
|
828
980
|
|
981
|
+
# 聚合桶的信息
|
982
|
+
class Bucket < TencentCloud::Common::AbstractModel
|
983
|
+
# @param Key: 无
|
984
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
985
|
+
# @type Key: String
|
986
|
+
# @param Count: ip等于10.0.0.8访问了26次实例,即桶内文档数量。
|
987
|
+
# @type Count: Integer
|
988
|
+
|
989
|
+
attr_accessor :Key, :Count
|
990
|
+
|
991
|
+
def initialize(key=nil, count=nil)
|
992
|
+
@Key = key
|
993
|
+
@Count = count
|
994
|
+
end
|
995
|
+
|
996
|
+
def deserialize(params)
|
997
|
+
@Key = params['Key']
|
998
|
+
@Count = params['Count']
|
999
|
+
end
|
1000
|
+
end
|
1001
|
+
|
829
1002
|
# 地域售卖配置
|
830
1003
|
class CdbRegionSellConf < TencentCloud::Common::AbstractModel
|
831
1004
|
# @param RegionName: 地域中文名称
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.535
|
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-03-
|
11
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|