tencentcloud-sdk-dbbrain 3.0.1021 → 3.0.1022
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/v20210527/client.rb +168 -0
- data/lib/v20210527/models.rb +508 -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: 46fb3650c85d4b38e36c2c2608c81ffc9368eeb4
|
4
|
+
data.tar.gz: 5efd87bfe8489f575f19195fd11071ea9b6f361a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55391d2842b4eb878bb505ec17163a51c658e23c8a389ee5245f597e70f0da8ce44d6965ba2fdf96c548fa53626d2410445df2df1a66662b0638e99f6c7bbbfc
|
7
|
+
data.tar.gz: 264f88bc705778d342a88d044b4d672e5cee6edb3fe5ebbdfbaff3b3931b852b7f1978841f2f1f207230b49610bd008d65b3f70488331e0924109aaa6f8f4914
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1022
|
data/lib/v20210527/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 CancelDBAutonomyAction.
|
59
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::CancelDBAutonomyActionRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::CancelDBAutonomyActionResponse`
|
61
|
+
def CancelDBAutonomyAction(request)
|
62
|
+
body = send_request('CancelDBAutonomyAction', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CancelDBAutonomyActionResponse.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
|
# 终止中断会话任务。
|
57
81
|
|
58
82
|
# @param request: Request instance for CancelKillTask.
|
@@ -77,6 +101,30 @@ module TencentCloud
|
|
77
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
102
|
end
|
79
103
|
|
104
|
+
# 自治中心-终止自治任务(单次)
|
105
|
+
|
106
|
+
# @param request: Request instance for CancelRedisBigKeyAnalysisTasks.
|
107
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::CancelRedisBigKeyAnalysisTasksRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::CancelRedisBigKeyAnalysisTasksResponse`
|
109
|
+
def CancelRedisBigKeyAnalysisTasks(request)
|
110
|
+
body = send_request('CancelRedisBigKeyAnalysisTasks', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CancelRedisBigKeyAnalysisTasksResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
80
128
|
# 不用审计日志时,关闭数据库审计
|
81
129
|
|
82
130
|
# @param request: Request instance for CloseAuditService.
|
@@ -341,6 +389,30 @@ module TencentCloud
|
|
341
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
390
|
end
|
343
391
|
|
392
|
+
# 自治中心-终止自治任务(单次);注意:接口需要加白名单。
|
393
|
+
|
394
|
+
# @param request: Request instance for CreateUserAutonomyProfile.
|
395
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::CreateUserAutonomyProfileRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::CreateUserAutonomyProfileResponse`
|
397
|
+
def CreateUserAutonomyProfile(request)
|
398
|
+
body = send_request('CreateUserAutonomyProfile', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = CreateUserAutonomyProfileResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
344
416
|
# 用于删除云数据库实例的审计日志文件。
|
345
417
|
|
346
418
|
# @param request: Request instance for DeleteAuditLogFile.
|
@@ -581,6 +653,54 @@ module TencentCloud
|
|
581
653
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
654
|
end
|
583
655
|
|
656
|
+
# 自治中心-终止自治任务(单次)
|
657
|
+
|
658
|
+
# @param request: Request instance for DescribeDBAutonomyActions.
|
659
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeDBAutonomyActionsRequest`
|
660
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeDBAutonomyActionsResponse`
|
661
|
+
def DescribeDBAutonomyActions(request)
|
662
|
+
body = send_request('DescribeDBAutonomyActions', request.serialize)
|
663
|
+
response = JSON.parse(body)
|
664
|
+
if response['Response'].key?('Error') == false
|
665
|
+
model = DescribeDBAutonomyActionsResponse.new
|
666
|
+
model.deserialize(response['Response'])
|
667
|
+
model
|
668
|
+
else
|
669
|
+
code = response['Response']['Error']['Code']
|
670
|
+
message = response['Response']['Error']['Message']
|
671
|
+
reqid = response['Response']['RequestId']
|
672
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
+
end
|
674
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
+
raise e
|
676
|
+
rescue StandardError => e
|
677
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
+
end
|
679
|
+
|
680
|
+
# 自治中心-终止自治任务(单次)
|
681
|
+
|
682
|
+
# @param request: Request instance for DescribeDBAutonomyEvents.
|
683
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeDBAutonomyEventsRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeDBAutonomyEventsResponse`
|
685
|
+
def DescribeDBAutonomyEvents(request)
|
686
|
+
body = send_request('DescribeDBAutonomyEvents', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DescribeDBAutonomyEventsResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
584
704
|
# 获取实例异常诊断事件的详情信息。
|
585
705
|
|
586
706
|
# @param request: Request instance for DescribeDBDiagEvent.
|
@@ -1325,6 +1445,30 @@ module TencentCloud
|
|
1325
1445
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1326
1446
|
end
|
1327
1447
|
|
1448
|
+
# 自治中心-终止自治任务(单次);注意: 接口调用需要加白名单。
|
1449
|
+
|
1450
|
+
# @param request: Request instance for DescribeUserAutonomyProfile.
|
1451
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeUserAutonomyProfileRequest`
|
1452
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeUserAutonomyProfileResponse`
|
1453
|
+
def DescribeUserAutonomyProfile(request)
|
1454
|
+
body = send_request('DescribeUserAutonomyProfile', request.serialize)
|
1455
|
+
response = JSON.parse(body)
|
1456
|
+
if response['Response'].key?('Error') == false
|
1457
|
+
model = DescribeUserAutonomyProfileResponse.new
|
1458
|
+
model.deserialize(response['Response'])
|
1459
|
+
model
|
1460
|
+
else
|
1461
|
+
code = response['Response']['Error']['Code']
|
1462
|
+
message = response['Response']['Error']['Message']
|
1463
|
+
reqid = response['Response']['RequestId']
|
1464
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1465
|
+
end
|
1466
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1467
|
+
raise e
|
1468
|
+
rescue StandardError => e
|
1469
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1470
|
+
end
|
1471
|
+
|
1328
1472
|
# 获取SQL优化建议。【产品用户回馈,此接口限免开放,后续将并入dbbrain专业版】
|
1329
1473
|
|
1330
1474
|
# @param request: Request instance for DescribeUserSqlAdvice.
|
@@ -1469,6 +1613,30 @@ module TencentCloud
|
|
1469
1613
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1470
1614
|
end
|
1471
1615
|
|
1616
|
+
# 自治中心-终止自治任务(单次);注意:接口需要加白名单。
|
1617
|
+
|
1618
|
+
# @param request: Request instance for ModifyUserAutonomyProfile.
|
1619
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::ModifyUserAutonomyProfileRequest`
|
1620
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::ModifyUserAutonomyProfileResponse`
|
1621
|
+
def ModifyUserAutonomyProfile(request)
|
1622
|
+
body = send_request('ModifyUserAutonomyProfile', request.serialize)
|
1623
|
+
response = JSON.parse(body)
|
1624
|
+
if response['Response'].key?('Error') == false
|
1625
|
+
model = ModifyUserAutonomyProfileResponse.new
|
1626
|
+
model.deserialize(response['Response'])
|
1627
|
+
model
|
1628
|
+
else
|
1629
|
+
code = response['Response']['Error']['Code']
|
1630
|
+
message = response['Response']['Error']['Message']
|
1631
|
+
reqid = response['Response']['RequestId']
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1633
|
+
end
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1635
|
+
raise e
|
1636
|
+
rescue StandardError => e
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
|
+
end
|
1639
|
+
|
1472
1640
|
# 开启数据库审计服务
|
1473
1641
|
|
1474
1642
|
# @param request: Request instance for OpenAuditService.
|
data/lib/v20210527/models.rb
CHANGED
@@ -433,6 +433,181 @@ module TencentCloud
|
|
433
433
|
end
|
434
434
|
end
|
435
435
|
|
436
|
+
# redis自治事件任务详情
|
437
|
+
class AutonomyActionVo < TencentCloud::Common::AbstractModel
|
438
|
+
# @param ActionId: 自治任务ID。
|
439
|
+
# @type ActionId: Integer
|
440
|
+
# @param EventId: 自治事件ID。
|
441
|
+
# @type EventId: Integer
|
442
|
+
# @param Type: 类型:支持RedisAutoScaleUp
|
443
|
+
# @type Type: String
|
444
|
+
# @param TriggerTime: 自治任务触发时间。
|
445
|
+
# @type TriggerTime: String
|
446
|
+
# @param CreateTime: 自治任务创建时间。
|
447
|
+
# @type CreateTime: String
|
448
|
+
# @param UpdateTime: 自治任务更新时间
|
449
|
+
# @type UpdateTime: String
|
450
|
+
# @param FinishTime: 自治任务完成时间。
|
451
|
+
# @type FinishTime: String
|
452
|
+
# @param ExpireTime: 剩余时间,单位:秒。
|
453
|
+
# @type ExpireTime: Integer
|
454
|
+
# @param Reason: 触发原因。
|
455
|
+
# @type Reason: String
|
456
|
+
# @param Status: 自治任务状态:支持 RUNNING,FINISHED,TERMINATED,CANCELLED
|
457
|
+
# @type Status: String
|
458
|
+
|
459
|
+
attr_accessor :ActionId, :EventId, :Type, :TriggerTime, :CreateTime, :UpdateTime, :FinishTime, :ExpireTime, :Reason, :Status
|
460
|
+
|
461
|
+
def initialize(actionid=nil, eventid=nil, type=nil, triggertime=nil, createtime=nil, updatetime=nil, finishtime=nil, expiretime=nil, reason=nil, status=nil)
|
462
|
+
@ActionId = actionid
|
463
|
+
@EventId = eventid
|
464
|
+
@Type = type
|
465
|
+
@TriggerTime = triggertime
|
466
|
+
@CreateTime = createtime
|
467
|
+
@UpdateTime = updatetime
|
468
|
+
@FinishTime = finishtime
|
469
|
+
@ExpireTime = expiretime
|
470
|
+
@Reason = reason
|
471
|
+
@Status = status
|
472
|
+
end
|
473
|
+
|
474
|
+
def deserialize(params)
|
475
|
+
@ActionId = params['ActionId']
|
476
|
+
@EventId = params['EventId']
|
477
|
+
@Type = params['Type']
|
478
|
+
@TriggerTime = params['TriggerTime']
|
479
|
+
@CreateTime = params['CreateTime']
|
480
|
+
@UpdateTime = params['UpdateTime']
|
481
|
+
@FinishTime = params['FinishTime']
|
482
|
+
@ExpireTime = params['ExpireTime']
|
483
|
+
@Reason = params['Reason']
|
484
|
+
@Status = params['Status']
|
485
|
+
end
|
486
|
+
end
|
487
|
+
|
488
|
+
# 自治事件详情
|
489
|
+
class AutonomyEventVo < TencentCloud::Common::AbstractModel
|
490
|
+
# @param EventId: 自治事件ID。
|
491
|
+
# @type EventId: Integer
|
492
|
+
# @param Type: 自治事件类型:支持RunningAutoRecovery,RedisAutoScale
|
493
|
+
# @type Type: String
|
494
|
+
# @param Status: 自治事件状态:支持 RUNNING,FINISHED,TERMINATED
|
495
|
+
# @type Status: String
|
496
|
+
# @param Reason: 触发原因。
|
497
|
+
# @type Reason: String
|
498
|
+
# @param TriggerTime: 自治任务触发时间。
|
499
|
+
# @type TriggerTime: Integer
|
500
|
+
# @param LastTriggerTime: 自治任务最后触发时间。
|
501
|
+
# @type LastTriggerTime: Integer
|
502
|
+
# @param CreateTime: 自治任务创建时间。
|
503
|
+
# @type CreateTime: Integer
|
504
|
+
# @param UpdateTime: 自治任务更新时间。
|
505
|
+
# @type UpdateTime: Integer
|
506
|
+
# @param FinishTime: 自治任务完成时间;非结束状态的时候,该值无意义。
|
507
|
+
# @type FinishTime: Integer
|
508
|
+
|
509
|
+
attr_accessor :EventId, :Type, :Status, :Reason, :TriggerTime, :LastTriggerTime, :CreateTime, :UpdateTime, :FinishTime
|
510
|
+
|
511
|
+
def initialize(eventid=nil, type=nil, status=nil, reason=nil, triggertime=nil, lasttriggertime=nil, createtime=nil, updatetime=nil, finishtime=nil)
|
512
|
+
@EventId = eventid
|
513
|
+
@Type = type
|
514
|
+
@Status = status
|
515
|
+
@Reason = reason
|
516
|
+
@TriggerTime = triggertime
|
517
|
+
@LastTriggerTime = lasttriggertime
|
518
|
+
@CreateTime = createtime
|
519
|
+
@UpdateTime = updatetime
|
520
|
+
@FinishTime = finishtime
|
521
|
+
end
|
522
|
+
|
523
|
+
def deserialize(params)
|
524
|
+
@EventId = params['EventId']
|
525
|
+
@Type = params['Type']
|
526
|
+
@Status = params['Status']
|
527
|
+
@Reason = params['Reason']
|
528
|
+
@TriggerTime = params['TriggerTime']
|
529
|
+
@LastTriggerTime = params['LastTriggerTime']
|
530
|
+
@CreateTime = params['CreateTime']
|
531
|
+
@UpdateTime = params['UpdateTime']
|
532
|
+
@FinishTime = params['FinishTime']
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
536
|
+
# 自治用户配置详情
|
537
|
+
class AutonomyUserProfileInfo < TencentCloud::Common::AbstractModel
|
538
|
+
# @param Enabled: 是否开启自治。
|
539
|
+
# @type Enabled: Boolean
|
540
|
+
# @param Uin: 用户Uin。
|
541
|
+
# @type Uin: String
|
542
|
+
# @param MemoryUpperLimit: 内存上限。
|
543
|
+
# @type MemoryUpperLimit: Integer
|
544
|
+
# @param ThresholdRule: 指标阈值规则。
|
545
|
+
# @type ThresholdRule: :class:`Tencentcloud::Dbbrain.v20210527.models.MetricThreshold`
|
546
|
+
# @param EnabledItems: 自治功能类型。
|
547
|
+
# @type EnabledItems: Array
|
548
|
+
|
549
|
+
attr_accessor :Enabled, :Uin, :MemoryUpperLimit, :ThresholdRule, :EnabledItems
|
550
|
+
|
551
|
+
def initialize(enabled=nil, uin=nil, memoryupperlimit=nil, thresholdrule=nil, enableditems=nil)
|
552
|
+
@Enabled = enabled
|
553
|
+
@Uin = uin
|
554
|
+
@MemoryUpperLimit = memoryupperlimit
|
555
|
+
@ThresholdRule = thresholdrule
|
556
|
+
@EnabledItems = enableditems
|
557
|
+
end
|
558
|
+
|
559
|
+
def deserialize(params)
|
560
|
+
@Enabled = params['Enabled']
|
561
|
+
@Uin = params['Uin']
|
562
|
+
@MemoryUpperLimit = params['MemoryUpperLimit']
|
563
|
+
unless params['ThresholdRule'].nil?
|
564
|
+
@ThresholdRule = MetricThreshold.new
|
565
|
+
@ThresholdRule.deserialize(params['ThresholdRule'])
|
566
|
+
end
|
567
|
+
@EnabledItems = params['EnabledItems']
|
568
|
+
end
|
569
|
+
end
|
570
|
+
|
571
|
+
# CancelDBAutonomyAction请求参数结构体
|
572
|
+
class CancelDBAutonomyActionRequest < TencentCloud::Common::AbstractModel
|
573
|
+
# @param ActionId: 自治任务ID。
|
574
|
+
# @type ActionId: Integer
|
575
|
+
# @param InstanceId: 实列ID。
|
576
|
+
# @type InstanceId: String
|
577
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
578
|
+
# @type Product: String
|
579
|
+
|
580
|
+
attr_accessor :ActionId, :InstanceId, :Product
|
581
|
+
|
582
|
+
def initialize(actionid=nil, instanceid=nil, product=nil)
|
583
|
+
@ActionId = actionid
|
584
|
+
@InstanceId = instanceid
|
585
|
+
@Product = product
|
586
|
+
end
|
587
|
+
|
588
|
+
def deserialize(params)
|
589
|
+
@ActionId = params['ActionId']
|
590
|
+
@InstanceId = params['InstanceId']
|
591
|
+
@Product = params['Product']
|
592
|
+
end
|
593
|
+
end
|
594
|
+
|
595
|
+
# CancelDBAutonomyAction返回参数结构体
|
596
|
+
class CancelDBAutonomyActionResponse < TencentCloud::Common::AbstractModel
|
597
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
598
|
+
# @type RequestId: String
|
599
|
+
|
600
|
+
attr_accessor :RequestId
|
601
|
+
|
602
|
+
def initialize(requestid=nil)
|
603
|
+
@RequestId = requestid
|
604
|
+
end
|
605
|
+
|
606
|
+
def deserialize(params)
|
607
|
+
@RequestId = params['RequestId']
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
436
611
|
# CancelKillTask请求参数结构体
|
437
612
|
class CancelKillTaskRequest < TencentCloud::Common::AbstractModel
|
438
613
|
# @param InstanceId: 实例ID。
|
@@ -473,6 +648,50 @@ module TencentCloud
|
|
473
648
|
end
|
474
649
|
end
|
475
650
|
|
651
|
+
# CancelRedisBigKeyAnalysisTasks请求参数结构体
|
652
|
+
class CancelRedisBigKeyAnalysisTasksRequest < TencentCloud::Common::AbstractModel
|
653
|
+
# @param AsyncRequestIds: 自治任务ID。
|
654
|
+
# @type AsyncRequestIds: Array
|
655
|
+
# @param InstanceId: 实列ID。
|
656
|
+
# @type InstanceId: String
|
657
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
658
|
+
# @type Product: String
|
659
|
+
|
660
|
+
attr_accessor :AsyncRequestIds, :InstanceId, :Product
|
661
|
+
|
662
|
+
def initialize(asyncrequestids=nil, instanceid=nil, product=nil)
|
663
|
+
@AsyncRequestIds = asyncrequestids
|
664
|
+
@InstanceId = instanceid
|
665
|
+
@Product = product
|
666
|
+
end
|
667
|
+
|
668
|
+
def deserialize(params)
|
669
|
+
@AsyncRequestIds = params['AsyncRequestIds']
|
670
|
+
@InstanceId = params['InstanceId']
|
671
|
+
@Product = params['Product']
|
672
|
+
end
|
673
|
+
end
|
674
|
+
|
675
|
+
# CancelRedisBigKeyAnalysisTasks返回参数结构体
|
676
|
+
class CancelRedisBigKeyAnalysisTasksResponse < TencentCloud::Common::AbstractModel
|
677
|
+
# @param Status: 终止大Key任务结果;0-成功。
|
678
|
+
# @type Status: Integer
|
679
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
680
|
+
# @type RequestId: String
|
681
|
+
|
682
|
+
attr_accessor :Status, :RequestId
|
683
|
+
|
684
|
+
def initialize(status=nil, requestid=nil)
|
685
|
+
@Status = status
|
686
|
+
@RequestId = requestid
|
687
|
+
end
|
688
|
+
|
689
|
+
def deserialize(params)
|
690
|
+
@Status = params['Status']
|
691
|
+
@RequestId = params['RequestId']
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
476
695
|
# CloseAuditService请求参数结构体
|
477
696
|
class CloseAuditServiceRequest < TencentCloud::Common::AbstractModel
|
478
697
|
# @param Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB。
|
@@ -1087,6 +1306,50 @@ module TencentCloud
|
|
1087
1306
|
end
|
1088
1307
|
end
|
1089
1308
|
|
1309
|
+
# CreateUserAutonomyProfile请求参数结构体
|
1310
|
+
class CreateUserAutonomyProfileRequest < TencentCloud::Common::AbstractModel
|
1311
|
+
# @param ProfileType: 配置类型,为需要配置的功能枚举值,目前包含一下枚举值:AutonomyGlobal(自治功能全局配置)、RedisAutoScaleUp(Redis自治扩容配置)
|
1312
|
+
# @type ProfileType: String
|
1313
|
+
# @param InstanceId: 实列ID。
|
1314
|
+
# @type InstanceId: String
|
1315
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
1316
|
+
# @type Product: String
|
1317
|
+
# @param ProfileInfo: 自治功能相关配置,标准JSON字符串格式。
|
1318
|
+
# @type ProfileInfo: String
|
1319
|
+
|
1320
|
+
attr_accessor :ProfileType, :InstanceId, :Product, :ProfileInfo
|
1321
|
+
|
1322
|
+
def initialize(profiletype=nil, instanceid=nil, product=nil, profileinfo=nil)
|
1323
|
+
@ProfileType = profiletype
|
1324
|
+
@InstanceId = instanceid
|
1325
|
+
@Product = product
|
1326
|
+
@ProfileInfo = profileinfo
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
def deserialize(params)
|
1330
|
+
@ProfileType = params['ProfileType']
|
1331
|
+
@InstanceId = params['InstanceId']
|
1332
|
+
@Product = params['Product']
|
1333
|
+
@ProfileInfo = params['ProfileInfo']
|
1334
|
+
end
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
# CreateUserAutonomyProfile返回参数结构体
|
1338
|
+
class CreateUserAutonomyProfileResponse < TencentCloud::Common::AbstractModel
|
1339
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1340
|
+
# @type RequestId: String
|
1341
|
+
|
1342
|
+
attr_accessor :RequestId
|
1343
|
+
|
1344
|
+
def initialize(requestid=nil)
|
1345
|
+
@RequestId = requestid
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
def deserialize(params)
|
1349
|
+
@RequestId = params['RequestId']
|
1350
|
+
end
|
1351
|
+
end
|
1352
|
+
|
1090
1353
|
# DeleteAuditLogFile请求参数结构体
|
1091
1354
|
class DeleteAuditLogFileRequest < TencentCloud::Common::AbstractModel
|
1092
1355
|
# @param Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB。
|
@@ -1604,6 +1867,128 @@ module TencentCloud
|
|
1604
1867
|
end
|
1605
1868
|
end
|
1606
1869
|
|
1870
|
+
# DescribeDBAutonomyActions请求参数结构体
|
1871
|
+
class DescribeDBAutonomyActionsRequest < TencentCloud::Common::AbstractModel
|
1872
|
+
# @param EventId: 事件ID。
|
1873
|
+
# @type EventId: Integer
|
1874
|
+
# @param InstanceId: 实列ID。
|
1875
|
+
# @type InstanceId: String
|
1876
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
1877
|
+
# @type Product: String
|
1878
|
+
|
1879
|
+
attr_accessor :EventId, :InstanceId, :Product
|
1880
|
+
|
1881
|
+
def initialize(eventid=nil, instanceid=nil, product=nil)
|
1882
|
+
@EventId = eventid
|
1883
|
+
@InstanceId = instanceid
|
1884
|
+
@Product = product
|
1885
|
+
end
|
1886
|
+
|
1887
|
+
def deserialize(params)
|
1888
|
+
@EventId = params['EventId']
|
1889
|
+
@InstanceId = params['InstanceId']
|
1890
|
+
@Product = params['Product']
|
1891
|
+
end
|
1892
|
+
end
|
1893
|
+
|
1894
|
+
# DescribeDBAutonomyActions返回参数结构体
|
1895
|
+
class DescribeDBAutonomyActionsResponse < TencentCloud::Common::AbstractModel
|
1896
|
+
# @param TotalCount: 自治事件总数。
|
1897
|
+
# @type TotalCount: Integer
|
1898
|
+
# @param Actions: 自治事件列表。
|
1899
|
+
# @type Actions: Array
|
1900
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1901
|
+
# @type RequestId: String
|
1902
|
+
|
1903
|
+
attr_accessor :TotalCount, :Actions, :RequestId
|
1904
|
+
|
1905
|
+
def initialize(totalcount=nil, actions=nil, requestid=nil)
|
1906
|
+
@TotalCount = totalcount
|
1907
|
+
@Actions = actions
|
1908
|
+
@RequestId = requestid
|
1909
|
+
end
|
1910
|
+
|
1911
|
+
def deserialize(params)
|
1912
|
+
@TotalCount = params['TotalCount']
|
1913
|
+
unless params['Actions'].nil?
|
1914
|
+
@Actions = []
|
1915
|
+
params['Actions'].each do |i|
|
1916
|
+
autonomyactionvo_tmp = AutonomyActionVo.new
|
1917
|
+
autonomyactionvo_tmp.deserialize(i)
|
1918
|
+
@Actions << autonomyactionvo_tmp
|
1919
|
+
end
|
1920
|
+
end
|
1921
|
+
@RequestId = params['RequestId']
|
1922
|
+
end
|
1923
|
+
end
|
1924
|
+
|
1925
|
+
# DescribeDBAutonomyEvents请求参数结构体
|
1926
|
+
class DescribeDBAutonomyEventsRequest < TencentCloud::Common::AbstractModel
|
1927
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
1928
|
+
# @type Product: String
|
1929
|
+
# @param InstanceId: 实列ID。
|
1930
|
+
# @type InstanceId: String
|
1931
|
+
# @param StartTime: 开始时间。
|
1932
|
+
# @type StartTime: String
|
1933
|
+
# @param EndTime: 结束时间。
|
1934
|
+
# @type EndTime: String
|
1935
|
+
# @param Offset: 分页参数,默认值为0。
|
1936
|
+
# @type Offset: Integer
|
1937
|
+
# @param Limit: 分页参数,默认值为20。
|
1938
|
+
# @type Limit: Integer
|
1939
|
+
|
1940
|
+
attr_accessor :Product, :InstanceId, :StartTime, :EndTime, :Offset, :Limit
|
1941
|
+
|
1942
|
+
def initialize(product=nil, instanceid=nil, starttime=nil, endtime=nil, offset=nil, limit=nil)
|
1943
|
+
@Product = product
|
1944
|
+
@InstanceId = instanceid
|
1945
|
+
@StartTime = starttime
|
1946
|
+
@EndTime = endtime
|
1947
|
+
@Offset = offset
|
1948
|
+
@Limit = limit
|
1949
|
+
end
|
1950
|
+
|
1951
|
+
def deserialize(params)
|
1952
|
+
@Product = params['Product']
|
1953
|
+
@InstanceId = params['InstanceId']
|
1954
|
+
@StartTime = params['StartTime']
|
1955
|
+
@EndTime = params['EndTime']
|
1956
|
+
@Offset = params['Offset']
|
1957
|
+
@Limit = params['Limit']
|
1958
|
+
end
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
# DescribeDBAutonomyEvents返回参数结构体
|
1962
|
+
class DescribeDBAutonomyEventsResponse < TencentCloud::Common::AbstractModel
|
1963
|
+
# @param TotalCount: 自治事件列表总数。
|
1964
|
+
# @type TotalCount: Integer
|
1965
|
+
# @param Events: 自治事件列表。
|
1966
|
+
# @type Events: Array
|
1967
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1968
|
+
# @type RequestId: String
|
1969
|
+
|
1970
|
+
attr_accessor :TotalCount, :Events, :RequestId
|
1971
|
+
|
1972
|
+
def initialize(totalcount=nil, events=nil, requestid=nil)
|
1973
|
+
@TotalCount = totalcount
|
1974
|
+
@Events = events
|
1975
|
+
@RequestId = requestid
|
1976
|
+
end
|
1977
|
+
|
1978
|
+
def deserialize(params)
|
1979
|
+
@TotalCount = params['TotalCount']
|
1980
|
+
unless params['Events'].nil?
|
1981
|
+
@Events = []
|
1982
|
+
params['Events'].each do |i|
|
1983
|
+
autonomyeventvo_tmp = AutonomyEventVo.new
|
1984
|
+
autonomyeventvo_tmp.deserialize(i)
|
1985
|
+
@Events << autonomyeventvo_tmp
|
1986
|
+
end
|
1987
|
+
end
|
1988
|
+
@RequestId = params['RequestId']
|
1989
|
+
end
|
1990
|
+
end
|
1991
|
+
|
1607
1992
|
# DescribeDBDiagEvent请求参数结构体
|
1608
1993
|
class DescribeDBDiagEventRequest < TencentCloud::Common::AbstractModel
|
1609
1994
|
# @param InstanceId: 实例 ID 。
|
@@ -3682,6 +4067,61 @@ module TencentCloud
|
|
3682
4067
|
end
|
3683
4068
|
end
|
3684
4069
|
|
4070
|
+
# DescribeUserAutonomyProfile请求参数结构体
|
4071
|
+
class DescribeUserAutonomyProfileRequest < TencentCloud::Common::AbstractModel
|
4072
|
+
# @param ProfileType: 配置类型,为需要配置的功能枚举值,目前包含一下枚举值:AutonomyGlobal(自治功能全局配置)、RedisAutoScaleUp(Redis自治扩容配置)。
|
4073
|
+
# @type ProfileType: String
|
4074
|
+
# @param InstanceId: 实列ID。
|
4075
|
+
# @type InstanceId: String
|
4076
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
4077
|
+
# @type Product: String
|
4078
|
+
|
4079
|
+
attr_accessor :ProfileType, :InstanceId, :Product
|
4080
|
+
|
4081
|
+
def initialize(profiletype=nil, instanceid=nil, product=nil)
|
4082
|
+
@ProfileType = profiletype
|
4083
|
+
@InstanceId = instanceid
|
4084
|
+
@Product = product
|
4085
|
+
end
|
4086
|
+
|
4087
|
+
def deserialize(params)
|
4088
|
+
@ProfileType = params['ProfileType']
|
4089
|
+
@InstanceId = params['InstanceId']
|
4090
|
+
@Product = params['Product']
|
4091
|
+
end
|
4092
|
+
end
|
4093
|
+
|
4094
|
+
# DescribeUserAutonomyProfile返回参数结构体
|
4095
|
+
class DescribeUserAutonomyProfileResponse < TencentCloud::Common::AbstractModel
|
4096
|
+
# @param ProfileType: 配置类型,为需要配置的功能枚举值,目前包含一下枚举值:AutonomyGlobal(自治功能全局配置)、RedisAutoScaleUp(Redis自治扩容配置)。
|
4097
|
+
# @type ProfileType: String
|
4098
|
+
# @param UpdateTime: 更新时间。
|
4099
|
+
# @type UpdateTime: String
|
4100
|
+
# @param ProfileInfo: 自治用户配置。
|
4101
|
+
# @type ProfileInfo: :class:`Tencentcloud::Dbbrain.v20210527.models.AutonomyUserProfileInfo`
|
4102
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4103
|
+
# @type RequestId: String
|
4104
|
+
|
4105
|
+
attr_accessor :ProfileType, :UpdateTime, :ProfileInfo, :RequestId
|
4106
|
+
|
4107
|
+
def initialize(profiletype=nil, updatetime=nil, profileinfo=nil, requestid=nil)
|
4108
|
+
@ProfileType = profiletype
|
4109
|
+
@UpdateTime = updatetime
|
4110
|
+
@ProfileInfo = profileinfo
|
4111
|
+
@RequestId = requestid
|
4112
|
+
end
|
4113
|
+
|
4114
|
+
def deserialize(params)
|
4115
|
+
@ProfileType = params['ProfileType']
|
4116
|
+
@UpdateTime = params['UpdateTime']
|
4117
|
+
unless params['ProfileInfo'].nil?
|
4118
|
+
@ProfileInfo = AutonomyUserProfileInfo.new
|
4119
|
+
@ProfileInfo.deserialize(params['ProfileInfo'])
|
4120
|
+
end
|
4121
|
+
@RequestId = params['RequestId']
|
4122
|
+
end
|
4123
|
+
end
|
4124
|
+
|
3685
4125
|
# DescribeUserSqlAdvice请求参数结构体
|
3686
4126
|
class DescribeUserSqlAdviceRequest < TencentCloud::Common::AbstractModel
|
3687
4127
|
# @param InstanceId: 实例ID。
|
@@ -4436,6 +4876,30 @@ module TencentCloud
|
|
4436
4876
|
end
|
4437
4877
|
end
|
4438
4878
|
|
4879
|
+
# 自治指标阈值
|
4880
|
+
class MetricThreshold < TencentCloud::Common::AbstractModel
|
4881
|
+
# @param Metric: 指标。
|
4882
|
+
# @type Metric: String
|
4883
|
+
# @param Threshold: 阈值。
|
4884
|
+
# @type Threshold: Integer
|
4885
|
+
# @param Duration: 时间间隔。
|
4886
|
+
# @type Duration: Integer
|
4887
|
+
|
4888
|
+
attr_accessor :Metric, :Threshold, :Duration
|
4889
|
+
|
4890
|
+
def initialize(metric=nil, threshold=nil, duration=nil)
|
4891
|
+
@Metric = metric
|
4892
|
+
@Threshold = threshold
|
4893
|
+
@Duration = duration
|
4894
|
+
end
|
4895
|
+
|
4896
|
+
def deserialize(params)
|
4897
|
+
@Metric = params['Metric']
|
4898
|
+
@Threshold = params['Threshold']
|
4899
|
+
@Duration = params['Duration']
|
4900
|
+
end
|
4901
|
+
end
|
4902
|
+
|
4439
4903
|
# ModifyAlarmPolicy请求参数结构体
|
4440
4904
|
class ModifyAlarmPolicyRequest < TencentCloud::Common::AbstractModel
|
4441
4905
|
# @param ApplyType: 类型
|
@@ -4683,6 +5147,50 @@ module TencentCloud
|
|
4683
5147
|
end
|
4684
5148
|
end
|
4685
5149
|
|
5150
|
+
# ModifyUserAutonomyProfile请求参数结构体
|
5151
|
+
class ModifyUserAutonomyProfileRequest < TencentCloud::Common::AbstractModel
|
5152
|
+
# @param ProfileType: 配置类型,为需要配置的功能枚举值,目前包含一下枚举值:AutonomyGlobal(自治功能全局配置)、RedisAutoScaleUp(Redis自治扩容配置)
|
5153
|
+
# @type ProfileType: String
|
5154
|
+
# @param InstanceId: 实列ID。
|
5155
|
+
# @type InstanceId: String
|
5156
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
5157
|
+
# @type Product: String
|
5158
|
+
# @param NewProfileInfo: 自治功能相关配置,标准JSON字符串格式。
|
5159
|
+
# @type NewProfileInfo: String
|
5160
|
+
|
5161
|
+
attr_accessor :ProfileType, :InstanceId, :Product, :NewProfileInfo
|
5162
|
+
|
5163
|
+
def initialize(profiletype=nil, instanceid=nil, product=nil, newprofileinfo=nil)
|
5164
|
+
@ProfileType = profiletype
|
5165
|
+
@InstanceId = instanceid
|
5166
|
+
@Product = product
|
5167
|
+
@NewProfileInfo = newprofileinfo
|
5168
|
+
end
|
5169
|
+
|
5170
|
+
def deserialize(params)
|
5171
|
+
@ProfileType = params['ProfileType']
|
5172
|
+
@InstanceId = params['InstanceId']
|
5173
|
+
@Product = params['Product']
|
5174
|
+
@NewProfileInfo = params['NewProfileInfo']
|
5175
|
+
end
|
5176
|
+
end
|
5177
|
+
|
5178
|
+
# ModifyUserAutonomyProfile返回参数结构体
|
5179
|
+
class ModifyUserAutonomyProfileResponse < TencentCloud::Common::AbstractModel
|
5180
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5181
|
+
# @type RequestId: String
|
5182
|
+
|
5183
|
+
attr_accessor :RequestId
|
5184
|
+
|
5185
|
+
def initialize(requestid=nil)
|
5186
|
+
@RequestId = requestid
|
5187
|
+
end
|
5188
|
+
|
5189
|
+
def deserialize(params)
|
5190
|
+
@RequestId = params['RequestId']
|
5191
|
+
end
|
5192
|
+
end
|
5193
|
+
|
4686
5194
|
# Mongodb索引项
|
4687
5195
|
class MongoDBIndex < TencentCloud::Common::AbstractModel
|
4688
5196
|
# @param ClusterId: 实例id。
|
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.1022
|
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-03-
|
11
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|