tencentcloud-sdk-cynosdb 3.0.566 → 3.0.567
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/v20190107/client.rb +48 -0
- data/lib/v20190107/models.rb +215 -0
- 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: f2be543ee5781ab3aa95d8759f08953619aab232
|
4
|
+
data.tar.gz: b59ebb38c90fbe89b1e0cbf86c7eae2bdff1b4a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe2a7c3c5a084d351bebd5d6b398a73b5b1c8a0c48ddd0da753a8c297efd3ea5b0c97f2c0c350729bae3eb847d295b116aecc66a05a091eddb7a31ad3e21b8fb
|
7
|
+
data.tar.gz: 100ceda961a814cf019da0497933c0454ddf865ceb31cd64a0adf1df7b1f0d5316e9596c83f1208bfce76a0e80e37a1ca9c972bf81407595ee44a14c94495f21
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.567
|
data/lib/v20190107/client.rb
CHANGED
@@ -821,6 +821,30 @@ module TencentCloud
|
|
821
821
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
822
|
end
|
823
823
|
|
824
|
+
# 查询实例错误日志列表
|
825
|
+
|
826
|
+
# @param request: Request instance for DescribeInstanceErrorLogs.
|
827
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeInstanceErrorLogsRequest`
|
828
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeInstanceErrorLogsResponse`
|
829
|
+
def DescribeInstanceErrorLogs(request)
|
830
|
+
body = send_request('DescribeInstanceErrorLogs', request.serialize)
|
831
|
+
response = JSON.parse(body)
|
832
|
+
if response['Response'].key?('Error') == false
|
833
|
+
model = DescribeInstanceErrorLogsResponse.new
|
834
|
+
model.deserialize(response['Response'])
|
835
|
+
model
|
836
|
+
else
|
837
|
+
code = response['Response']['Error']['Code']
|
838
|
+
message = response['Response']['Error']['Message']
|
839
|
+
reqid = response['Response']['RequestId']
|
840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
841
|
+
end
|
842
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
843
|
+
raise e
|
844
|
+
rescue StandardError => e
|
845
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
|
+
end
|
847
|
+
|
824
848
|
# 此接口(DescribeInstanceSlowQueries)用于查询实例慢查询日志。
|
825
849
|
|
826
850
|
# @param request: Request instance for DescribeInstanceSlowQueries.
|
@@ -1085,6 +1109,30 @@ module TencentCloud
|
|
1085
1109
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1086
1110
|
end
|
1087
1111
|
|
1112
|
+
# 此接口(ExportInstanceErrorLogs)用于导出实例错误日志。
|
1113
|
+
|
1114
|
+
# @param request: Request instance for ExportInstanceErrorLogs.
|
1115
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ExportInstanceErrorLogsRequest`
|
1116
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ExportInstanceErrorLogsResponse`
|
1117
|
+
def ExportInstanceErrorLogs(request)
|
1118
|
+
body = send_request('ExportInstanceErrorLogs', request.serialize)
|
1119
|
+
response = JSON.parse(body)
|
1120
|
+
if response['Response'].key?('Error') == false
|
1121
|
+
model = ExportInstanceErrorLogsResponse.new
|
1122
|
+
model.deserialize(response['Response'])
|
1123
|
+
model
|
1124
|
+
else
|
1125
|
+
code = response['Response']['Error']['Code']
|
1126
|
+
message = response['Response']['Error']['Message']
|
1127
|
+
reqid = response['Response']['RequestId']
|
1128
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1129
|
+
end
|
1130
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1131
|
+
raise e
|
1132
|
+
rescue StandardError => e
|
1133
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
|
+
end
|
1135
|
+
|
1088
1136
|
# 此接口(ExportInstanceSlowQueries)用于导出实例慢日志。
|
1089
1137
|
|
1090
1138
|
# @param request: Request instance for ExportInstanceSlowQueries.
|
data/lib/v20190107/models.rb
CHANGED
@@ -1820,6 +1820,33 @@ module TencentCloud
|
|
1820
1820
|
end
|
1821
1821
|
end
|
1822
1822
|
|
1823
|
+
# 实例错误日志返回类型
|
1824
|
+
class CynosdbErrorLogItem < TencentCloud::Common::AbstractModel
|
1825
|
+
# @param Timestamp: 日志时间戳
|
1826
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1827
|
+
# @type Timestamp: Integer
|
1828
|
+
# @param Level: 日志等级
|
1829
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1830
|
+
# @type Level: String
|
1831
|
+
# @param Content: 日志内容
|
1832
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1833
|
+
# @type Content: String
|
1834
|
+
|
1835
|
+
attr_accessor :Timestamp, :Level, :Content
|
1836
|
+
|
1837
|
+
def initialize(timestamp=nil, level=nil, content=nil)
|
1838
|
+
@Timestamp = timestamp
|
1839
|
+
@Level = level
|
1840
|
+
@Content = content
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
def deserialize(params)
|
1844
|
+
@Timestamp = params['Timestamp']
|
1845
|
+
@Level = params['Level']
|
1846
|
+
@Content = params['Content']
|
1847
|
+
end
|
1848
|
+
end
|
1849
|
+
|
1823
1850
|
# 实例信息
|
1824
1851
|
class CynosdbInstance < TencentCloud::Common::AbstractModel
|
1825
1852
|
# @param Uin: 用户Uin
|
@@ -3623,6 +3650,87 @@ module TencentCloud
|
|
3623
3650
|
end
|
3624
3651
|
end
|
3625
3652
|
|
3653
|
+
# DescribeInstanceErrorLogs请求参数结构体
|
3654
|
+
class DescribeInstanceErrorLogsRequest < TencentCloud::Common::AbstractModel
|
3655
|
+
# @param InstanceId: 实例Id
|
3656
|
+
# @type InstanceId: String
|
3657
|
+
# @param Limit: 日志条数限制
|
3658
|
+
# @type Limit: Integer
|
3659
|
+
# @param Offset: 日志条数偏移量
|
3660
|
+
# @type Offset: Integer
|
3661
|
+
# @param StartTime: 开始时间
|
3662
|
+
# @type StartTime: String
|
3663
|
+
# @param EndTime: 结束时间
|
3664
|
+
# @type EndTime: String
|
3665
|
+
# @param OrderBy: 排序字段,有Timestamp枚举值
|
3666
|
+
# @type OrderBy: String
|
3667
|
+
# @param OrderByType: 排序类型,有ASC,DESC枚举值
|
3668
|
+
# @type OrderByType: String
|
3669
|
+
# @param LogLevels: 日志等级,有error、warning、note三种,支持多个等级同时搜索
|
3670
|
+
# @type LogLevels: Array
|
3671
|
+
# @param KeyWords: 关键字,支持模糊搜索
|
3672
|
+
# @type KeyWords: Array
|
3673
|
+
|
3674
|
+
attr_accessor :InstanceId, :Limit, :Offset, :StartTime, :EndTime, :OrderBy, :OrderByType, :LogLevels, :KeyWords
|
3675
|
+
|
3676
|
+
def initialize(instanceid=nil, limit=nil, offset=nil, starttime=nil, endtime=nil, orderby=nil, orderbytype=nil, loglevels=nil, keywords=nil)
|
3677
|
+
@InstanceId = instanceid
|
3678
|
+
@Limit = limit
|
3679
|
+
@Offset = offset
|
3680
|
+
@StartTime = starttime
|
3681
|
+
@EndTime = endtime
|
3682
|
+
@OrderBy = orderby
|
3683
|
+
@OrderByType = orderbytype
|
3684
|
+
@LogLevels = loglevels
|
3685
|
+
@KeyWords = keywords
|
3686
|
+
end
|
3687
|
+
|
3688
|
+
def deserialize(params)
|
3689
|
+
@InstanceId = params['InstanceId']
|
3690
|
+
@Limit = params['Limit']
|
3691
|
+
@Offset = params['Offset']
|
3692
|
+
@StartTime = params['StartTime']
|
3693
|
+
@EndTime = params['EndTime']
|
3694
|
+
@OrderBy = params['OrderBy']
|
3695
|
+
@OrderByType = params['OrderByType']
|
3696
|
+
@LogLevels = params['LogLevels']
|
3697
|
+
@KeyWords = params['KeyWords']
|
3698
|
+
end
|
3699
|
+
end
|
3700
|
+
|
3701
|
+
# DescribeInstanceErrorLogs返回参数结构体
|
3702
|
+
class DescribeInstanceErrorLogsResponse < TencentCloud::Common::AbstractModel
|
3703
|
+
# @param TotalCount: 日志条数
|
3704
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3705
|
+
# @type TotalCount: Integer
|
3706
|
+
# @param ErrorLogs: 错误日志列表
|
3707
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3708
|
+
# @type ErrorLogs: Array
|
3709
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3710
|
+
# @type RequestId: String
|
3711
|
+
|
3712
|
+
attr_accessor :TotalCount, :ErrorLogs, :RequestId
|
3713
|
+
|
3714
|
+
def initialize(totalcount=nil, errorlogs=nil, requestid=nil)
|
3715
|
+
@TotalCount = totalcount
|
3716
|
+
@ErrorLogs = errorlogs
|
3717
|
+
@RequestId = requestid
|
3718
|
+
end
|
3719
|
+
|
3720
|
+
def deserialize(params)
|
3721
|
+
@TotalCount = params['TotalCount']
|
3722
|
+
unless params['ErrorLogs'].nil?
|
3723
|
+
@ErrorLogs = []
|
3724
|
+
params['ErrorLogs'].each do |i|
|
3725
|
+
cynosdberrorlogitem_tmp = CynosdbErrorLogItem.new
|
3726
|
+
cynosdberrorlogitem_tmp.deserialize(i)
|
3727
|
+
@ErrorLogs << cynosdberrorlogitem_tmp
|
3728
|
+
end
|
3729
|
+
end
|
3730
|
+
@RequestId = params['RequestId']
|
3731
|
+
end
|
3732
|
+
end
|
3733
|
+
|
3626
3734
|
# DescribeInstanceSlowQueries请求参数结构体
|
3627
3735
|
class DescribeInstanceSlowQueriesRequest < TencentCloud::Common::AbstractModel
|
3628
3736
|
# @param InstanceId: 实例ID
|
@@ -4280,6 +4388,113 @@ module TencentCloud
|
|
4280
4388
|
end
|
4281
4389
|
end
|
4282
4390
|
|
4391
|
+
# 错误日志导出格式
|
4392
|
+
class ErrorLogItemExport < TencentCloud::Common::AbstractModel
|
4393
|
+
# @param Timestamp: 时间
|
4394
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4395
|
+
# @type Timestamp: String
|
4396
|
+
# @param Level: 日志等级,可选值note, warning,error
|
4397
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4398
|
+
# @type Level: String
|
4399
|
+
# @param Content: 日志内容
|
4400
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4401
|
+
# @type Content: String
|
4402
|
+
|
4403
|
+
attr_accessor :Timestamp, :Level, :Content
|
4404
|
+
|
4405
|
+
def initialize(timestamp=nil, level=nil, content=nil)
|
4406
|
+
@Timestamp = timestamp
|
4407
|
+
@Level = level
|
4408
|
+
@Content = content
|
4409
|
+
end
|
4410
|
+
|
4411
|
+
def deserialize(params)
|
4412
|
+
@Timestamp = params['Timestamp']
|
4413
|
+
@Level = params['Level']
|
4414
|
+
@Content = params['Content']
|
4415
|
+
end
|
4416
|
+
end
|
4417
|
+
|
4418
|
+
# ExportInstanceErrorLogs请求参数结构体
|
4419
|
+
class ExportInstanceErrorLogsRequest < TencentCloud::Common::AbstractModel
|
4420
|
+
# @param InstanceId: 实例ID
|
4421
|
+
# @type InstanceId: String
|
4422
|
+
# @param StartTime: 日志最早时间
|
4423
|
+
# @type StartTime: String
|
4424
|
+
# @param EndTime: 日志最晚时间
|
4425
|
+
# @type EndTime: String
|
4426
|
+
# @param Limit: 限制条数
|
4427
|
+
# @type Limit: Integer
|
4428
|
+
# @param Offset: 偏移量
|
4429
|
+
# @type Offset: Integer
|
4430
|
+
# @param LogLevels: 日志等级
|
4431
|
+
# @type LogLevels: Array
|
4432
|
+
# @param KeyWords: 关键字
|
4433
|
+
# @type KeyWords: Array
|
4434
|
+
# @param FileType: 文件类型,可选值:csv, original
|
4435
|
+
# @type FileType: String
|
4436
|
+
# @param OrderBy: 可选值Timestamp
|
4437
|
+
# @type OrderBy: String
|
4438
|
+
# @param OrderByType: ASC或DESC
|
4439
|
+
# @type OrderByType: String
|
4440
|
+
|
4441
|
+
attr_accessor :InstanceId, :StartTime, :EndTime, :Limit, :Offset, :LogLevels, :KeyWords, :FileType, :OrderBy, :OrderByType
|
4442
|
+
|
4443
|
+
def initialize(instanceid=nil, starttime=nil, endtime=nil, limit=nil, offset=nil, loglevels=nil, keywords=nil, filetype=nil, orderby=nil, orderbytype=nil)
|
4444
|
+
@InstanceId = instanceid
|
4445
|
+
@StartTime = starttime
|
4446
|
+
@EndTime = endtime
|
4447
|
+
@Limit = limit
|
4448
|
+
@Offset = offset
|
4449
|
+
@LogLevels = loglevels
|
4450
|
+
@KeyWords = keywords
|
4451
|
+
@FileType = filetype
|
4452
|
+
@OrderBy = orderby
|
4453
|
+
@OrderByType = orderbytype
|
4454
|
+
end
|
4455
|
+
|
4456
|
+
def deserialize(params)
|
4457
|
+
@InstanceId = params['InstanceId']
|
4458
|
+
@StartTime = params['StartTime']
|
4459
|
+
@EndTime = params['EndTime']
|
4460
|
+
@Limit = params['Limit']
|
4461
|
+
@Offset = params['Offset']
|
4462
|
+
@LogLevels = params['LogLevels']
|
4463
|
+
@KeyWords = params['KeyWords']
|
4464
|
+
@FileType = params['FileType']
|
4465
|
+
@OrderBy = params['OrderBy']
|
4466
|
+
@OrderByType = params['OrderByType']
|
4467
|
+
end
|
4468
|
+
end
|
4469
|
+
|
4470
|
+
# ExportInstanceErrorLogs返回参数结构体
|
4471
|
+
class ExportInstanceErrorLogsResponse < TencentCloud::Common::AbstractModel
|
4472
|
+
# @param ErrorLogItems: 错误日志导出内容
|
4473
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4474
|
+
# @type ErrorLogItems: Array
|
4475
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4476
|
+
# @type RequestId: String
|
4477
|
+
|
4478
|
+
attr_accessor :ErrorLogItems, :RequestId
|
4479
|
+
|
4480
|
+
def initialize(errorlogitems=nil, requestid=nil)
|
4481
|
+
@ErrorLogItems = errorlogitems
|
4482
|
+
@RequestId = requestid
|
4483
|
+
end
|
4484
|
+
|
4485
|
+
def deserialize(params)
|
4486
|
+
unless params['ErrorLogItems'].nil?
|
4487
|
+
@ErrorLogItems = []
|
4488
|
+
params['ErrorLogItems'].each do |i|
|
4489
|
+
errorlogitemexport_tmp = ErrorLogItemExport.new
|
4490
|
+
errorlogitemexport_tmp.deserialize(i)
|
4491
|
+
@ErrorLogItems << errorlogitemexport_tmp
|
4492
|
+
end
|
4493
|
+
end
|
4494
|
+
@RequestId = params['RequestId']
|
4495
|
+
end
|
4496
|
+
end
|
4497
|
+
|
4283
4498
|
# ExportInstanceSlowQueries请求参数结构体
|
4284
4499
|
class ExportInstanceSlowQueriesRequest < TencentCloud::Common::AbstractModel
|
4285
4500
|
# @param InstanceId: 实例ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cynosdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.567
|
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-05-
|
11
|
+
date: 2023-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|