tencentcloud-sdk-mariadb 3.0.426 → 3.0.427
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/v20170312/client.rb +0 -48
- data/lib/v20170312/models.rb +0 -203
- 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: 0a4c9baf64104ac17fc6f71ca1d5e3e25b6937d4
|
4
|
+
data.tar.gz: 498a461eaf6fa9033a1278b67963fd44c19bac7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c0945acdbe7f3aba824788ce75615ea6111e6c88481c7d46a4dbf1a5d30eb9fb405a34b886ca7439dc975dc2e3d914fbcef41b50e52f9dcd16e1319537e8a32
|
7
|
+
data.tar.gz: 1c9b042d71f51d6f27183494ec76a79330821e964f004a4364b384c7675c131089006171a82e6f6fbfc5d69241f909598eaba0813e4e06ae00b657027737a566
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.427
|
data/lib/v20170312/client.rb
CHANGED
@@ -488,54 +488,6 @@ module TencentCloud
|
|
488
488
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
489
489
|
end
|
490
490
|
|
491
|
-
# 本接口(DescribeDBResourceUsage)用于查看数据库实例资源的使用情况。
|
492
|
-
|
493
|
-
# @param request: Request instance for DescribeDBResourceUsage.
|
494
|
-
# @type request: :class:`Tencentcloud::mariadb::V20170312::DescribeDBResourceUsageRequest`
|
495
|
-
# @rtype: :class:`Tencentcloud::mariadb::V20170312::DescribeDBResourceUsageResponse`
|
496
|
-
def DescribeDBResourceUsage(request)
|
497
|
-
body = send_request('DescribeDBResourceUsage', request.serialize)
|
498
|
-
response = JSON.parse(body)
|
499
|
-
if response['Response'].key?('Error') == false
|
500
|
-
model = DescribeDBResourceUsageResponse.new
|
501
|
-
model.deserialize(response['Response'])
|
502
|
-
model
|
503
|
-
else
|
504
|
-
code = response['Response']['Error']['Code']
|
505
|
-
message = response['Response']['Error']['Message']
|
506
|
-
reqid = response['Response']['RequestId']
|
507
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
508
|
-
end
|
509
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
510
|
-
raise e
|
511
|
-
rescue StandardError => e
|
512
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
513
|
-
end
|
514
|
-
|
515
|
-
# 本接口(DescribeDBResourceUsageDetails)用于查看数据库实例当前性能数据。
|
516
|
-
|
517
|
-
# @param request: Request instance for DescribeDBResourceUsageDetails.
|
518
|
-
# @type request: :class:`Tencentcloud::mariadb::V20170312::DescribeDBResourceUsageDetailsRequest`
|
519
|
-
# @rtype: :class:`Tencentcloud::mariadb::V20170312::DescribeDBResourceUsageDetailsResponse`
|
520
|
-
def DescribeDBResourceUsageDetails(request)
|
521
|
-
body = send_request('DescribeDBResourceUsageDetails', request.serialize)
|
522
|
-
response = JSON.parse(body)
|
523
|
-
if response['Response'].key?('Error') == false
|
524
|
-
model = DescribeDBResourceUsageDetailsResponse.new
|
525
|
-
model.deserialize(response['Response'])
|
526
|
-
model
|
527
|
-
else
|
528
|
-
code = response['Response']['Error']['Code']
|
529
|
-
message = response['Response']['Error']['Message']
|
530
|
-
reqid = response['Response']['RequestId']
|
531
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
532
|
-
end
|
533
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
534
|
-
raise e
|
535
|
-
rescue StandardError => e
|
536
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
537
|
-
end
|
538
|
-
|
539
491
|
# 本接口(DescribeDBSecurityGroups)用于查询实例安全组信息
|
540
492
|
|
541
493
|
# @param request: Request instance for DescribeDBSecurityGroups.
|
data/lib/v20170312/models.rb
CHANGED
@@ -1921,145 +1921,6 @@ module TencentCloud
|
|
1921
1921
|
end
|
1922
1922
|
end
|
1923
1923
|
|
1924
|
-
# DescribeDBResourceUsageDetails请求参数结构体
|
1925
|
-
class DescribeDBResourceUsageDetailsRequest < TencentCloud::Common::AbstractModel
|
1926
|
-
# @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。
|
1927
|
-
# @type InstanceId: String
|
1928
|
-
# @param StartTime: 开始日期,格式yyyy-mm-dd
|
1929
|
-
# @type StartTime: String
|
1930
|
-
# @param EndTime: 结束日期,格式yyyy-mm-dd
|
1931
|
-
# @type EndTime: String
|
1932
|
-
# @param MetricName: 拉取的指标名称,支持的值为:data_disk_available,binlog_disk_available,mem_available,cpu_usage_rate
|
1933
|
-
# @type MetricName: String
|
1934
|
-
|
1935
|
-
attr_accessor :InstanceId, :StartTime, :EndTime, :MetricName
|
1936
|
-
|
1937
|
-
def initialize(instanceid=nil, starttime=nil, endtime=nil, metricname=nil)
|
1938
|
-
@InstanceId = instanceid
|
1939
|
-
@StartTime = starttime
|
1940
|
-
@EndTime = endtime
|
1941
|
-
@MetricName = metricname
|
1942
|
-
end
|
1943
|
-
|
1944
|
-
def deserialize(params)
|
1945
|
-
@InstanceId = params['InstanceId']
|
1946
|
-
@StartTime = params['StartTime']
|
1947
|
-
@EndTime = params['EndTime']
|
1948
|
-
@MetricName = params['MetricName']
|
1949
|
-
end
|
1950
|
-
end
|
1951
|
-
|
1952
|
-
# DescribeDBResourceUsageDetails返回参数结构体
|
1953
|
-
class DescribeDBResourceUsageDetailsResponse < TencentCloud::Common::AbstractModel
|
1954
|
-
# @param Master: 主节点资源使用情况监控数据
|
1955
|
-
# @type Master: :class:`Tencentcloud::Mariadb.v20170312.models.ResourceUsageMonitorSet`
|
1956
|
-
# @param Slave1: 备机1资源使用情况监控数据
|
1957
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1958
|
-
# @type Slave1: :class:`Tencentcloud::Mariadb.v20170312.models.ResourceUsageMonitorSet`
|
1959
|
-
# @param Slave2: 备机2资源使用情况监控数据
|
1960
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1961
|
-
# @type Slave2: :class:`Tencentcloud::Mariadb.v20170312.models.ResourceUsageMonitorSet`
|
1962
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1963
|
-
# @type RequestId: String
|
1964
|
-
|
1965
|
-
attr_accessor :Master, :Slave1, :Slave2, :RequestId
|
1966
|
-
|
1967
|
-
def initialize(master=nil, slave1=nil, slave2=nil, requestid=nil)
|
1968
|
-
@Master = master
|
1969
|
-
@Slave1 = slave1
|
1970
|
-
@Slave2 = slave2
|
1971
|
-
@RequestId = requestid
|
1972
|
-
end
|
1973
|
-
|
1974
|
-
def deserialize(params)
|
1975
|
-
unless params['Master'].nil?
|
1976
|
-
@Master = ResourceUsageMonitorSet.new
|
1977
|
-
@Master.deserialize(params['Master'])
|
1978
|
-
end
|
1979
|
-
unless params['Slave1'].nil?
|
1980
|
-
@Slave1 = ResourceUsageMonitorSet.new
|
1981
|
-
@Slave1.deserialize(params['Slave1'])
|
1982
|
-
end
|
1983
|
-
unless params['Slave2'].nil?
|
1984
|
-
@Slave2 = ResourceUsageMonitorSet.new
|
1985
|
-
@Slave2.deserialize(params['Slave2'])
|
1986
|
-
end
|
1987
|
-
@RequestId = params['RequestId']
|
1988
|
-
end
|
1989
|
-
end
|
1990
|
-
|
1991
|
-
# DescribeDBResourceUsage请求参数结构体
|
1992
|
-
class DescribeDBResourceUsageRequest < TencentCloud::Common::AbstractModel
|
1993
|
-
# @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。
|
1994
|
-
# @type InstanceId: String
|
1995
|
-
# @param StartTime: 开始日期,格式yyyy-mm-dd
|
1996
|
-
# @type StartTime: String
|
1997
|
-
# @param EndTime: 结束日期,格式yyyy-mm-dd
|
1998
|
-
# @type EndTime: String
|
1999
|
-
# @param MetricName: 拉取的指标名称,支持的值为:data_disk_available,binlog_disk_available,mem_available,cpu_usage_rate
|
2000
|
-
# @type MetricName: String
|
2001
|
-
|
2002
|
-
attr_accessor :InstanceId, :StartTime, :EndTime, :MetricName
|
2003
|
-
|
2004
|
-
def initialize(instanceid=nil, starttime=nil, endtime=nil, metricname=nil)
|
2005
|
-
@InstanceId = instanceid
|
2006
|
-
@StartTime = starttime
|
2007
|
-
@EndTime = endtime
|
2008
|
-
@MetricName = metricname
|
2009
|
-
end
|
2010
|
-
|
2011
|
-
def deserialize(params)
|
2012
|
-
@InstanceId = params['InstanceId']
|
2013
|
-
@StartTime = params['StartTime']
|
2014
|
-
@EndTime = params['EndTime']
|
2015
|
-
@MetricName = params['MetricName']
|
2016
|
-
end
|
2017
|
-
end
|
2018
|
-
|
2019
|
-
# DescribeDBResourceUsage返回参数结构体
|
2020
|
-
class DescribeDBResourceUsageResponse < TencentCloud::Common::AbstractModel
|
2021
|
-
# @param BinlogDiskAvailable: binlog日志磁盘可用空间,单位GB
|
2022
|
-
# @type BinlogDiskAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData`
|
2023
|
-
# @param DataDiskAvailable: 磁盘可用空间,单位GB
|
2024
|
-
# @type DataDiskAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData`
|
2025
|
-
# @param CpuUsageRate: CPU利用率
|
2026
|
-
# @type CpuUsageRate: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData`
|
2027
|
-
# @param MemAvailable: 内存可用空间,单位GB
|
2028
|
-
# @type MemAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData`
|
2029
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2030
|
-
# @type RequestId: String
|
2031
|
-
|
2032
|
-
attr_accessor :BinlogDiskAvailable, :DataDiskAvailable, :CpuUsageRate, :MemAvailable, :RequestId
|
2033
|
-
|
2034
|
-
def initialize(binlogdiskavailable=nil, datadiskavailable=nil, cpuusagerate=nil, memavailable=nil, requestid=nil)
|
2035
|
-
@BinlogDiskAvailable = binlogdiskavailable
|
2036
|
-
@DataDiskAvailable = datadiskavailable
|
2037
|
-
@CpuUsageRate = cpuusagerate
|
2038
|
-
@MemAvailable = memavailable
|
2039
|
-
@RequestId = requestid
|
2040
|
-
end
|
2041
|
-
|
2042
|
-
def deserialize(params)
|
2043
|
-
unless params['BinlogDiskAvailable'].nil?
|
2044
|
-
@BinlogDiskAvailable = MonitorData.new
|
2045
|
-
@BinlogDiskAvailable.deserialize(params['BinlogDiskAvailable'])
|
2046
|
-
end
|
2047
|
-
unless params['DataDiskAvailable'].nil?
|
2048
|
-
@DataDiskAvailable = MonitorData.new
|
2049
|
-
@DataDiskAvailable.deserialize(params['DataDiskAvailable'])
|
2050
|
-
end
|
2051
|
-
unless params['CpuUsageRate'].nil?
|
2052
|
-
@CpuUsageRate = MonitorData.new
|
2053
|
-
@CpuUsageRate.deserialize(params['CpuUsageRate'])
|
2054
|
-
end
|
2055
|
-
unless params['MemAvailable'].nil?
|
2056
|
-
@MemAvailable = MonitorData.new
|
2057
|
-
@MemAvailable.deserialize(params['MemAvailable'])
|
2058
|
-
end
|
2059
|
-
@RequestId = params['RequestId']
|
2060
|
-
end
|
2061
|
-
end
|
2062
|
-
|
2063
1924
|
# DescribeDBSecurityGroups请求参数结构体
|
2064
1925
|
class DescribeDBSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
2065
1926
|
# @param Product: 数据库引擎名称,本接口取值:mariadb。
|
@@ -3889,30 +3750,6 @@ module TencentCloud
|
|
3889
3750
|
end
|
3890
3751
|
end
|
3891
3752
|
|
3892
|
-
# 监控数据
|
3893
|
-
class MonitorData < TencentCloud::Common::AbstractModel
|
3894
|
-
# @param StartTime: 起始时间,形如 2018-03-24 23:59:59
|
3895
|
-
# @type StartTime: String
|
3896
|
-
# @param EndTime: 结束时间,形如 2018-03-24 23:59:59
|
3897
|
-
# @type EndTime: String
|
3898
|
-
# @param Data: 监控数据
|
3899
|
-
# @type Data: Array
|
3900
|
-
|
3901
|
-
attr_accessor :StartTime, :EndTime, :Data
|
3902
|
-
|
3903
|
-
def initialize(starttime=nil, endtime=nil, data=nil)
|
3904
|
-
@StartTime = starttime
|
3905
|
-
@EndTime = endtime
|
3906
|
-
@Data = data
|
3907
|
-
end
|
3908
|
-
|
3909
|
-
def deserialize(params)
|
3910
|
-
@StartTime = params['StartTime']
|
3911
|
-
@EndTime = params['EndTime']
|
3912
|
-
@Data = params['Data']
|
3913
|
-
end
|
3914
|
-
end
|
3915
|
-
|
3916
3753
|
# 描述实例的各个DB节点信息
|
3917
3754
|
class NodeInfo < TencentCloud::Common::AbstractModel
|
3918
3755
|
# @param NodeId: DB节点ID
|
@@ -4253,46 +4090,6 @@ module TencentCloud
|
|
4253
4090
|
end
|
4254
4091
|
end
|
4255
4092
|
|
4256
|
-
# DB资源使用情况监控指标集合
|
4257
|
-
class ResourceUsageMonitorSet < TencentCloud::Common::AbstractModel
|
4258
|
-
# @param BinlogDiskAvailable: binlog日志磁盘可用空间,单位GB
|
4259
|
-
# @type BinlogDiskAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData`
|
4260
|
-
# @param CpuUsageRate: CPU利用率
|
4261
|
-
# @type CpuUsageRate: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData`
|
4262
|
-
# @param MemAvailable: 内存可用空间,单位GB
|
4263
|
-
# @type MemAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData`
|
4264
|
-
# @param DataDiskAvailable: 磁盘可用空间,单位GB
|
4265
|
-
# @type DataDiskAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData`
|
4266
|
-
|
4267
|
-
attr_accessor :BinlogDiskAvailable, :CpuUsageRate, :MemAvailable, :DataDiskAvailable
|
4268
|
-
|
4269
|
-
def initialize(binlogdiskavailable=nil, cpuusagerate=nil, memavailable=nil, datadiskavailable=nil)
|
4270
|
-
@BinlogDiskAvailable = binlogdiskavailable
|
4271
|
-
@CpuUsageRate = cpuusagerate
|
4272
|
-
@MemAvailable = memavailable
|
4273
|
-
@DataDiskAvailable = datadiskavailable
|
4274
|
-
end
|
4275
|
-
|
4276
|
-
def deserialize(params)
|
4277
|
-
unless params['BinlogDiskAvailable'].nil?
|
4278
|
-
@BinlogDiskAvailable = MonitorData.new
|
4279
|
-
@BinlogDiskAvailable.deserialize(params['BinlogDiskAvailable'])
|
4280
|
-
end
|
4281
|
-
unless params['CpuUsageRate'].nil?
|
4282
|
-
@CpuUsageRate = MonitorData.new
|
4283
|
-
@CpuUsageRate.deserialize(params['CpuUsageRate'])
|
4284
|
-
end
|
4285
|
-
unless params['MemAvailable'].nil?
|
4286
|
-
@MemAvailable = MonitorData.new
|
4287
|
-
@MemAvailable.deserialize(params['MemAvailable'])
|
4288
|
-
end
|
4289
|
-
unless params['DataDiskAvailable'].nil?
|
4290
|
-
@DataDiskAvailable = MonitorData.new
|
4291
|
-
@DataDiskAvailable.deserialize(params['DataDiskAvailable'])
|
4292
|
-
end
|
4293
|
-
end
|
4294
|
-
end
|
4295
|
-
|
4296
4093
|
# RestartDBInstances请求参数结构体
|
4297
4094
|
class RestartDBInstancesRequest < TencentCloud::Common::AbstractModel
|
4298
4095
|
# @param InstanceIds: 实例ID的数组
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mariadb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.427
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|