tencentcloud-sdk-dbbrain 3.0.1021 → 3.0.1023

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad1728d4317a157e1fcd410c48c830ec6a8e8abd
4
- data.tar.gz: 9fc0c860b2d4f6b72dc149007b812490901d5a2e
3
+ metadata.gz: 125809417ea2879d8f44415b30f00e78e4df159f
4
+ data.tar.gz: d6e639c020893e7c11692d1d4ea756a3a9457309
5
5
  SHA512:
6
- metadata.gz: 089b46998062bd232a3e54c0b3811f968c8ce65817b67966ec3b0b8575812770c786ba9328dd5b6f7b8ab4c136718c4a0304fadf8ebc3d211efddb268eddd8d9
7
- data.tar.gz: 538a76d55c22356a0cfaaf662edec579aa8b885ed2ac9e252279cb11e66ebfb7c94c7eaf82ce80cbfcbd3fa3056c6e4294082733c4676e89af186de790542839
6
+ metadata.gz: e561764fa8345b975c7d1d9cfb17b4e45503e8efbf9ab2bf5ca2537a4d2703eb9d560023280c46450e805901a9d2dbfd5c8ad5f25ee116953be0b2a3df79c533
7
+ data.tar.gz: 08b333746cc3ef818a54ad4e51c4a8c9e709787dc97bd9ed1b5c4f0cc9299c8cf79f8877d5721c5bb86ab3db2901010a3b59b5a544a6431ec9a82e4f0322ffcb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1021
1
+ 3.0.1023
@@ -1616,13 +1616,10 @@ module TencentCloud
1616
1616
  # @param DiagItem: 诊断项。
1617
1617
  # @type DiagItem: String
1618
1618
  # @param InstanceId: 实例 ID 。
1619
- # 注意:此字段可能返回 null,表示取不到有效值。
1620
1619
  # @type InstanceId: String
1621
1620
  # @param Metric: 保留字段
1622
- # 注意:此字段可能返回 null,表示取不到有效值。
1623
1621
  # @type Metric: String
1624
1622
  # @param Region: 地域
1625
- # 注意:此字段可能返回 null,表示取不到有效值。
1626
1623
  # @type Region: String
1627
1624
 
1628
1625
  attr_accessor :DiagType, :EndTime, :StartTime, :EventId, :Severity, :Outline, :DiagItem, :InstanceId, :Metric, :Region
@@ -1889,7 +1886,6 @@ module TencentCloud
1889
1886
  # @param OverviewDisplay: 实例概览开关,Yes/No。
1890
1887
  # @type OverviewDisplay: String
1891
1888
  # @param KeyDelimiters: redis大key分析的自定义分割符,仅redis使用
1892
- # 注意:此字段可能返回 null,表示取不到有效值。
1893
1889
  # @type KeyDelimiters: Array
1894
1890
 
1895
1891
  attr_accessor :DailyInspection, :OverviewDisplay, :KeyDelimiters
@@ -2171,7 +2167,6 @@ module TencentCloud
2171
2167
  # @param Unit: 指标单位。
2172
2168
  # @type Unit: String
2173
2169
  # @param Values: 指标值。
2174
- # 注意:此字段可能返回 null,表示取不到有效值。
2175
2170
  # @type Values: Array
2176
2171
 
2177
2172
  attr_accessor :Metric, :Unit, :Values
@@ -2223,7 +2218,6 @@ module TencentCloud
2223
2218
  # @param Unit: 指标单位。
2224
2219
  # @type Unit: String
2225
2220
  # @param Values: 指标值。
2226
- # 注意:此字段可能返回 null,表示取不到有效值。
2227
2221
  # @type Values: Array
2228
2222
 
2229
2223
  attr_accessor :Metric, :Unit, :Values
@@ -2324,7 +2318,6 @@ module TencentCloud
2324
2318
  # @param TableRows: 行数。
2325
2319
  # @type TableRows: Integer
2326
2320
  # @param PhysicalFileSize: 库中所有表对应的独立物理文件大小加和(MB)。
2327
- # 注意:此字段可能返回 null,表示取不到有效值。
2328
2321
  # @type PhysicalFileSize: Float
2329
2322
 
2330
2323
  attr_accessor :TableSchema, :DataLength, :IndexLength, :DataFree, :TotalLength, :FragRatio, :TableRows, :PhysicalFileSize
@@ -2384,7 +2377,6 @@ module TencentCloud
2384
2377
  # @param ScoreLostMax: 扣分总分上限。
2385
2378
  # @type ScoreLostMax: Integer
2386
2379
  # @param Items: 扣分项列表。
2387
- # 注意:此字段可能返回 null,表示取不到有效值。
2388
2380
  # @type Items: Array
2389
2381
 
2390
2382
  attr_accessor :IssueType, :ScoreLost, :ScoreLostMax, :Items
@@ -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.
@@ -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。
@@ -3773,7 +4213,6 @@ module TencentCloud
3773
4213
  # @param InstanceId: 实例 ID 。
3774
4214
  # @type InstanceId: String
3775
4215
  # @param Metric: 保留字段。
3776
- # 注意:此字段可能返回 null,表示取不到有效值。
3777
4216
  # @type Metric: String
3778
4217
  # @param Region: 地域。
3779
4218
  # @type Region: String
@@ -4114,13 +4553,10 @@ module TencentCloud
4114
4553
  # @param OverviewDisplay: 实例概览开关,Yes/No。
4115
4554
  # @type OverviewDisplay: String
4116
4555
  # @param KeyDelimiters: redis大key分析的自定义分割符,仅redis使用
4117
- # 注意:此字段可能返回 null,表示取不到有效值。
4118
4556
  # @type KeyDelimiters: Array
4119
4557
  # @param ShardNum: 分片节点数量。
4120
- # 注意:此字段可能返回 null,表示取不到有效值。
4121
4558
  # @type ShardNum: String
4122
4559
  # @param AnalysisTopKey: 是否开启大key周期性分析,仅redis产品有效。
4123
- # 注意:此字段可能返回 null,表示取不到有效值。
4124
4560
  # @type AnalysisTopKey: String
4125
4561
 
4126
4562
  attr_accessor :DailyInspection, :OverviewDisplay, :KeyDelimiters, :ShardNum, :AnalysisTopKey
@@ -4436,6 +4872,30 @@ module TencentCloud
4436
4872
  end
4437
4873
  end
4438
4874
 
4875
+ # 自治指标阈值
4876
+ class MetricThreshold < TencentCloud::Common::AbstractModel
4877
+ # @param Metric: 指标。
4878
+ # @type Metric: String
4879
+ # @param Threshold: 阈值。
4880
+ # @type Threshold: Integer
4881
+ # @param Duration: 时间间隔。
4882
+ # @type Duration: Integer
4883
+
4884
+ attr_accessor :Metric, :Threshold, :Duration
4885
+
4886
+ def initialize(metric=nil, threshold=nil, duration=nil)
4887
+ @Metric = metric
4888
+ @Threshold = threshold
4889
+ @Duration = duration
4890
+ end
4891
+
4892
+ def deserialize(params)
4893
+ @Metric = params['Metric']
4894
+ @Threshold = params['Threshold']
4895
+ @Duration = params['Duration']
4896
+ end
4897
+ end
4898
+
4439
4899
  # ModifyAlarmPolicy请求参数结构体
4440
4900
  class ModifyAlarmPolicyRequest < TencentCloud::Common::AbstractModel
4441
4901
  # @param ApplyType: 类型
@@ -4683,6 +5143,50 @@ module TencentCloud
4683
5143
  end
4684
5144
  end
4685
5145
 
5146
+ # ModifyUserAutonomyProfile请求参数结构体
5147
+ class ModifyUserAutonomyProfileRequest < TencentCloud::Common::AbstractModel
5148
+ # @param ProfileType: 配置类型,为需要配置的功能枚举值,目前包含一下枚举值:AutonomyGlobal(自治功能全局配置)、RedisAutoScaleUp(Redis自治扩容配置)
5149
+ # @type ProfileType: String
5150
+ # @param InstanceId: 实列ID。
5151
+ # @type InstanceId: String
5152
+ # @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
5153
+ # @type Product: String
5154
+ # @param NewProfileInfo: 自治功能相关配置,标准JSON字符串格式。
5155
+ # @type NewProfileInfo: String
5156
+
5157
+ attr_accessor :ProfileType, :InstanceId, :Product, :NewProfileInfo
5158
+
5159
+ def initialize(profiletype=nil, instanceid=nil, product=nil, newprofileinfo=nil)
5160
+ @ProfileType = profiletype
5161
+ @InstanceId = instanceid
5162
+ @Product = product
5163
+ @NewProfileInfo = newprofileinfo
5164
+ end
5165
+
5166
+ def deserialize(params)
5167
+ @ProfileType = params['ProfileType']
5168
+ @InstanceId = params['InstanceId']
5169
+ @Product = params['Product']
5170
+ @NewProfileInfo = params['NewProfileInfo']
5171
+ end
5172
+ end
5173
+
5174
+ # ModifyUserAutonomyProfile返回参数结构体
5175
+ class ModifyUserAutonomyProfileResponse < TencentCloud::Common::AbstractModel
5176
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5177
+ # @type RequestId: String
5178
+
5179
+ attr_accessor :RequestId
5180
+
5181
+ def initialize(requestid=nil)
5182
+ @RequestId = requestid
5183
+ end
5184
+
5185
+ def deserialize(params)
5186
+ @RequestId = params['RequestId']
5187
+ end
5188
+ end
5189
+
4686
5190
  # Mongodb索引项
4687
5191
  class MongoDBIndex < TencentCloud::Common::AbstractModel
4688
5192
  # @param ClusterId: 实例id。
@@ -4746,7 +5250,6 @@ module TencentCloud
4746
5250
  # @param Unit: 指标单位。
4747
5251
  # @type Unit: String
4748
5252
  # @param Values: 指标值。
4749
- # 注意:此字段可能返回 null,表示取不到有效值。
4750
5253
  # @type Values: Array
4751
5254
 
4752
5255
  attr_accessor :Metric, :Unit, :Values
@@ -5321,7 +5824,6 @@ module TencentCloud
5321
5824
  # @param TableRows: 行数。
5322
5825
  # @type TableRows: Integer
5323
5826
  # @param PhysicalFileSize: 库中所有表对应的独立物理文件大小加和(MB)。
5324
- # 注意:此字段可能返回 null,表示取不到有效值。
5325
5827
  # @type PhysicalFileSize: Float
5326
5828
 
5327
5829
  attr_accessor :TableSchema, :DataLength, :IndexLength, :DataFree, :TotalLength, :FragRatio, :TableRows, :PhysicalFileSize
@@ -5381,7 +5883,6 @@ module TencentCloud
5381
5883
  # @param ScoreLostMax: 扣分总分上限。
5382
5884
  # @type ScoreLostMax: Integer
5383
5885
  # @param Items: 扣分项列表。
5384
- # 注意:此字段可能返回 null,表示取不到有效值。
5385
5886
  # @type Items: Array
5386
5887
 
5387
5888
  attr_accessor :IssueType, :ScoreLost, :ScoreLostMax, :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.1021
4
+ version: 3.0.1023
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-17 00:00:00.000000000 Z
11
+ date: 2025-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common