tencentcloud-sdk-dbbrain 3.0.668 → 3.0.670
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210527/client.rb +72 -0
- data/lib/v20210527/models.rb +387 -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: 1563295485fb4108be29a9df8fa692af4c672d6d
|
4
|
+
data.tar.gz: 9ef66b0de9ad751a944ff129678a896bbc4abd38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ec43e75c6ff6d42e75919a79e8c0ab2ffd7b81da51bde2981416de0f27ae5dda35413bbeb77597b1a7da60909f83c268210c9d63087417dad61c6b4543491d4
|
7
|
+
data.tar.gz: ae7a8db634bad742b337d143ea4d42954d0003e925d9a73a4be5bf7be7702aa4e290521d3255651217d31e4a25f95afb2f68d39ccaae054c66a3edf135409a83
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.670
|
data/lib/v20210527/client.rb
CHANGED
@@ -725,6 +725,54 @@ module TencentCloud
|
|
725
725
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
726
|
end
|
727
727
|
|
728
|
+
# 查询某张表的慢查模板概览
|
729
|
+
|
730
|
+
# @param request: Request instance for DescribeIndexRecommendAggregationSlowLogs.
|
731
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeIndexRecommendAggregationSlowLogsRequest`
|
732
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeIndexRecommendAggregationSlowLogsResponse`
|
733
|
+
def DescribeIndexRecommendAggregationSlowLogs(request)
|
734
|
+
body = send_request('DescribeIndexRecommendAggregationSlowLogs', request.serialize)
|
735
|
+
response = JSON.parse(body)
|
736
|
+
if response['Response'].key?('Error') == false
|
737
|
+
model = DescribeIndexRecommendAggregationSlowLogsResponse.new
|
738
|
+
model.deserialize(response['Response'])
|
739
|
+
model
|
740
|
+
else
|
741
|
+
code = response['Response']['Error']['Code']
|
742
|
+
message = response['Response']['Error']['Message']
|
743
|
+
reqid = response['Response']['RequestId']
|
744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
745
|
+
end
|
746
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
747
|
+
raise e
|
748
|
+
rescue StandardError => e
|
749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
|
+
end
|
751
|
+
|
752
|
+
# 查询实例的索引推荐信息,包括索引统计相关信息,推荐索引列表,无效索引列表等。
|
753
|
+
|
754
|
+
# @param request: Request instance for DescribeIndexRecommendInfo.
|
755
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeIndexRecommendInfoRequest`
|
756
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeIndexRecommendInfoResponse`
|
757
|
+
def DescribeIndexRecommendInfo(request)
|
758
|
+
body = send_request('DescribeIndexRecommendInfo', request.serialize)
|
759
|
+
response = JSON.parse(body)
|
760
|
+
if response['Response'].key?('Error') == false
|
761
|
+
model = DescribeIndexRecommendInfoResponse.new
|
762
|
+
model.deserialize(response['Response'])
|
763
|
+
model
|
764
|
+
else
|
765
|
+
code = response['Response']['Error']['Code']
|
766
|
+
message = response['Response']['Error']['Message']
|
767
|
+
reqid = response['Response']['RequestId']
|
768
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
+
end
|
770
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
+
raise e
|
772
|
+
rescue StandardError => e
|
773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
+
end
|
775
|
+
|
728
776
|
# 获取发送邮件的配置, 包括数据库巡检的邮件配置以及定期生成健康报告的邮件发送配置。
|
729
777
|
|
730
778
|
# @param request: Request instance for DescribeMailProfile.
|
@@ -845,6 +893,30 @@ module TencentCloud
|
|
845
893
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
894
|
end
|
847
895
|
|
896
|
+
# 获取 Redis 实例所有 proxy 节点的实时会话详情列表。
|
897
|
+
|
898
|
+
# @param request: Request instance for DescribeRedisProcessList.
|
899
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisProcessListRequest`
|
900
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisProcessListResponse`
|
901
|
+
def DescribeRedisProcessList(request)
|
902
|
+
body = send_request('DescribeRedisProcessList', request.serialize)
|
903
|
+
response = JSON.parse(body)
|
904
|
+
if response['Response'].key?('Error') == false
|
905
|
+
model = DescribeRedisProcessListResponse.new
|
906
|
+
model.deserialize(response['Response'])
|
907
|
+
model
|
908
|
+
else
|
909
|
+
code = response['Response']['Error']['Code']
|
910
|
+
message = response['Response']['Error']['Message']
|
911
|
+
reqid = response['Response']['RequestId']
|
912
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
913
|
+
end
|
914
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
915
|
+
raise e
|
916
|
+
rescue StandardError => e
|
917
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
918
|
+
end
|
919
|
+
|
848
920
|
# 查询redis实例大key列表。
|
849
921
|
|
850
922
|
# @param request: Request instance for DescribeRedisTopBigKeys.
|
data/lib/v20210527/models.rb
CHANGED
@@ -61,6 +61,39 @@ module TencentCloud
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
# mongodb慢查模板概览明细
|
65
|
+
class Aggregation < TencentCloud::Common::AbstractModel
|
66
|
+
# @param AvgExecTime: 平均执行时间(ms)。
|
67
|
+
# @type AvgExecTime: Integer
|
68
|
+
# @param AvgDocsExamined: 平均扫描行数。
|
69
|
+
# @type AvgDocsExamined: Integer
|
70
|
+
# @param SlowLogCount: 产生慢查次数(/天)。
|
71
|
+
# @type SlowLogCount: Integer
|
72
|
+
# @param SortCount: 内存排序次数。
|
73
|
+
# @type SortCount: Integer
|
74
|
+
# @param SlowLogs: 慢查模板概览。
|
75
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
76
|
+
# @type SlowLogs: Array
|
77
|
+
|
78
|
+
attr_accessor :AvgExecTime, :AvgDocsExamined, :SlowLogCount, :SortCount, :SlowLogs
|
79
|
+
|
80
|
+
def initialize(avgexectime=nil, avgdocsexamined=nil, slowlogcount=nil, sortcount=nil, slowlogs=nil)
|
81
|
+
@AvgExecTime = avgexectime
|
82
|
+
@AvgDocsExamined = avgdocsexamined
|
83
|
+
@SlowLogCount = slowlogcount
|
84
|
+
@SortCount = sortcount
|
85
|
+
@SlowLogs = slowlogs
|
86
|
+
end
|
87
|
+
|
88
|
+
def deserialize(params)
|
89
|
+
@AvgExecTime = params['AvgExecTime']
|
90
|
+
@AvgDocsExamined = params['AvgDocsExamined']
|
91
|
+
@SlowLogCount = params['SlowLogCount']
|
92
|
+
@SortCount = params['SortCount']
|
93
|
+
@SlowLogs = params['SlowLogs']
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
64
97
|
# 通知模板
|
65
98
|
class AlarmProfileList < TencentCloud::Common::AbstractModel
|
66
99
|
# @param IsWebHook: 0-不是 1-是
|
@@ -1991,6 +2024,129 @@ module TencentCloud
|
|
1991
2024
|
end
|
1992
2025
|
end
|
1993
2026
|
|
2027
|
+
# DescribeIndexRecommendAggregationSlowLogs请求参数结构体
|
2028
|
+
class DescribeIndexRecommendAggregationSlowLogsRequest < TencentCloud::Common::AbstractModel
|
2029
|
+
# @param Product: 服务产品类型,支持值包括:"mongodb" - 云数据库 。
|
2030
|
+
# @type Product: String
|
2031
|
+
# @param InstanceId: 实例ID。
|
2032
|
+
# @type InstanceId: String
|
2033
|
+
# @param Db: 数据库名称。
|
2034
|
+
# @type Db: String
|
2035
|
+
# @param Collection: 表明。
|
2036
|
+
# @type Collection: String
|
2037
|
+
# @param Signs: 签名。
|
2038
|
+
# @type Signs: Array
|
2039
|
+
|
2040
|
+
attr_accessor :Product, :InstanceId, :Db, :Collection, :Signs
|
2041
|
+
|
2042
|
+
def initialize(product=nil, instanceid=nil, db=nil, collection=nil, signs=nil)
|
2043
|
+
@Product = product
|
2044
|
+
@InstanceId = instanceid
|
2045
|
+
@Db = db
|
2046
|
+
@Collection = collection
|
2047
|
+
@Signs = signs
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
def deserialize(params)
|
2051
|
+
@Product = params['Product']
|
2052
|
+
@InstanceId = params['InstanceId']
|
2053
|
+
@Db = params['Db']
|
2054
|
+
@Collection = params['Collection']
|
2055
|
+
@Signs = params['Signs']
|
2056
|
+
end
|
2057
|
+
end
|
2058
|
+
|
2059
|
+
# DescribeIndexRecommendAggregationSlowLogs返回参数结构体
|
2060
|
+
class DescribeIndexRecommendAggregationSlowLogsResponse < TencentCloud::Common::AbstractModel
|
2061
|
+
# @param Aggregation: 查询实例慢查询聚合结果。
|
2062
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2063
|
+
# @type Aggregation: :class:`Tencentcloud::Dbbrain.v20210527.models.Aggregation`
|
2064
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2065
|
+
# @type RequestId: String
|
2066
|
+
|
2067
|
+
attr_accessor :Aggregation, :RequestId
|
2068
|
+
|
2069
|
+
def initialize(aggregation=nil, requestid=nil)
|
2070
|
+
@Aggregation = aggregation
|
2071
|
+
@RequestId = requestid
|
2072
|
+
end
|
2073
|
+
|
2074
|
+
def deserialize(params)
|
2075
|
+
unless params['Aggregation'].nil?
|
2076
|
+
@Aggregation = Aggregation.new
|
2077
|
+
@Aggregation.deserialize(params['Aggregation'])
|
2078
|
+
end
|
2079
|
+
@RequestId = params['RequestId']
|
2080
|
+
end
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
# DescribeIndexRecommendInfo请求参数结构体
|
2084
|
+
class DescribeIndexRecommendInfoRequest < TencentCloud::Common::AbstractModel
|
2085
|
+
# @param Product: 服务产品类型,支持值包括:"mongodb" - 云数据库 。
|
2086
|
+
# @type Product: String
|
2087
|
+
# @param InstanceId: 实例ID。
|
2088
|
+
# @type InstanceId: String
|
2089
|
+
|
2090
|
+
attr_accessor :Product, :InstanceId
|
2091
|
+
|
2092
|
+
def initialize(product=nil, instanceid=nil)
|
2093
|
+
@Product = product
|
2094
|
+
@InstanceId = instanceid
|
2095
|
+
end
|
2096
|
+
|
2097
|
+
def deserialize(params)
|
2098
|
+
@Product = params['Product']
|
2099
|
+
@InstanceId = params['InstanceId']
|
2100
|
+
end
|
2101
|
+
end
|
2102
|
+
|
2103
|
+
# DescribeIndexRecommendInfo返回参数结构体
|
2104
|
+
class DescribeIndexRecommendInfoResponse < TencentCloud::Common::AbstractModel
|
2105
|
+
# @param CollectionNum: 索引推荐的集合数量。
|
2106
|
+
# @type CollectionNum: Integer
|
2107
|
+
# @param IndexNum: 索引推荐的索引数量。
|
2108
|
+
# @type IndexNum: Integer
|
2109
|
+
# @param Items: 索引项。
|
2110
|
+
# @type Items: Array
|
2111
|
+
# @param Level: 优化级别,1-4,优先级从高到低。
|
2112
|
+
# @type Level: Integer
|
2113
|
+
# @param Optimized: 历史优化数。
|
2114
|
+
# @type Optimized: Integer
|
2115
|
+
# @param OptimizedCount: 累计优化条数。
|
2116
|
+
# @type OptimizedCount: Integer
|
2117
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2118
|
+
# @type RequestId: String
|
2119
|
+
|
2120
|
+
attr_accessor :CollectionNum, :IndexNum, :Items, :Level, :Optimized, :OptimizedCount, :RequestId
|
2121
|
+
|
2122
|
+
def initialize(collectionnum=nil, indexnum=nil, items=nil, level=nil, optimized=nil, optimizedcount=nil, requestid=nil)
|
2123
|
+
@CollectionNum = collectionnum
|
2124
|
+
@IndexNum = indexnum
|
2125
|
+
@Items = items
|
2126
|
+
@Level = level
|
2127
|
+
@Optimized = optimized
|
2128
|
+
@OptimizedCount = optimizedcount
|
2129
|
+
@RequestId = requestid
|
2130
|
+
end
|
2131
|
+
|
2132
|
+
def deserialize(params)
|
2133
|
+
@CollectionNum = params['CollectionNum']
|
2134
|
+
@IndexNum = params['IndexNum']
|
2135
|
+
unless params['Items'].nil?
|
2136
|
+
@Items = []
|
2137
|
+
params['Items'].each do |i|
|
2138
|
+
mongodbindex_tmp = MongoDBIndex.new
|
2139
|
+
mongodbindex_tmp.deserialize(i)
|
2140
|
+
@Items << mongodbindex_tmp
|
2141
|
+
end
|
2142
|
+
end
|
2143
|
+
@Level = params['Level']
|
2144
|
+
@Optimized = params['Optimized']
|
2145
|
+
@OptimizedCount = params['OptimizedCount']
|
2146
|
+
@RequestId = params['RequestId']
|
2147
|
+
end
|
2148
|
+
end
|
2149
|
+
|
1994
2150
|
# DescribeMailProfile请求参数结构体
|
1995
2151
|
class DescribeMailProfileRequest < TencentCloud::Common::AbstractModel
|
1996
2152
|
# @param ProfileType: 配置类型,支持值包括:"dbScan_mail_configuration" - 数据库巡检邮件配置,"scheduler_mail_configuration" - 定期生成邮件配置。
|
@@ -2332,6 +2488,65 @@ module TencentCloud
|
|
2332
2488
|
end
|
2333
2489
|
end
|
2334
2490
|
|
2491
|
+
# DescribeRedisProcessList请求参数结构体
|
2492
|
+
class DescribeRedisProcessListRequest < TencentCloud::Common::AbstractModel
|
2493
|
+
# @param InstanceId: Redis 实例ID。
|
2494
|
+
# @type InstanceId: String
|
2495
|
+
# @param Product: 服务产品类型,支持值包括 "redis" - 云数据库 Redis。
|
2496
|
+
# @type Product: String
|
2497
|
+
# @param Limit: 查询的Proxy节点数量上限,默认值为20,最大值为50。
|
2498
|
+
# @type Limit: Integer
|
2499
|
+
# @param Offset: Proxy节点的偏移量,默认值为0。
|
2500
|
+
# @type Offset: Integer
|
2501
|
+
|
2502
|
+
attr_accessor :InstanceId, :Product, :Limit, :Offset
|
2503
|
+
|
2504
|
+
def initialize(instanceid=nil, product=nil, limit=nil, offset=nil)
|
2505
|
+
@InstanceId = instanceid
|
2506
|
+
@Product = product
|
2507
|
+
@Limit = limit
|
2508
|
+
@Offset = offset
|
2509
|
+
end
|
2510
|
+
|
2511
|
+
def deserialize(params)
|
2512
|
+
@InstanceId = params['InstanceId']
|
2513
|
+
@Product = params['Product']
|
2514
|
+
@Limit = params['Limit']
|
2515
|
+
@Offset = params['Offset']
|
2516
|
+
end
|
2517
|
+
end
|
2518
|
+
|
2519
|
+
# DescribeRedisProcessList返回参数结构体
|
2520
|
+
class DescribeRedisProcessListResponse < TencentCloud::Common::AbstractModel
|
2521
|
+
# @param ProxyCount: 该实例的Proxy节点数量,可用于分页查询。
|
2522
|
+
# @type ProxyCount: Integer
|
2523
|
+
# @param Processes: 实时会话详情列表。
|
2524
|
+
# @type Processes: Array
|
2525
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2526
|
+
# @type RequestId: String
|
2527
|
+
|
2528
|
+
attr_accessor :ProxyCount, :Processes, :RequestId
|
2529
|
+
|
2530
|
+
def initialize(proxycount=nil, processes=nil, requestid=nil)
|
2531
|
+
@ProxyCount = proxycount
|
2532
|
+
@Processes = processes
|
2533
|
+
@RequestId = requestid
|
2534
|
+
end
|
2535
|
+
|
2536
|
+
def deserialize(params)
|
2537
|
+
@ProxyCount = params['ProxyCount']
|
2538
|
+
unless params['Processes'].nil?
|
2539
|
+
@Processes = []
|
2540
|
+
params['Processes'].each do |i|
|
2541
|
+
process_tmp = Process.new
|
2542
|
+
process_tmp.deserialize(i)
|
2543
|
+
@Processes << process_tmp
|
2544
|
+
end
|
2545
|
+
end
|
2546
|
+
@RequestId = params['RequestId']
|
2547
|
+
end
|
2548
|
+
end
|
2549
|
+
|
2335
2550
|
# DescribeRedisTopBigKeys请求参数结构体
|
2336
2551
|
class DescribeRedisTopBigKeysRequest < TencentCloud::Common::AbstractModel
|
2337
2552
|
# @param InstanceId: 实例ID。
|
@@ -3579,6 +3794,78 @@ module TencentCloud
|
|
3579
3794
|
end
|
3580
3795
|
end
|
3581
3796
|
|
3797
|
+
# 推荐的索引
|
3798
|
+
class IndexesToBuild < TencentCloud::Common::AbstractModel
|
3799
|
+
# @param Id: 索引id,唯一标识一个索引。
|
3800
|
+
# @type Id: Integer
|
3801
|
+
# @param IndexCommand: 创建索引命令。
|
3802
|
+
# @type IndexCommand: String
|
3803
|
+
# @param IndexStr: 索引字符串。
|
3804
|
+
# @type IndexStr: String
|
3805
|
+
# @param Level: 优化级别,1-4,优先级从高到低。
|
3806
|
+
# @type Level: Integer
|
3807
|
+
# @param Score: 索引得分。
|
3808
|
+
# @type Score: Integer
|
3809
|
+
# @param Signs: 签名。
|
3810
|
+
# @type Signs: Array
|
3811
|
+
# @param Status: 0-待创建;1-创建中。
|
3812
|
+
# @type Status: Integer
|
3813
|
+
|
3814
|
+
attr_accessor :Id, :IndexCommand, :IndexStr, :Level, :Score, :Signs, :Status
|
3815
|
+
|
3816
|
+
def initialize(id=nil, indexcommand=nil, indexstr=nil, level=nil, score=nil, signs=nil, status=nil)
|
3817
|
+
@Id = id
|
3818
|
+
@IndexCommand = indexcommand
|
3819
|
+
@IndexStr = indexstr
|
3820
|
+
@Level = level
|
3821
|
+
@Score = score
|
3822
|
+
@Signs = signs
|
3823
|
+
@Status = status
|
3824
|
+
end
|
3825
|
+
|
3826
|
+
def deserialize(params)
|
3827
|
+
@Id = params['Id']
|
3828
|
+
@IndexCommand = params['IndexCommand']
|
3829
|
+
@IndexStr = params['IndexStr']
|
3830
|
+
@Level = params['Level']
|
3831
|
+
@Score = params['Score']
|
3832
|
+
@Signs = params['Signs']
|
3833
|
+
@Status = params['Status']
|
3834
|
+
end
|
3835
|
+
end
|
3836
|
+
|
3837
|
+
# 无效索引
|
3838
|
+
class IndexesToDrop < TencentCloud::Common::AbstractModel
|
3839
|
+
# @param IndexStr: 索引字符串。
|
3840
|
+
# @type IndexStr: String
|
3841
|
+
# @param Score: 索引得分。
|
3842
|
+
# @type Score: Integer
|
3843
|
+
# @param Reason: 无效原因。
|
3844
|
+
# @type Reason: String
|
3845
|
+
# @param IndexCommand: 删除索引命令。
|
3846
|
+
# @type IndexCommand: String
|
3847
|
+
# @param IndexName: 索引名。
|
3848
|
+
# @type IndexName: String
|
3849
|
+
|
3850
|
+
attr_accessor :IndexStr, :Score, :Reason, :IndexCommand, :IndexName
|
3851
|
+
|
3852
|
+
def initialize(indexstr=nil, score=nil, reason=nil, indexcommand=nil, indexname=nil)
|
3853
|
+
@IndexStr = indexstr
|
3854
|
+
@Score = score
|
3855
|
+
@Reason = reason
|
3856
|
+
@IndexCommand = indexcommand
|
3857
|
+
@IndexName = indexname
|
3858
|
+
end
|
3859
|
+
|
3860
|
+
def deserialize(params)
|
3861
|
+
@IndexStr = params['IndexStr']
|
3862
|
+
@Score = params['Score']
|
3863
|
+
@Reason = params['Reason']
|
3864
|
+
@IndexCommand = params['IndexCommand']
|
3865
|
+
@IndexName = params['IndexName']
|
3866
|
+
end
|
3867
|
+
end
|
3868
|
+
|
3582
3869
|
# 实例基础信息。
|
3583
3870
|
class InstanceBasicInfo < TencentCloud::Common::AbstractModel
|
3584
3871
|
# @param InstanceId: 实例ID。
|
@@ -4186,6 +4473,62 @@ module TencentCloud
|
|
4186
4473
|
end
|
4187
4474
|
end
|
4188
4475
|
|
4476
|
+
# Mongodb索引项
|
4477
|
+
class MongoDBIndex < TencentCloud::Common::AbstractModel
|
4478
|
+
# @param ClusterId: 实例id。
|
4479
|
+
# @type ClusterId: String
|
4480
|
+
# @param Collection: 表名。
|
4481
|
+
# @type Collection: String
|
4482
|
+
# @param Db: 库名。
|
4483
|
+
# @type Db: String
|
4484
|
+
# @param Level: 优化级别,1-4,优先级从高到低。
|
4485
|
+
# @type Level: Integer
|
4486
|
+
# @param Score: 得分。
|
4487
|
+
# @type Score: Integer
|
4488
|
+
# @param IndexesToBuild: 推荐索引列表。
|
4489
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4490
|
+
# @type IndexesToBuild: Array
|
4491
|
+
# @param IndexesToDrop: 无效索引列表。
|
4492
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4493
|
+
# @type IndexesToDrop: Array
|
4494
|
+
|
4495
|
+
attr_accessor :ClusterId, :Collection, :Db, :Level, :Score, :IndexesToBuild, :IndexesToDrop
|
4496
|
+
|
4497
|
+
def initialize(clusterid=nil, collection=nil, db=nil, level=nil, score=nil, indexestobuild=nil, indexestodrop=nil)
|
4498
|
+
@ClusterId = clusterid
|
4499
|
+
@Collection = collection
|
4500
|
+
@Db = db
|
4501
|
+
@Level = level
|
4502
|
+
@Score = score
|
4503
|
+
@IndexesToBuild = indexestobuild
|
4504
|
+
@IndexesToDrop = indexestodrop
|
4505
|
+
end
|
4506
|
+
|
4507
|
+
def deserialize(params)
|
4508
|
+
@ClusterId = params['ClusterId']
|
4509
|
+
@Collection = params['Collection']
|
4510
|
+
@Db = params['Db']
|
4511
|
+
@Level = params['Level']
|
4512
|
+
@Score = params['Score']
|
4513
|
+
unless params['IndexesToBuild'].nil?
|
4514
|
+
@IndexesToBuild = []
|
4515
|
+
params['IndexesToBuild'].each do |i|
|
4516
|
+
indexestobuild_tmp = IndexesToBuild.new
|
4517
|
+
indexestobuild_tmp.deserialize(i)
|
4518
|
+
@IndexesToBuild << indexestobuild_tmp
|
4519
|
+
end
|
4520
|
+
end
|
4521
|
+
unless params['IndexesToDrop'].nil?
|
4522
|
+
@IndexesToDrop = []
|
4523
|
+
params['IndexesToDrop'].each do |i|
|
4524
|
+
indexestodrop_tmp = IndexesToDrop.new
|
4525
|
+
indexestodrop_tmp.deserialize(i)
|
4526
|
+
@IndexesToDrop << indexestodrop_tmp
|
4527
|
+
end
|
4528
|
+
end
|
4529
|
+
end
|
4530
|
+
end
|
4531
|
+
|
4189
4532
|
# 监控数据(浮点型)
|
4190
4533
|
class MonitorFloatMetric < TencentCloud::Common::AbstractModel
|
4191
4534
|
# @param Metric: 指标名称。
|
@@ -4386,6 +4729,50 @@ module TencentCloud
|
|
4386
4729
|
end
|
4387
4730
|
end
|
4388
4731
|
|
4732
|
+
# 实时会话详情。
|
4733
|
+
class Process < TencentCloud::Common::AbstractModel
|
4734
|
+
# @param Id: 会话 ID。
|
4735
|
+
# @type Id: Integer
|
4736
|
+
# @param Address: 访问来源,IP 地址和端口号。
|
4737
|
+
# @type Address: String
|
4738
|
+
# @param FileDescriptor: 文件描述符。
|
4739
|
+
# @type FileDescriptor: Integer
|
4740
|
+
# @param Name: 会话名称,使用 CLIENT SETNAME 命令设置。
|
4741
|
+
# @type Name: String
|
4742
|
+
# @param LastCommand: 最后一次执行的命令。
|
4743
|
+
# @type LastCommand: String
|
4744
|
+
# @param Age: 会话存活时间,单位:秒。
|
4745
|
+
# @type Age: Integer
|
4746
|
+
# @param Idle: 最后一次执行命令后空闲的时间,单位:秒。
|
4747
|
+
# @type Idle: Integer
|
4748
|
+
# @param ProxyId: 会话所属的 Proxy节点 ID。
|
4749
|
+
# @type ProxyId: String
|
4750
|
+
|
4751
|
+
attr_accessor :Id, :Address, :FileDescriptor, :Name, :LastCommand, :Age, :Idle, :ProxyId
|
4752
|
+
|
4753
|
+
def initialize(id=nil, address=nil, filedescriptor=nil, name=nil, lastcommand=nil, age=nil, idle=nil, proxyid=nil)
|
4754
|
+
@Id = id
|
4755
|
+
@Address = address
|
4756
|
+
@FileDescriptor = filedescriptor
|
4757
|
+
@Name = name
|
4758
|
+
@LastCommand = lastcommand
|
4759
|
+
@Age = age
|
4760
|
+
@Idle = idle
|
4761
|
+
@ProxyId = proxyid
|
4762
|
+
end
|
4763
|
+
|
4764
|
+
def deserialize(params)
|
4765
|
+
@Id = params['Id']
|
4766
|
+
@Address = params['Address']
|
4767
|
+
@FileDescriptor = params['FileDescriptor']
|
4768
|
+
@Name = params['Name']
|
4769
|
+
@LastCommand = params['LastCommand']
|
4770
|
+
@Age = params['Age']
|
4771
|
+
@Idle = params['Idle']
|
4772
|
+
@ProxyId = params['ProxyId']
|
4773
|
+
end
|
4774
|
+
end
|
4775
|
+
|
4389
4776
|
# 实时会话统计详情。
|
4390
4777
|
class ProcessStatistic < TencentCloud::Common::AbstractModel
|
4391
4778
|
# @param Items: 会话详情数组。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dbbrain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.670
|
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-09-
|
11
|
+
date: 2023-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|