tencentcloud-sdk-mongodb 3.0.1090 → 3.0.1091
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/v20190725/client.rb +24 -0
- data/lib/v20190725/models.rb +115 -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: 206b7b4064c33a0679ca64ac041c55ce855cb0be
|
4
|
+
data.tar.gz: 793ed514c8c49ca61a920f811c3edfa131543eba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22437dc2c90a9c4f5c1e8b698ba466cbfbd3464bfa6e98f58c40179e3d81d3f4e8d6b9de4c0141fe86e767f849620cde37f2aa27af3b76df93b0cb08d4a21567
|
7
|
+
data.tar.gz: 77176669502edf238d1eaeefef448211001cdce8c5c06869d68a5b66b5c945206e35b9f13c0a7f9c5658f86ea5e8dc8bbf129f29915b823c316c331c0bd1a52e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1091
|
data/lib/v20190725/client.rb
CHANGED
@@ -560,6 +560,30 @@ module TencentCloud
|
|
560
560
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
561
561
|
end
|
562
562
|
|
563
|
+
# 查询实例慢日志详情
|
564
|
+
|
565
|
+
# @param request: Request instance for DescribeDetailedSlowLogs.
|
566
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeDetailedSlowLogsRequest`
|
567
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeDetailedSlowLogsResponse`
|
568
|
+
def DescribeDetailedSlowLogs(request)
|
569
|
+
body = send_request('DescribeDetailedSlowLogs', request.serialize)
|
570
|
+
response = JSON.parse(body)
|
571
|
+
if response['Response'].key?('Error') == false
|
572
|
+
model = DescribeDetailedSlowLogsResponse.new
|
573
|
+
model.deserialize(response['Response'])
|
574
|
+
model
|
575
|
+
else
|
576
|
+
code = response['Response']['Error']['Code']
|
577
|
+
message = response['Response']['Error']['Message']
|
578
|
+
reqid = response['Response']['RequestId']
|
579
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
580
|
+
end
|
581
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
582
|
+
raise e
|
583
|
+
rescue StandardError => e
|
584
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
585
|
+
end
|
586
|
+
|
563
587
|
# 本接口(DescribeInstanceParams)用于查询当前实例可修改的参数列表。
|
564
588
|
|
565
589
|
# @param request: Request instance for DescribeInstanceParams.
|
data/lib/v20190725/models.rb
CHANGED
@@ -1946,6 +1946,97 @@ module TencentCloud
|
|
1946
1946
|
end
|
1947
1947
|
end
|
1948
1948
|
|
1949
|
+
# DescribeDetailedSlowLogs请求参数结构体
|
1950
|
+
class DescribeDetailedSlowLogsRequest < TencentCloud::Common::AbstractModel
|
1951
|
+
# @param InstanceId: 实例id
|
1952
|
+
# @type InstanceId: String
|
1953
|
+
# @param StartTime: 待查询慢日志的开始时间
|
1954
|
+
# @type StartTime: String
|
1955
|
+
# @param EndTime: 待慢日志的结束时间
|
1956
|
+
# @type EndTime: String
|
1957
|
+
# @param ExecTime: 过滤执行时间大于此值的慢日志,单位ms,默认值100
|
1958
|
+
# @type ExecTime: Integer
|
1959
|
+
# @param Commands: 过滤慢日志的命令类型
|
1960
|
+
# @type Commands: Array
|
1961
|
+
# @param Texts: 全文搜索关键字,多个关键字间为或关系
|
1962
|
+
# @type Texts: Array
|
1963
|
+
# @param NodeNames: 根据节点名过滤
|
1964
|
+
# @type NodeNames: Array
|
1965
|
+
# @param QueryHash: 根据queryHash过滤
|
1966
|
+
# @type QueryHash: Array
|
1967
|
+
# @param Offset: 分页偏移量
|
1968
|
+
# @type Offset: Integer
|
1969
|
+
# @param Limit: 返回条数
|
1970
|
+
# @type Limit: Integer
|
1971
|
+
# @param OrderBy: 排序条件,只支持StartTime(按慢日志生成时间)和ExecTime(慢日志执行时间)
|
1972
|
+
# @type OrderBy: String
|
1973
|
+
# @param OrderByType: 排序。desc倒排,asc正排
|
1974
|
+
# @type OrderByType: String
|
1975
|
+
|
1976
|
+
attr_accessor :InstanceId, :StartTime, :EndTime, :ExecTime, :Commands, :Texts, :NodeNames, :QueryHash, :Offset, :Limit, :OrderBy, :OrderByType
|
1977
|
+
|
1978
|
+
def initialize(instanceid=nil, starttime=nil, endtime=nil, exectime=nil, commands=nil, texts=nil, nodenames=nil, queryhash=nil, offset=nil, limit=nil, orderby=nil, orderbytype=nil)
|
1979
|
+
@InstanceId = instanceid
|
1980
|
+
@StartTime = starttime
|
1981
|
+
@EndTime = endtime
|
1982
|
+
@ExecTime = exectime
|
1983
|
+
@Commands = commands
|
1984
|
+
@Texts = texts
|
1985
|
+
@NodeNames = nodenames
|
1986
|
+
@QueryHash = queryhash
|
1987
|
+
@Offset = offset
|
1988
|
+
@Limit = limit
|
1989
|
+
@OrderBy = orderby
|
1990
|
+
@OrderByType = orderbytype
|
1991
|
+
end
|
1992
|
+
|
1993
|
+
def deserialize(params)
|
1994
|
+
@InstanceId = params['InstanceId']
|
1995
|
+
@StartTime = params['StartTime']
|
1996
|
+
@EndTime = params['EndTime']
|
1997
|
+
@ExecTime = params['ExecTime']
|
1998
|
+
@Commands = params['Commands']
|
1999
|
+
@Texts = params['Texts']
|
2000
|
+
@NodeNames = params['NodeNames']
|
2001
|
+
@QueryHash = params['QueryHash']
|
2002
|
+
@Offset = params['Offset']
|
2003
|
+
@Limit = params['Limit']
|
2004
|
+
@OrderBy = params['OrderBy']
|
2005
|
+
@OrderByType = params['OrderByType']
|
2006
|
+
end
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
# DescribeDetailedSlowLogs返回参数结构体
|
2010
|
+
class DescribeDetailedSlowLogsResponse < TencentCloud::Common::AbstractModel
|
2011
|
+
# @param TotalCount: 满足条件的慢日志数量
|
2012
|
+
# @type TotalCount: Integer
|
2013
|
+
# @param DetailedSlowLogs: 慢日志详情
|
2014
|
+
# @type DetailedSlowLogs: Array
|
2015
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2016
|
+
# @type RequestId: String
|
2017
|
+
|
2018
|
+
attr_accessor :TotalCount, :DetailedSlowLogs, :RequestId
|
2019
|
+
|
2020
|
+
def initialize(totalcount=nil, detailedslowlogs=nil, requestid=nil)
|
2021
|
+
@TotalCount = totalcount
|
2022
|
+
@DetailedSlowLogs = detailedslowlogs
|
2023
|
+
@RequestId = requestid
|
2024
|
+
end
|
2025
|
+
|
2026
|
+
def deserialize(params)
|
2027
|
+
@TotalCount = params['TotalCount']
|
2028
|
+
unless params['DetailedSlowLogs'].nil?
|
2029
|
+
@DetailedSlowLogs = []
|
2030
|
+
params['DetailedSlowLogs'].each do |i|
|
2031
|
+
slowlogitem_tmp = SlowLogItem.new
|
2032
|
+
slowlogitem_tmp.deserialize(i)
|
2033
|
+
@DetailedSlowLogs << slowlogitem_tmp
|
2034
|
+
end
|
2035
|
+
end
|
2036
|
+
@RequestId = params['RequestId']
|
2037
|
+
end
|
2038
|
+
end
|
2039
|
+
|
1949
2040
|
# DescribeInstanceParams请求参数结构体
|
1950
2041
|
class DescribeInstanceParamsRequest < TencentCloud::Common::AbstractModel
|
1951
2042
|
# @param InstanceId: 指定待查询参数列表的实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
@@ -4414,6 +4505,30 @@ module TencentCloud
|
|
4414
4505
|
end
|
4415
4506
|
end
|
4416
4507
|
|
4508
|
+
# 慢日志详情
|
4509
|
+
class SlowLogItem < TencentCloud::Common::AbstractModel
|
4510
|
+
# @param Log: 慢日志
|
4511
|
+
# @type Log: String
|
4512
|
+
# @param NodeName: 节点名称
|
4513
|
+
# @type NodeName: String
|
4514
|
+
# @param QueryHash: queryHash
|
4515
|
+
# @type QueryHash: String
|
4516
|
+
|
4517
|
+
attr_accessor :Log, :NodeName, :QueryHash
|
4518
|
+
|
4519
|
+
def initialize(log=nil, nodename=nil, queryhash=nil)
|
4520
|
+
@Log = log
|
4521
|
+
@NodeName = nodename
|
4522
|
+
@QueryHash = queryhash
|
4523
|
+
end
|
4524
|
+
|
4525
|
+
def deserialize(params)
|
4526
|
+
@Log = params['Log']
|
4527
|
+
@NodeName = params['NodeName']
|
4528
|
+
@QueryHash = params['QueryHash']
|
4529
|
+
end
|
4530
|
+
end
|
4531
|
+
|
4417
4532
|
# 用于描述MongoDB数据库慢日志统计信息
|
4418
4533
|
class SlowLogPattern < TencentCloud::Common::AbstractModel
|
4419
4534
|
# @param Pattern: 慢日志模式
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mongodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1091
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|