tencentcloud-sdk-dbbrain 1.0.200

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.
@@ -0,0 +1,2746 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Dbbrain
19
+ module V20191016
20
+ # AddUserContact请求参数结构体
21
+ class AddUserContactRequest < TencentCloud::Common::AbstractModel
22
+ # @param Name: 联系人姓名,大小写字母+数字+下划线,最小 2 位最大 60 位的长度, 不能以"_"开头,且联系人名保持唯一。
23
+ # @type Name: String
24
+ # @param ContactInfo: 邮箱地址,大小写字母、数字及下划线组成, 不能以"_"开头。
25
+ # @type ContactInfo: String
26
+ # @param Product: 服务产品类型,固定值:"mysql"。
27
+ # @type Product: String
28
+
29
+ attr_accessor :Name, :ContactInfo, :Product
30
+
31
+ def initialize(name=nil, contactinfo=nil, product=nil)
32
+ @Name = name
33
+ @ContactInfo = contactinfo
34
+ @Product = product
35
+ end
36
+
37
+ def deserialize(params)
38
+ @Name = params['Name']
39
+ @ContactInfo = params['ContactInfo']
40
+ @Product = params['Product']
41
+ end
42
+ end
43
+
44
+ # AddUserContact返回参数结构体
45
+ class AddUserContactResponse < TencentCloud::Common::AbstractModel
46
+ # @param Id: 添加成功的联系人id。
47
+ # @type Id: Integer
48
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
49
+ # @type RequestId: String
50
+
51
+ attr_accessor :Id, :RequestId
52
+
53
+ def initialize(id=nil, requestid=nil)
54
+ @Id = id
55
+ @RequestId = requestid
56
+ end
57
+
58
+ def deserialize(params)
59
+ @Id = params['Id']
60
+ @RequestId = params['RequestId']
61
+ end
62
+ end
63
+
64
+ # 联系人contact描述。
65
+ class ContactItem < TencentCloud::Common::AbstractModel
66
+ # @param Id: 联系人id。
67
+ # @type Id: Integer
68
+ # @param Name: 联系人姓名。
69
+ # @type Name: String
70
+ # @param Mail: 联系人绑定的邮箱。
71
+ # @type Mail: String
72
+
73
+ attr_accessor :Id, :Name, :Mail
74
+
75
+ def initialize(id=nil, name=nil, mail=nil)
76
+ @Id = id
77
+ @Name = name
78
+ @Mail = mail
79
+ end
80
+
81
+ def deserialize(params)
82
+ @Id = params['Id']
83
+ @Name = params['Name']
84
+ @Mail = params['Mail']
85
+ end
86
+ end
87
+
88
+ # CreateDBDiagReportTask请求参数结构体
89
+ class CreateDBDiagReportTaskRequest < TencentCloud::Common::AbstractModel
90
+ # @param InstanceId: 实例ID。
91
+ # @type InstanceId: String
92
+ # @param StartTime: 开始时间,如“2020-11-08T14:00:00+08:00”。
93
+ # @type StartTime: String
94
+ # @param EndTime: 结束时间,如“2020-11-09T14:00:00+08:00”。
95
+ # @type EndTime: String
96
+ # @param SendMailFlag: 是否发送邮件: 0 - 否,1 - 是。
97
+ # @type SendMailFlag: Integer
98
+ # @param ContactPerson: 接收邮件的联系人ID数组。
99
+ # @type ContactPerson: Array
100
+ # @param ContactGroup: 接收邮件的联系组ID数组。
101
+ # @type ContactGroup: Array
102
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认值为"mysql"。
103
+ # @type Product: String
104
+
105
+ attr_accessor :InstanceId, :StartTime, :EndTime, :SendMailFlag, :ContactPerson, :ContactGroup, :Product
106
+
107
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, sendmailflag=nil, contactperson=nil, contactgroup=nil, product=nil)
108
+ @InstanceId = instanceid
109
+ @StartTime = starttime
110
+ @EndTime = endtime
111
+ @SendMailFlag = sendmailflag
112
+ @ContactPerson = contactperson
113
+ @ContactGroup = contactgroup
114
+ @Product = product
115
+ end
116
+
117
+ def deserialize(params)
118
+ @InstanceId = params['InstanceId']
119
+ @StartTime = params['StartTime']
120
+ @EndTime = params['EndTime']
121
+ @SendMailFlag = params['SendMailFlag']
122
+ @ContactPerson = params['ContactPerson']
123
+ @ContactGroup = params['ContactGroup']
124
+ @Product = params['Product']
125
+ end
126
+ end
127
+
128
+ # CreateDBDiagReportTask返回参数结构体
129
+ class CreateDBDiagReportTaskResponse < TencentCloud::Common::AbstractModel
130
+ # @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
131
+ # 注意:此字段可能返回 null,表示取不到有效值。
132
+ # @type AsyncRequestId: Integer
133
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
134
+ # @type RequestId: String
135
+
136
+ attr_accessor :AsyncRequestId, :RequestId
137
+
138
+ def initialize(asyncrequestid=nil, requestid=nil)
139
+ @AsyncRequestId = asyncrequestid
140
+ @RequestId = requestid
141
+ end
142
+
143
+ def deserialize(params)
144
+ @AsyncRequestId = params['AsyncRequestId']
145
+ @RequestId = params['RequestId']
146
+ end
147
+ end
148
+
149
+ # CreateDBDiagReportUrl请求参数结构体
150
+ class CreateDBDiagReportUrlRequest < TencentCloud::Common::AbstractModel
151
+ # @param InstanceId: 实例ID。
152
+ # @type InstanceId: String
153
+ # @param AsyncRequestId: 健康报告相应的任务ID,可通过DescribeDBDiagReportTasks查询。
154
+ # @type AsyncRequestId: Integer
155
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
156
+ # @type Product: String
157
+
158
+ attr_accessor :InstanceId, :AsyncRequestId, :Product
159
+
160
+ def initialize(instanceid=nil, asyncrequestid=nil, product=nil)
161
+ @InstanceId = instanceid
162
+ @AsyncRequestId = asyncrequestid
163
+ @Product = product
164
+ end
165
+
166
+ def deserialize(params)
167
+ @InstanceId = params['InstanceId']
168
+ @AsyncRequestId = params['AsyncRequestId']
169
+ @Product = params['Product']
170
+ end
171
+ end
172
+
173
+ # CreateDBDiagReportUrl返回参数结构体
174
+ class CreateDBDiagReportUrlResponse < TencentCloud::Common::AbstractModel
175
+ # @param ReportUrl: 健康报告浏览地址。
176
+ # @type ReportUrl: String
177
+ # @param ExpireTime: 健康报告浏览地址到期时间戳(秒)。
178
+ # @type ExpireTime: Integer
179
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
180
+ # @type RequestId: String
181
+
182
+ attr_accessor :ReportUrl, :ExpireTime, :RequestId
183
+
184
+ def initialize(reporturl=nil, expiretime=nil, requestid=nil)
185
+ @ReportUrl = reporturl
186
+ @ExpireTime = expiretime
187
+ @RequestId = requestid
188
+ end
189
+
190
+ def deserialize(params)
191
+ @ReportUrl = params['ReportUrl']
192
+ @ExpireTime = params['ExpireTime']
193
+ @RequestId = params['RequestId']
194
+ end
195
+ end
196
+
197
+ # CreateMailProfile请求参数结构体
198
+ class CreateMailProfileRequest < TencentCloud::Common::AbstractModel
199
+ # @param ProfileInfo: 邮件配置内容。
200
+ # @type ProfileInfo: :class:`Tencentcloud::Dbbrain.v20191016.models.ProfileInfo`
201
+ # @param ProfileLevel: 配置级别,支持值包括:"User" - 用户级别,"Instance" - 实例级别,其中数据库巡检邮件配置为用户级别,定期生成邮件配置为实例级别。
202
+ # @type ProfileLevel: String
203
+ # @param ProfileName: 配置名称,需要保持唯一性,数据库巡检邮件配置名称自拟;定期生成邮件配置命名格式:"scheduler_" + {instanceId},如"schduler_cdb-test"。
204
+ # @type ProfileName: String
205
+ # @param ProfileType: 配置类型,支持值包括:"dbScan_mail_configuration" - 数据库巡检邮件配置,"scheduler_mail_configuration" - 定期生成邮件配置。
206
+ # @type ProfileType: String
207
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL。
208
+ # @type Product: String
209
+ # @param BindInstanceIds: 配置绑定的实例ID,当配置级别为"Instance"时需要传入且只能为一个实例;当配置级别为“User”时,此参数不填。
210
+ # @type BindInstanceIds: Array
211
+
212
+ attr_accessor :ProfileInfo, :ProfileLevel, :ProfileName, :ProfileType, :Product, :BindInstanceIds
213
+
214
+ def initialize(profileinfo=nil, profilelevel=nil, profilename=nil, profiletype=nil, product=nil, bindinstanceids=nil)
215
+ @ProfileInfo = profileinfo
216
+ @ProfileLevel = profilelevel
217
+ @ProfileName = profilename
218
+ @ProfileType = profiletype
219
+ @Product = product
220
+ @BindInstanceIds = bindinstanceids
221
+ end
222
+
223
+ def deserialize(params)
224
+ unless params['ProfileInfo'].nil?
225
+ @ProfileInfo = ProfileInfo.new
226
+ @ProfileInfo.deserialize(params['ProfileInfo'])
227
+ end
228
+ @ProfileLevel = params['ProfileLevel']
229
+ @ProfileName = params['ProfileName']
230
+ @ProfileType = params['ProfileType']
231
+ @Product = params['Product']
232
+ @BindInstanceIds = params['BindInstanceIds']
233
+ end
234
+ end
235
+
236
+ # CreateMailProfile返回参数结构体
237
+ class CreateMailProfileResponse < TencentCloud::Common::AbstractModel
238
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
239
+ # @type RequestId: String
240
+
241
+ attr_accessor :RequestId
242
+
243
+ def initialize(requestid=nil)
244
+ @RequestId = requestid
245
+ end
246
+
247
+ def deserialize(params)
248
+ @RequestId = params['RequestId']
249
+ end
250
+ end
251
+
252
+ # CreateSchedulerMailProfile请求参数结构体
253
+ class CreateSchedulerMailProfileRequest < TencentCloud::Common::AbstractModel
254
+ # @param WeekConfiguration: 取值范围1-7,分别代表周一至周日。
255
+ # @type WeekConfiguration: Array
256
+ # @param ProfileInfo: 邮件配置内容。
257
+ # @type ProfileInfo: :class:`Tencentcloud::Dbbrain.v20191016.models.ProfileInfo`
258
+ # @param ProfileName: 配置名称,需要保持唯一性,定期生成邮件配置命名格式:"scheduler_" + {instanceId},如"schduler_cdb-test"。
259
+ # @type ProfileName: String
260
+ # @param BindInstanceId: 配置订阅的实例ID。
261
+ # @type BindInstanceId: String
262
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
263
+ # @type Product: String
264
+
265
+ attr_accessor :WeekConfiguration, :ProfileInfo, :ProfileName, :BindInstanceId, :Product
266
+
267
+ def initialize(weekconfiguration=nil, profileinfo=nil, profilename=nil, bindinstanceid=nil, product=nil)
268
+ @WeekConfiguration = weekconfiguration
269
+ @ProfileInfo = profileinfo
270
+ @ProfileName = profilename
271
+ @BindInstanceId = bindinstanceid
272
+ @Product = product
273
+ end
274
+
275
+ def deserialize(params)
276
+ @WeekConfiguration = params['WeekConfiguration']
277
+ unless params['ProfileInfo'].nil?
278
+ @ProfileInfo = ProfileInfo.new
279
+ @ProfileInfo.deserialize(params['ProfileInfo'])
280
+ end
281
+ @ProfileName = params['ProfileName']
282
+ @BindInstanceId = params['BindInstanceId']
283
+ @Product = params['Product']
284
+ end
285
+ end
286
+
287
+ # CreateSchedulerMailProfile返回参数结构体
288
+ class CreateSchedulerMailProfileResponse < TencentCloud::Common::AbstractModel
289
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
290
+ # @type RequestId: String
291
+
292
+ attr_accessor :RequestId
293
+
294
+ def initialize(requestid=nil)
295
+ @RequestId = requestid
296
+ end
297
+
298
+ def deserialize(params)
299
+ @RequestId = params['RequestId']
300
+ end
301
+ end
302
+
303
+ # CreateSecurityAuditLogExportTask请求参数结构体
304
+ class CreateSecurityAuditLogExportTaskRequest < TencentCloud::Common::AbstractModel
305
+ # @param SecAuditGroupId: 安全审计组Id。
306
+ # @type SecAuditGroupId: String
307
+ # @param StartTime: 导出日志开始时间,例如2020-12-28 00:00:00。
308
+ # @type StartTime: String
309
+ # @param EndTime: 导出日志结束时间,例如2020-12-28 01:00:00。
310
+ # @type EndTime: String
311
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL。
312
+ # @type Product: String
313
+ # @param DangerLevels: 日志风险等级列表,支持值包括:0 无风险;1 低风险;2 中风险;3 高风险。
314
+ # @type DangerLevels: Array
315
+
316
+ attr_accessor :SecAuditGroupId, :StartTime, :EndTime, :Product, :DangerLevels
317
+
318
+ def initialize(secauditgroupid=nil, starttime=nil, endtime=nil, product=nil, dangerlevels=nil)
319
+ @SecAuditGroupId = secauditgroupid
320
+ @StartTime = starttime
321
+ @EndTime = endtime
322
+ @Product = product
323
+ @DangerLevels = dangerlevels
324
+ end
325
+
326
+ def deserialize(params)
327
+ @SecAuditGroupId = params['SecAuditGroupId']
328
+ @StartTime = params['StartTime']
329
+ @EndTime = params['EndTime']
330
+ @Product = params['Product']
331
+ @DangerLevels = params['DangerLevels']
332
+ end
333
+ end
334
+
335
+ # CreateSecurityAuditLogExportTask返回参数结构体
336
+ class CreateSecurityAuditLogExportTaskResponse < TencentCloud::Common::AbstractModel
337
+ # @param AsyncRequestId: 日志导出任务Id。
338
+ # @type AsyncRequestId: Integer
339
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
340
+ # @type RequestId: String
341
+
342
+ attr_accessor :AsyncRequestId, :RequestId
343
+
344
+ def initialize(asyncrequestid=nil, requestid=nil)
345
+ @AsyncRequestId = asyncrequestid
346
+ @RequestId = requestid
347
+ end
348
+
349
+ def deserialize(params)
350
+ @AsyncRequestId = params['AsyncRequestId']
351
+ @RequestId = params['RequestId']
352
+ end
353
+ end
354
+
355
+ # DeleteSecurityAuditLogExportTasks请求参数结构体
356
+ class DeleteSecurityAuditLogExportTasksRequest < TencentCloud::Common::AbstractModel
357
+ # @param SecAuditGroupId: 安全审计组Id。
358
+ # @type SecAuditGroupId: String
359
+ # @param AsyncRequestIds: 日志导出任务Id列表,接口会忽略不存在或已删除的任务Id。
360
+ # @type AsyncRequestIds: Array
361
+ # @param Product: 服务产品类型,支持值: "mysql" - 云数据库 MySQL。
362
+ # @type Product: String
363
+
364
+ attr_accessor :SecAuditGroupId, :AsyncRequestIds, :Product
365
+
366
+ def initialize(secauditgroupid=nil, asyncrequestids=nil, product=nil)
367
+ @SecAuditGroupId = secauditgroupid
368
+ @AsyncRequestIds = asyncrequestids
369
+ @Product = product
370
+ end
371
+
372
+ def deserialize(params)
373
+ @SecAuditGroupId = params['SecAuditGroupId']
374
+ @AsyncRequestIds = params['AsyncRequestIds']
375
+ @Product = params['Product']
376
+ end
377
+ end
378
+
379
+ # DeleteSecurityAuditLogExportTasks返回参数结构体
380
+ class DeleteSecurityAuditLogExportTasksResponse < TencentCloud::Common::AbstractModel
381
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
382
+ # @type RequestId: String
383
+
384
+ attr_accessor :RequestId
385
+
386
+ def initialize(requestid=nil)
387
+ @RequestId = requestid
388
+ end
389
+
390
+ def deserialize(params)
391
+ @RequestId = params['RequestId']
392
+ end
393
+ end
394
+
395
+ # DescribeAllUserContact请求参数结构体
396
+ class DescribeAllUserContactRequest < TencentCloud::Common::AbstractModel
397
+ # @param Product: 服务产品类型,固定值:mysql。
398
+ # @type Product: String
399
+ # @param Names: 联系人名数组,支持模糊搜索。
400
+ # @type Names: Array
401
+
402
+ attr_accessor :Product, :Names
403
+
404
+ def initialize(product=nil, names=nil)
405
+ @Product = product
406
+ @Names = names
407
+ end
408
+
409
+ def deserialize(params)
410
+ @Product = params['Product']
411
+ @Names = params['Names']
412
+ end
413
+ end
414
+
415
+ # DescribeAllUserContact返回参数结构体
416
+ class DescribeAllUserContactResponse < TencentCloud::Common::AbstractModel
417
+ # @param TotalCount: 联系人的总数量。
418
+ # @type TotalCount: Integer
419
+ # @param Contacts: 联系人的信息。
420
+ # 注意:此字段可能返回 null,表示取不到有效值。
421
+ # @type Contacts: Array
422
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
423
+ # @type RequestId: String
424
+
425
+ attr_accessor :TotalCount, :Contacts, :RequestId
426
+
427
+ def initialize(totalcount=nil, contacts=nil, requestid=nil)
428
+ @TotalCount = totalcount
429
+ @Contacts = contacts
430
+ @RequestId = requestid
431
+ end
432
+
433
+ def deserialize(params)
434
+ @TotalCount = params['TotalCount']
435
+ unless params['Contacts'].nil?
436
+ @Contacts = []
437
+ params['Contacts'].each do |i|
438
+ contactitem_tmp = ContactItem.new
439
+ contactitem_tmp.deserialize(i)
440
+ @Contacts << contactitem_tmp
441
+ end
442
+ end
443
+ @RequestId = params['RequestId']
444
+ end
445
+ end
446
+
447
+ # DescribeAllUserGroup请求参数结构体
448
+ class DescribeAllUserGroupRequest < TencentCloud::Common::AbstractModel
449
+ # @param Product: 服务产品类型,固定值:mysql。
450
+ # @type Product: String
451
+ # @param Names: 联系组名称数组,支持模糊搜索。
452
+ # @type Names: Array
453
+
454
+ attr_accessor :Product, :Names
455
+
456
+ def initialize(product=nil, names=nil)
457
+ @Product = product
458
+ @Names = names
459
+ end
460
+
461
+ def deserialize(params)
462
+ @Product = params['Product']
463
+ @Names = params['Names']
464
+ end
465
+ end
466
+
467
+ # DescribeAllUserGroup返回参数结构体
468
+ class DescribeAllUserGroupResponse < TencentCloud::Common::AbstractModel
469
+ # @param TotalCount: 组总数。
470
+ # @type TotalCount: Integer
471
+ # @param Groups: 组信息。
472
+ # 注意:此字段可能返回 null,表示取不到有效值。
473
+ # @type Groups: Array
474
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
475
+ # @type RequestId: String
476
+
477
+ attr_accessor :TotalCount, :Groups, :RequestId
478
+
479
+ def initialize(totalcount=nil, groups=nil, requestid=nil)
480
+ @TotalCount = totalcount
481
+ @Groups = groups
482
+ @RequestId = requestid
483
+ end
484
+
485
+ def deserialize(params)
486
+ @TotalCount = params['TotalCount']
487
+ unless params['Groups'].nil?
488
+ @Groups = []
489
+ params['Groups'].each do |i|
490
+ groupitem_tmp = GroupItem.new
491
+ groupitem_tmp.deserialize(i)
492
+ @Groups << groupitem_tmp
493
+ end
494
+ end
495
+ @RequestId = params['RequestId']
496
+ end
497
+ end
498
+
499
+ # DescribeDBDiagEvent请求参数结构体
500
+ class DescribeDBDiagEventRequest < TencentCloud::Common::AbstractModel
501
+ # @param InstanceId: 实例 ID 。
502
+ # @type InstanceId: String
503
+ # @param EventId: 事件 ID 。通过“获取实例诊断历史DescribeDBDiagHistory”获取。
504
+ # @type EventId: Integer
505
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
506
+ # @type Product: String
507
+
508
+ attr_accessor :InstanceId, :EventId, :Product
509
+
510
+ def initialize(instanceid=nil, eventid=nil, product=nil)
511
+ @InstanceId = instanceid
512
+ @EventId = eventid
513
+ @Product = product
514
+ end
515
+
516
+ def deserialize(params)
517
+ @InstanceId = params['InstanceId']
518
+ @EventId = params['EventId']
519
+ @Product = params['Product']
520
+ end
521
+ end
522
+
523
+ # DescribeDBDiagEvent返回参数结构体
524
+ class DescribeDBDiagEventResponse < TencentCloud::Common::AbstractModel
525
+ # @param DiagItem: 诊断项。
526
+ # @type DiagItem: String
527
+ # @param DiagType: 诊断类型。
528
+ # @type DiagType: String
529
+ # @param EventId: 事件 ID 。
530
+ # @type EventId: Integer
531
+ # @param Explanation: 事件详情。
532
+ # @type Explanation: String
533
+ # @param Outline: 概要。
534
+ # @type Outline: String
535
+ # @param Problem: 诊断出的问题。
536
+ # @type Problem: String
537
+ # @param Severity: 严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。
538
+ # @type Severity: Integer
539
+ # @param StartTime: 开始时间
540
+ # @type StartTime: String
541
+ # @param Suggestions: 建议。
542
+ # @type Suggestions: String
543
+ # @param Metric: 保留字段。
544
+ # 注意:此字段可能返回 null,表示取不到有效值。
545
+ # @type Metric: String
546
+ # @param EndTime: 结束时间。
547
+ # @type EndTime: String
548
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
549
+ # @type RequestId: String
550
+
551
+ attr_accessor :DiagItem, :DiagType, :EventId, :Explanation, :Outline, :Problem, :Severity, :StartTime, :Suggestions, :Metric, :EndTime, :RequestId
552
+
553
+ def initialize(diagitem=nil, diagtype=nil, eventid=nil, explanation=nil, outline=nil, problem=nil, severity=nil, starttime=nil, suggestions=nil, metric=nil, endtime=nil, requestid=nil)
554
+ @DiagItem = diagitem
555
+ @DiagType = diagtype
556
+ @EventId = eventid
557
+ @Explanation = explanation
558
+ @Outline = outline
559
+ @Problem = problem
560
+ @Severity = severity
561
+ @StartTime = starttime
562
+ @Suggestions = suggestions
563
+ @Metric = metric
564
+ @EndTime = endtime
565
+ @RequestId = requestid
566
+ end
567
+
568
+ def deserialize(params)
569
+ @DiagItem = params['DiagItem']
570
+ @DiagType = params['DiagType']
571
+ @EventId = params['EventId']
572
+ @Explanation = params['Explanation']
573
+ @Outline = params['Outline']
574
+ @Problem = params['Problem']
575
+ @Severity = params['Severity']
576
+ @StartTime = params['StartTime']
577
+ @Suggestions = params['Suggestions']
578
+ @Metric = params['Metric']
579
+ @EndTime = params['EndTime']
580
+ @RequestId = params['RequestId']
581
+ end
582
+ end
583
+
584
+ # DescribeDBDiagHistory请求参数结构体
585
+ class DescribeDBDiagHistoryRequest < TencentCloud::Common::AbstractModel
586
+ # @param InstanceId: 实例 ID 。
587
+ # @type InstanceId: String
588
+ # @param StartTime: 开始时间,如“2019-09-10 12:13:14”。
589
+ # @type StartTime: String
590
+ # @param EndTime: 结束时间,如“2019-09-11 12:13:14”,结束时间与开始时间的间隔最大可为2天。
591
+ # @type EndTime: String
592
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
593
+ # @type Product: String
594
+
595
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Product
596
+
597
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil)
598
+ @InstanceId = instanceid
599
+ @StartTime = starttime
600
+ @EndTime = endtime
601
+ @Product = product
602
+ end
603
+
604
+ def deserialize(params)
605
+ @InstanceId = params['InstanceId']
606
+ @StartTime = params['StartTime']
607
+ @EndTime = params['EndTime']
608
+ @Product = params['Product']
609
+ end
610
+ end
611
+
612
+ # DescribeDBDiagHistory返回参数结构体
613
+ class DescribeDBDiagHistoryResponse < TencentCloud::Common::AbstractModel
614
+ # @param Events: 事件描述。
615
+ # @type Events: Array
616
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
617
+ # @type RequestId: String
618
+
619
+ attr_accessor :Events, :RequestId
620
+
621
+ def initialize(events=nil, requestid=nil)
622
+ @Events = events
623
+ @RequestId = requestid
624
+ end
625
+
626
+ def deserialize(params)
627
+ unless params['Events'].nil?
628
+ @Events = []
629
+ params['Events'].each do |i|
630
+ diaghistoryeventitem_tmp = DiagHistoryEventItem.new
631
+ diaghistoryeventitem_tmp.deserialize(i)
632
+ @Events << diaghistoryeventitem_tmp
633
+ end
634
+ end
635
+ @RequestId = params['RequestId']
636
+ end
637
+ end
638
+
639
+ # DescribeDBDiagReportTasks请求参数结构体
640
+ class DescribeDBDiagReportTasksRequest < TencentCloud::Common::AbstractModel
641
+ # @param StartTime: 第一个任务的开始时间,用于范围查询,时间格式如:2019-09-10 12:13:14。
642
+ # @type StartTime: String
643
+ # @param EndTime: 最后一个任务的开始时间,用于范围查询,时间格式如:2019-09-10 12:13:14。
644
+ # @type EndTime: String
645
+ # @param InstanceIds: 实例ID数组,用于筛选指定实例的任务列表。
646
+ # @type InstanceIds: Array
647
+ # @param Sources: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。
648
+ # @type Sources: Array
649
+ # @param HealthLevels: 报告的健康等级,支持的取值包括:"HEALTH" - 健康;"SUB_HEALTH" - 亚健康;"RISK" - 危险;"HIGH_RISK" - 高危。
650
+ # @type HealthLevels: String
651
+ # @param TaskStatuses: 任务的状态,支持的取值包括:"created" - 新建;"chosen" - 待执行; "running" - 执行中;"failed" - 失败;"finished" - 已完成。
652
+ # @type TaskStatuses: String
653
+ # @param Offset: 偏移量,默认0。
654
+ # @type Offset: Integer
655
+ # @param Limit: 返回数量,默认20。
656
+ # @type Limit: Integer
657
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
658
+ # @type Product: String
659
+
660
+ attr_accessor :StartTime, :EndTime, :InstanceIds, :Sources, :HealthLevels, :TaskStatuses, :Offset, :Limit, :Product
661
+
662
+ def initialize(starttime=nil, endtime=nil, instanceids=nil, sources=nil, healthlevels=nil, taskstatuses=nil, offset=nil, limit=nil, product=nil)
663
+ @StartTime = starttime
664
+ @EndTime = endtime
665
+ @InstanceIds = instanceids
666
+ @Sources = sources
667
+ @HealthLevels = healthlevels
668
+ @TaskStatuses = taskstatuses
669
+ @Offset = offset
670
+ @Limit = limit
671
+ @Product = product
672
+ end
673
+
674
+ def deserialize(params)
675
+ @StartTime = params['StartTime']
676
+ @EndTime = params['EndTime']
677
+ @InstanceIds = params['InstanceIds']
678
+ @Sources = params['Sources']
679
+ @HealthLevels = params['HealthLevels']
680
+ @TaskStatuses = params['TaskStatuses']
681
+ @Offset = params['Offset']
682
+ @Limit = params['Limit']
683
+ @Product = params['Product']
684
+ end
685
+ end
686
+
687
+ # DescribeDBDiagReportTasks返回参数结构体
688
+ class DescribeDBDiagReportTasksResponse < TencentCloud::Common::AbstractModel
689
+ # @param TotalCount: 任务总数目。
690
+ # @type TotalCount: Integer
691
+ # @param Tasks: 任务列表。
692
+ # @type Tasks: Array
693
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
694
+ # @type RequestId: String
695
+
696
+ attr_accessor :TotalCount, :Tasks, :RequestId
697
+
698
+ def initialize(totalcount=nil, tasks=nil, requestid=nil)
699
+ @TotalCount = totalcount
700
+ @Tasks = tasks
701
+ @RequestId = requestid
702
+ end
703
+
704
+ def deserialize(params)
705
+ @TotalCount = params['TotalCount']
706
+ unless params['Tasks'].nil?
707
+ @Tasks = []
708
+ params['Tasks'].each do |i|
709
+ healthreporttask_tmp = HealthReportTask.new
710
+ healthreporttask_tmp.deserialize(i)
711
+ @Tasks << healthreporttask_tmp
712
+ end
713
+ end
714
+ @RequestId = params['RequestId']
715
+ end
716
+ end
717
+
718
+ # DescribeDBSpaceStatus请求参数结构体
719
+ class DescribeDBSpaceStatusRequest < TencentCloud::Common::AbstractModel
720
+ # @param InstanceId: 实例 ID 。
721
+ # @type InstanceId: String
722
+ # @param RangeDays: 时间段天数,截止日期为当日,默认为7天。
723
+ # @type RangeDays: Integer
724
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
725
+ # @type Product: String
726
+
727
+ attr_accessor :InstanceId, :RangeDays, :Product
728
+
729
+ def initialize(instanceid=nil, rangedays=nil, product=nil)
730
+ @InstanceId = instanceid
731
+ @RangeDays = rangedays
732
+ @Product = product
733
+ end
734
+
735
+ def deserialize(params)
736
+ @InstanceId = params['InstanceId']
737
+ @RangeDays = params['RangeDays']
738
+ @Product = params['Product']
739
+ end
740
+ end
741
+
742
+ # DescribeDBSpaceStatus返回参数结构体
743
+ class DescribeDBSpaceStatusResponse < TencentCloud::Common::AbstractModel
744
+ # @param Growth: 磁盘增长量(MB)。
745
+ # @type Growth: Integer
746
+ # @param Remain: 磁盘剩余(MB)。
747
+ # @type Remain: Integer
748
+ # @param Total: 磁盘总量(MB)。
749
+ # @type Total: Integer
750
+ # @param AvailableDays: 预计可用天数。
751
+ # @type AvailableDays: Integer
752
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
753
+ # @type RequestId: String
754
+
755
+ attr_accessor :Growth, :Remain, :Total, :AvailableDays, :RequestId
756
+
757
+ def initialize(growth=nil, remain=nil, total=nil, availabledays=nil, requestid=nil)
758
+ @Growth = growth
759
+ @Remain = remain
760
+ @Total = total
761
+ @AvailableDays = availabledays
762
+ @RequestId = requestid
763
+ end
764
+
765
+ def deserialize(params)
766
+ @Growth = params['Growth']
767
+ @Remain = params['Remain']
768
+ @Total = params['Total']
769
+ @AvailableDays = params['AvailableDays']
770
+ @RequestId = params['RequestId']
771
+ end
772
+ end
773
+
774
+ # DescribeDiagDBInstances请求参数结构体
775
+ class DescribeDiagDBInstancesRequest < TencentCloud::Common::AbstractModel
776
+ # @param IsSupported: 是否是DBbrain支持的实例,固定传 true。
777
+ # @type IsSupported: Boolean
778
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
779
+ # @type Product: String
780
+ # @param Offset: 分页参数,偏移量。
781
+ # @type Offset: Integer
782
+ # @param Limit: 分页参数,分页值。
783
+ # @type Limit: Integer
784
+ # @param InstanceNames: 根据实例名称条件查询。
785
+ # @type InstanceNames: Array
786
+ # @param InstanceIds: 根据实例ID条件查询。
787
+ # @type InstanceIds: Array
788
+ # @param Regions: 根据地域条件查询。
789
+ # @type Regions: Array
790
+
791
+ attr_accessor :IsSupported, :Product, :Offset, :Limit, :InstanceNames, :InstanceIds, :Regions
792
+
793
+ def initialize(issupported=nil, product=nil, offset=nil, limit=nil, instancenames=nil, instanceids=nil, regions=nil)
794
+ @IsSupported = issupported
795
+ @Product = product
796
+ @Offset = offset
797
+ @Limit = limit
798
+ @InstanceNames = instancenames
799
+ @InstanceIds = instanceids
800
+ @Regions = regions
801
+ end
802
+
803
+ def deserialize(params)
804
+ @IsSupported = params['IsSupported']
805
+ @Product = params['Product']
806
+ @Offset = params['Offset']
807
+ @Limit = params['Limit']
808
+ @InstanceNames = params['InstanceNames']
809
+ @InstanceIds = params['InstanceIds']
810
+ @Regions = params['Regions']
811
+ end
812
+ end
813
+
814
+ # DescribeDiagDBInstances返回参数结构体
815
+ class DescribeDiagDBInstancesResponse < TencentCloud::Common::AbstractModel
816
+ # @param TotalCount: 实例总数。
817
+ # @type TotalCount: Integer
818
+ # @param DbScanStatus: 全实例巡检状态:0:开启全实例巡检;1:未开启全实例巡检。
819
+ # @type DbScanStatus: Integer
820
+ # @param Items: 实例相关信息。
821
+ # @type Items: Array
822
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
823
+ # @type RequestId: String
824
+
825
+ attr_accessor :TotalCount, :DbScanStatus, :Items, :RequestId
826
+
827
+ def initialize(totalcount=nil, dbscanstatus=nil, items=nil, requestid=nil)
828
+ @TotalCount = totalcount
829
+ @DbScanStatus = dbscanstatus
830
+ @Items = items
831
+ @RequestId = requestid
832
+ end
833
+
834
+ def deserialize(params)
835
+ @TotalCount = params['TotalCount']
836
+ @DbScanStatus = params['DbScanStatus']
837
+ unless params['Items'].nil?
838
+ @Items = []
839
+ params['Items'].each do |i|
840
+ instanceinfo_tmp = InstanceInfo.new
841
+ instanceinfo_tmp.deserialize(i)
842
+ @Items << instanceinfo_tmp
843
+ end
844
+ end
845
+ @RequestId = params['RequestId']
846
+ end
847
+ end
848
+
849
+ # DescribeHealthScore请求参数结构体
850
+ class DescribeHealthScoreRequest < TencentCloud::Common::AbstractModel
851
+ # @param InstanceId: 需要获取健康得分的实例ID。
852
+ # @type InstanceId: String
853
+ # @param Time: 获取健康得分的时间。
854
+ # @type Time: String
855
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
856
+ # @type Product: String
857
+
858
+ attr_accessor :InstanceId, :Time, :Product
859
+
860
+ def initialize(instanceid=nil, time=nil, product=nil)
861
+ @InstanceId = instanceid
862
+ @Time = time
863
+ @Product = product
864
+ end
865
+
866
+ def deserialize(params)
867
+ @InstanceId = params['InstanceId']
868
+ @Time = params['Time']
869
+ @Product = params['Product']
870
+ end
871
+ end
872
+
873
+ # DescribeHealthScore返回参数结构体
874
+ class DescribeHealthScoreResponse < TencentCloud::Common::AbstractModel
875
+ # @param Data: 健康得分以及异常扣分项。
876
+ # @type Data: :class:`Tencentcloud::Dbbrain.v20191016.models.HealthScoreInfo`
877
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
878
+ # @type RequestId: String
879
+
880
+ attr_accessor :Data, :RequestId
881
+
882
+ def initialize(data=nil, requestid=nil)
883
+ @Data = data
884
+ @RequestId = requestid
885
+ end
886
+
887
+ def deserialize(params)
888
+ unless params['Data'].nil?
889
+ @Data = HealthScoreInfo.new
890
+ @Data.deserialize(params['Data'])
891
+ end
892
+ @RequestId = params['RequestId']
893
+ end
894
+ end
895
+
896
+ # DescribeMailProfile请求参数结构体
897
+ class DescribeMailProfileRequest < TencentCloud::Common::AbstractModel
898
+ # @param ProfileType: 配置类型,支持值包括:"dbScan_mail_configuration" - 数据库巡检邮件配置,"scheduler_mail_configuration" - 定期生成邮件配置。
899
+ # @type ProfileType: String
900
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
901
+ # @type Product: String
902
+ # @param Offset: 分页偏移量。
903
+ # @type Offset: Integer
904
+ # @param Limit: 分页单位,最大支持50。
905
+ # @type Limit: Integer
906
+ # @param ProfileName: 根据邮件配置名称查询,定期发送的邮件配置名称遵循:"scheduler_"+{instanceId}的规则。
907
+ # @type ProfileName: String
908
+
909
+ attr_accessor :ProfileType, :Product, :Offset, :Limit, :ProfileName
910
+
911
+ def initialize(profiletype=nil, product=nil, offset=nil, limit=nil, profilename=nil)
912
+ @ProfileType = profiletype
913
+ @Product = product
914
+ @Offset = offset
915
+ @Limit = limit
916
+ @ProfileName = profilename
917
+ end
918
+
919
+ def deserialize(params)
920
+ @ProfileType = params['ProfileType']
921
+ @Product = params['Product']
922
+ @Offset = params['Offset']
923
+ @Limit = params['Limit']
924
+ @ProfileName = params['ProfileName']
925
+ end
926
+ end
927
+
928
+ # DescribeMailProfile返回参数结构体
929
+ class DescribeMailProfileResponse < TencentCloud::Common::AbstractModel
930
+ # @param ProfileList: 邮件配置详情。
931
+ # 注意:此字段可能返回 null,表示取不到有效值。
932
+ # @type ProfileList: Array
933
+ # @param TotalCount: 邮件模版总数。
934
+ # 注意:此字段可能返回 null,表示取不到有效值。
935
+ # @type TotalCount: Integer
936
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
937
+ # @type RequestId: String
938
+
939
+ attr_accessor :ProfileList, :TotalCount, :RequestId
940
+
941
+ def initialize(profilelist=nil, totalcount=nil, requestid=nil)
942
+ @ProfileList = profilelist
943
+ @TotalCount = totalcount
944
+ @RequestId = requestid
945
+ end
946
+
947
+ def deserialize(params)
948
+ unless params['ProfileList'].nil?
949
+ @ProfileList = []
950
+ params['ProfileList'].each do |i|
951
+ userprofile_tmp = UserProfile.new
952
+ userprofile_tmp.deserialize(i)
953
+ @ProfileList << userprofile_tmp
954
+ end
955
+ end
956
+ @TotalCount = params['TotalCount']
957
+ @RequestId = params['RequestId']
958
+ end
959
+ end
960
+
961
+ # DescribeSecurityAuditLogDownloadUrls请求参数结构体
962
+ class DescribeSecurityAuditLogDownloadUrlsRequest < TencentCloud::Common::AbstractModel
963
+ # @param SecAuditGroupId: 安全审计组Id。
964
+ # @type SecAuditGroupId: String
965
+ # @param AsyncRequestId: 异步任务Id。
966
+ # @type AsyncRequestId: Integer
967
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL。
968
+ # @type Product: String
969
+
970
+ attr_accessor :SecAuditGroupId, :AsyncRequestId, :Product
971
+
972
+ def initialize(secauditgroupid=nil, asyncrequestid=nil, product=nil)
973
+ @SecAuditGroupId = secauditgroupid
974
+ @AsyncRequestId = asyncrequestid
975
+ @Product = product
976
+ end
977
+
978
+ def deserialize(params)
979
+ @SecAuditGroupId = params['SecAuditGroupId']
980
+ @AsyncRequestId = params['AsyncRequestId']
981
+ @Product = params['Product']
982
+ end
983
+ end
984
+
985
+ # DescribeSecurityAuditLogDownloadUrls返回参数结构体
986
+ class DescribeSecurityAuditLogDownloadUrlsResponse < TencentCloud::Common::AbstractModel
987
+ # @param Urls: 导出结果的COS链接列表。当结果集很大时,可能会切分为多个url下载。
988
+ # @type Urls: Array
989
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
990
+ # @type RequestId: String
991
+
992
+ attr_accessor :Urls, :RequestId
993
+
994
+ def initialize(urls=nil, requestid=nil)
995
+ @Urls = urls
996
+ @RequestId = requestid
997
+ end
998
+
999
+ def deserialize(params)
1000
+ @Urls = params['Urls']
1001
+ @RequestId = params['RequestId']
1002
+ end
1003
+ end
1004
+
1005
+ # DescribeSecurityAuditLogExportTasks请求参数结构体
1006
+ class DescribeSecurityAuditLogExportTasksRequest < TencentCloud::Common::AbstractModel
1007
+ # @param SecAuditGroupId: 安全审计组Id。
1008
+ # @type SecAuditGroupId: String
1009
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL。
1010
+ # @type Product: String
1011
+ # @param AsyncRequestIds: 日志导出任务Id列表。
1012
+ # @type AsyncRequestIds: Array
1013
+ # @param Offset: 偏移量,默认0。
1014
+ # @type Offset: Integer
1015
+ # @param Limit: 返回数量,默认20。
1016
+ # @type Limit: Integer
1017
+
1018
+ attr_accessor :SecAuditGroupId, :Product, :AsyncRequestIds, :Offset, :Limit
1019
+
1020
+ def initialize(secauditgroupid=nil, product=nil, asyncrequestids=nil, offset=nil, limit=nil)
1021
+ @SecAuditGroupId = secauditgroupid
1022
+ @Product = product
1023
+ @AsyncRequestIds = asyncrequestids
1024
+ @Offset = offset
1025
+ @Limit = limit
1026
+ end
1027
+
1028
+ def deserialize(params)
1029
+ @SecAuditGroupId = params['SecAuditGroupId']
1030
+ @Product = params['Product']
1031
+ @AsyncRequestIds = params['AsyncRequestIds']
1032
+ @Offset = params['Offset']
1033
+ @Limit = params['Limit']
1034
+ end
1035
+ end
1036
+
1037
+ # DescribeSecurityAuditLogExportTasks返回参数结构体
1038
+ class DescribeSecurityAuditLogExportTasksResponse < TencentCloud::Common::AbstractModel
1039
+ # @param Tasks: 安全审计日志导出任务列表。
1040
+ # @type Tasks: Array
1041
+ # @param TotalCount: 安全审计日志导出任务总数。
1042
+ # @type TotalCount: Integer
1043
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1044
+ # @type RequestId: String
1045
+
1046
+ attr_accessor :Tasks, :TotalCount, :RequestId
1047
+
1048
+ def initialize(tasks=nil, totalcount=nil, requestid=nil)
1049
+ @Tasks = tasks
1050
+ @TotalCount = totalcount
1051
+ @RequestId = requestid
1052
+ end
1053
+
1054
+ def deserialize(params)
1055
+ unless params['Tasks'].nil?
1056
+ @Tasks = []
1057
+ params['Tasks'].each do |i|
1058
+ seclogexporttaskinfo_tmp = SecLogExportTaskInfo.new
1059
+ seclogexporttaskinfo_tmp.deserialize(i)
1060
+ @Tasks << seclogexporttaskinfo_tmp
1061
+ end
1062
+ end
1063
+ @TotalCount = params['TotalCount']
1064
+ @RequestId = params['RequestId']
1065
+ end
1066
+ end
1067
+
1068
+ # DescribeSlowLogTimeSeriesStats请求参数结构体
1069
+ class DescribeSlowLogTimeSeriesStatsRequest < TencentCloud::Common::AbstractModel
1070
+ # @param InstanceId: 实例 ID 。
1071
+ # @type InstanceId: String
1072
+ # @param StartTime: 开始时间,如“2019-09-10 12:13:14”。
1073
+ # @type StartTime: String
1074
+ # @param EndTime: 结束时间,如“2019-09-10 12:13:14”,结束时间与开始时间的间隔最大可为7天。
1075
+ # @type EndTime: String
1076
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1077
+ # @type Product: String
1078
+
1079
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Product
1080
+
1081
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil)
1082
+ @InstanceId = instanceid
1083
+ @StartTime = starttime
1084
+ @EndTime = endtime
1085
+ @Product = product
1086
+ end
1087
+
1088
+ def deserialize(params)
1089
+ @InstanceId = params['InstanceId']
1090
+ @StartTime = params['StartTime']
1091
+ @EndTime = params['EndTime']
1092
+ @Product = params['Product']
1093
+ end
1094
+ end
1095
+
1096
+ # DescribeSlowLogTimeSeriesStats返回参数结构体
1097
+ class DescribeSlowLogTimeSeriesStatsResponse < TencentCloud::Common::AbstractModel
1098
+ # @param Period: 柱间单位时间间隔,单位为秒。
1099
+ # @type Period: Integer
1100
+ # @param TimeSeries: 单位时间间隔内慢日志数量统计。
1101
+ # @type TimeSeries: Array
1102
+ # @param SeriesData: 单位时间间隔内的实例 cpu 利用率监控数据。
1103
+ # @type SeriesData: :class:`Tencentcloud::Dbbrain.v20191016.models.MonitorMetricSeriesData`
1104
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1105
+ # @type RequestId: String
1106
+
1107
+ attr_accessor :Period, :TimeSeries, :SeriesData, :RequestId
1108
+
1109
+ def initialize(period=nil, timeseries=nil, seriesdata=nil, requestid=nil)
1110
+ @Period = period
1111
+ @TimeSeries = timeseries
1112
+ @SeriesData = seriesdata
1113
+ @RequestId = requestid
1114
+ end
1115
+
1116
+ def deserialize(params)
1117
+ @Period = params['Period']
1118
+ unless params['TimeSeries'].nil?
1119
+ @TimeSeries = []
1120
+ params['TimeSeries'].each do |i|
1121
+ timeslice_tmp = TimeSlice.new
1122
+ timeslice_tmp.deserialize(i)
1123
+ @TimeSeries << timeslice_tmp
1124
+ end
1125
+ end
1126
+ unless params['SeriesData'].nil?
1127
+ @SeriesData = MonitorMetricSeriesData.new
1128
+ @SeriesData.deserialize(params['SeriesData'])
1129
+ end
1130
+ @RequestId = params['RequestId']
1131
+ end
1132
+ end
1133
+
1134
+ # DescribeSlowLogTopSqls请求参数结构体
1135
+ class DescribeSlowLogTopSqlsRequest < TencentCloud::Common::AbstractModel
1136
+ # @param InstanceId: 实例 ID 。
1137
+ # @type InstanceId: String
1138
+ # @param StartTime: 开始时间,如“2019-09-10 12:13:14”。
1139
+ # @type StartTime: String
1140
+ # @param EndTime: 截止时间,如“2019-09-10 12:13:14”,截止时间与开始时间的间隔最大可为7天。
1141
+ # @type EndTime: String
1142
+ # @param SortBy: 排序键,目前支持 QueryTime,ExecTimes,RowsSent,LockTime以及RowsExamined 等排序键。
1143
+ # @type SortBy: String
1144
+ # @param OrderBy: 排序方式,支持ASC(升序)以及DESC(降序)。
1145
+ # @type OrderBy: String
1146
+ # @param Limit: 返回数量,默认为20,最大值为100。
1147
+ # @type Limit: Integer
1148
+ # @param Offset: 偏移量,默认为0。
1149
+ # @type Offset: Integer
1150
+ # @param SchemaList: 数据库名称数组。
1151
+ # @type SchemaList: Array
1152
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1153
+ # @type Product: String
1154
+
1155
+ attr_accessor :InstanceId, :StartTime, :EndTime, :SortBy, :OrderBy, :Limit, :Offset, :SchemaList, :Product
1156
+
1157
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, sortby=nil, orderby=nil, limit=nil, offset=nil, schemalist=nil, product=nil)
1158
+ @InstanceId = instanceid
1159
+ @StartTime = starttime
1160
+ @EndTime = endtime
1161
+ @SortBy = sortby
1162
+ @OrderBy = orderby
1163
+ @Limit = limit
1164
+ @Offset = offset
1165
+ @SchemaList = schemalist
1166
+ @Product = product
1167
+ end
1168
+
1169
+ def deserialize(params)
1170
+ @InstanceId = params['InstanceId']
1171
+ @StartTime = params['StartTime']
1172
+ @EndTime = params['EndTime']
1173
+ @SortBy = params['SortBy']
1174
+ @OrderBy = params['OrderBy']
1175
+ @Limit = params['Limit']
1176
+ @Offset = params['Offset']
1177
+ unless params['SchemaList'].nil?
1178
+ @SchemaList = []
1179
+ params['SchemaList'].each do |i|
1180
+ schemaitem_tmp = SchemaItem.new
1181
+ schemaitem_tmp.deserialize(i)
1182
+ @SchemaList << schemaitem_tmp
1183
+ end
1184
+ end
1185
+ @Product = params['Product']
1186
+ end
1187
+ end
1188
+
1189
+ # DescribeSlowLogTopSqls返回参数结构体
1190
+ class DescribeSlowLogTopSqlsResponse < TencentCloud::Common::AbstractModel
1191
+ # @param TotalCount: 符合条件的记录总数。
1192
+ # @type TotalCount: Integer
1193
+ # @param Rows: 慢日志 top sql 列表
1194
+ # @type Rows: Array
1195
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1196
+ # @type RequestId: String
1197
+
1198
+ attr_accessor :TotalCount, :Rows, :RequestId
1199
+
1200
+ def initialize(totalcount=nil, rows=nil, requestid=nil)
1201
+ @TotalCount = totalcount
1202
+ @Rows = rows
1203
+ @RequestId = requestid
1204
+ end
1205
+
1206
+ def deserialize(params)
1207
+ @TotalCount = params['TotalCount']
1208
+ unless params['Rows'].nil?
1209
+ @Rows = []
1210
+ params['Rows'].each do |i|
1211
+ slowlogtopsqlitem_tmp = SlowLogTopSqlItem.new
1212
+ slowlogtopsqlitem_tmp.deserialize(i)
1213
+ @Rows << slowlogtopsqlitem_tmp
1214
+ end
1215
+ end
1216
+ @RequestId = params['RequestId']
1217
+ end
1218
+ end
1219
+
1220
+ # DescribeSlowLogUserHostStats请求参数结构体
1221
+ class DescribeSlowLogUserHostStatsRequest < TencentCloud::Common::AbstractModel
1222
+ # @param InstanceId: 实例ID。
1223
+ # @type InstanceId: String
1224
+ # @param StartTime: 查询范围的开始时间,时间格式如:2019-09-10 12:13:14。
1225
+ # @type StartTime: String
1226
+ # @param EndTime: 查询范围的结束时间,时间格式如:2019-09-10 12:13:14。
1227
+ # @type EndTime: String
1228
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
1229
+ # @type Product: String
1230
+
1231
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Product
1232
+
1233
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil)
1234
+ @InstanceId = instanceid
1235
+ @StartTime = starttime
1236
+ @EndTime = endtime
1237
+ @Product = product
1238
+ end
1239
+
1240
+ def deserialize(params)
1241
+ @InstanceId = params['InstanceId']
1242
+ @StartTime = params['StartTime']
1243
+ @EndTime = params['EndTime']
1244
+ @Product = params['Product']
1245
+ end
1246
+ end
1247
+
1248
+ # DescribeSlowLogUserHostStats返回参数结构体
1249
+ class DescribeSlowLogUserHostStatsResponse < TencentCloud::Common::AbstractModel
1250
+ # @param TotalCount: 来源地址数目。
1251
+ # @type TotalCount: Integer
1252
+ # @param Items: 各来源地址的慢日志占比详情列表。
1253
+ # @type Items: Array
1254
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1255
+ # @type RequestId: String
1256
+
1257
+ attr_accessor :TotalCount, :Items, :RequestId
1258
+
1259
+ def initialize(totalcount=nil, items=nil, requestid=nil)
1260
+ @TotalCount = totalcount
1261
+ @Items = items
1262
+ @RequestId = requestid
1263
+ end
1264
+
1265
+ def deserialize(params)
1266
+ @TotalCount = params['TotalCount']
1267
+ unless params['Items'].nil?
1268
+ @Items = []
1269
+ params['Items'].each do |i|
1270
+ slowloghost_tmp = SlowLogHost.new
1271
+ slowloghost_tmp.deserialize(i)
1272
+ @Items << slowloghost_tmp
1273
+ end
1274
+ end
1275
+ @RequestId = params['RequestId']
1276
+ end
1277
+ end
1278
+
1279
+ # DescribeTopSpaceSchemaTimeSeries请求参数结构体
1280
+ class DescribeTopSpaceSchemaTimeSeriesRequest < TencentCloud::Common::AbstractModel
1281
+ # @param InstanceId: 实例ID。
1282
+ # @type InstanceId: String
1283
+ # @param Limit: 返回的Top库数量,最大值为100,默认为20。
1284
+ # @type Limit: Integer
1285
+ # @param SortBy: 筛选Top库所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize(仅云数据库 MySQL实例支持),云数据库 MySQL实例默认为 PhysicalFileSize,其他产品实例默认为TotalLength。
1286
+ # @type SortBy: String
1287
+ # @param StartDate: 开始日期,如“2021-01-01”,最早为当日的前第29天,默认为截止日期的前第6天。
1288
+ # @type StartDate: String
1289
+ # @param EndDate: 截止日期,如“2021-01-01”,最早为当日的前第29天,默认为当日。
1290
+ # @type EndDate: String
1291
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1292
+ # @type Product: String
1293
+
1294
+ attr_accessor :InstanceId, :Limit, :SortBy, :StartDate, :EndDate, :Product
1295
+
1296
+ def initialize(instanceid=nil, limit=nil, sortby=nil, startdate=nil, enddate=nil, product=nil)
1297
+ @InstanceId = instanceid
1298
+ @Limit = limit
1299
+ @SortBy = sortby
1300
+ @StartDate = startdate
1301
+ @EndDate = enddate
1302
+ @Product = product
1303
+ end
1304
+
1305
+ def deserialize(params)
1306
+ @InstanceId = params['InstanceId']
1307
+ @Limit = params['Limit']
1308
+ @SortBy = params['SortBy']
1309
+ @StartDate = params['StartDate']
1310
+ @EndDate = params['EndDate']
1311
+ @Product = params['Product']
1312
+ end
1313
+ end
1314
+
1315
+ # DescribeTopSpaceSchemaTimeSeries返回参数结构体
1316
+ class DescribeTopSpaceSchemaTimeSeriesResponse < TencentCloud::Common::AbstractModel
1317
+ # @param TopSpaceSchemaTimeSeries: 返回的Top库空间统计信息的时序数据列表。
1318
+ # @type TopSpaceSchemaTimeSeries: Array
1319
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1320
+ # @type RequestId: String
1321
+
1322
+ attr_accessor :TopSpaceSchemaTimeSeries, :RequestId
1323
+
1324
+ def initialize(topspaceschematimeseries=nil, requestid=nil)
1325
+ @TopSpaceSchemaTimeSeries = topspaceschematimeseries
1326
+ @RequestId = requestid
1327
+ end
1328
+
1329
+ def deserialize(params)
1330
+ unless params['TopSpaceSchemaTimeSeries'].nil?
1331
+ @TopSpaceSchemaTimeSeries = []
1332
+ params['TopSpaceSchemaTimeSeries'].each do |i|
1333
+ schemaspacetimeseries_tmp = SchemaSpaceTimeSeries.new
1334
+ schemaspacetimeseries_tmp.deserialize(i)
1335
+ @TopSpaceSchemaTimeSeries << schemaspacetimeseries_tmp
1336
+ end
1337
+ end
1338
+ @RequestId = params['RequestId']
1339
+ end
1340
+ end
1341
+
1342
+ # DescribeTopSpaceSchemas请求参数结构体
1343
+ class DescribeTopSpaceSchemasRequest < TencentCloud::Common::AbstractModel
1344
+ # @param InstanceId: 实例 ID 。
1345
+ # @type InstanceId: String
1346
+ # @param Limit: 返回的Top库数量,最大值为100,默认为20。
1347
+ # @type Limit: Integer
1348
+ # @param SortBy: 筛选Top库所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize(仅云数据库 MySQL实例支持),云数据库 MySQL实例默认为 PhysicalFileSize,其他产品实例默认为TotalLength。
1349
+ # @type SortBy: String
1350
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1351
+ # @type Product: String
1352
+
1353
+ attr_accessor :InstanceId, :Limit, :SortBy, :Product
1354
+
1355
+ def initialize(instanceid=nil, limit=nil, sortby=nil, product=nil)
1356
+ @InstanceId = instanceid
1357
+ @Limit = limit
1358
+ @SortBy = sortby
1359
+ @Product = product
1360
+ end
1361
+
1362
+ def deserialize(params)
1363
+ @InstanceId = params['InstanceId']
1364
+ @Limit = params['Limit']
1365
+ @SortBy = params['SortBy']
1366
+ @Product = params['Product']
1367
+ end
1368
+ end
1369
+
1370
+ # DescribeTopSpaceSchemas返回参数结构体
1371
+ class DescribeTopSpaceSchemasResponse < TencentCloud::Common::AbstractModel
1372
+ # @param TopSpaceSchemas: 返回的Top库空间统计信息列表。
1373
+ # @type TopSpaceSchemas: Array
1374
+ # @param Timestamp: 采集库空间数据的时间戳(秒)。
1375
+ # @type Timestamp: Integer
1376
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1377
+ # @type RequestId: String
1378
+
1379
+ attr_accessor :TopSpaceSchemas, :Timestamp, :RequestId
1380
+
1381
+ def initialize(topspaceschemas=nil, timestamp=nil, requestid=nil)
1382
+ @TopSpaceSchemas = topspaceschemas
1383
+ @Timestamp = timestamp
1384
+ @RequestId = requestid
1385
+ end
1386
+
1387
+ def deserialize(params)
1388
+ unless params['TopSpaceSchemas'].nil?
1389
+ @TopSpaceSchemas = []
1390
+ params['TopSpaceSchemas'].each do |i|
1391
+ schemaspacedata_tmp = SchemaSpaceData.new
1392
+ schemaspacedata_tmp.deserialize(i)
1393
+ @TopSpaceSchemas << schemaspacedata_tmp
1394
+ end
1395
+ end
1396
+ @Timestamp = params['Timestamp']
1397
+ @RequestId = params['RequestId']
1398
+ end
1399
+ end
1400
+
1401
+ # DescribeTopSpaceTableTimeSeries请求参数结构体
1402
+ class DescribeTopSpaceTableTimeSeriesRequest < TencentCloud::Common::AbstractModel
1403
+ # @param InstanceId: 实例 ID 。
1404
+ # @type InstanceId: String
1405
+ # @param Limit: 返回的Top表数量,最大值为100,默认为20。
1406
+ # @type Limit: Integer
1407
+ # @param SortBy: 筛选Top表所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize,默认为 PhysicalFileSize。
1408
+ # @type SortBy: String
1409
+ # @param StartDate: 开始日期,如“2021-01-01”,最早为当日的前第29天,默认为截止日期的前第6天。
1410
+ # @type StartDate: String
1411
+ # @param EndDate: 截止日期,如“2021-01-01”,最早为当日的前第29天,默认为当日。
1412
+ # @type EndDate: String
1413
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1414
+ # @type Product: String
1415
+
1416
+ attr_accessor :InstanceId, :Limit, :SortBy, :StartDate, :EndDate, :Product
1417
+
1418
+ def initialize(instanceid=nil, limit=nil, sortby=nil, startdate=nil, enddate=nil, product=nil)
1419
+ @InstanceId = instanceid
1420
+ @Limit = limit
1421
+ @SortBy = sortby
1422
+ @StartDate = startdate
1423
+ @EndDate = enddate
1424
+ @Product = product
1425
+ end
1426
+
1427
+ def deserialize(params)
1428
+ @InstanceId = params['InstanceId']
1429
+ @Limit = params['Limit']
1430
+ @SortBy = params['SortBy']
1431
+ @StartDate = params['StartDate']
1432
+ @EndDate = params['EndDate']
1433
+ @Product = params['Product']
1434
+ end
1435
+ end
1436
+
1437
+ # DescribeTopSpaceTableTimeSeries返回参数结构体
1438
+ class DescribeTopSpaceTableTimeSeriesResponse < TencentCloud::Common::AbstractModel
1439
+ # @param TopSpaceTableTimeSeries: 返回的Top表空间统计信息的时序数据列表。
1440
+ # @type TopSpaceTableTimeSeries: Array
1441
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1442
+ # @type RequestId: String
1443
+
1444
+ attr_accessor :TopSpaceTableTimeSeries, :RequestId
1445
+
1446
+ def initialize(topspacetabletimeseries=nil, requestid=nil)
1447
+ @TopSpaceTableTimeSeries = topspacetabletimeseries
1448
+ @RequestId = requestid
1449
+ end
1450
+
1451
+ def deserialize(params)
1452
+ unless params['TopSpaceTableTimeSeries'].nil?
1453
+ @TopSpaceTableTimeSeries = []
1454
+ params['TopSpaceTableTimeSeries'].each do |i|
1455
+ tablespacetimeseries_tmp = TableSpaceTimeSeries.new
1456
+ tablespacetimeseries_tmp.deserialize(i)
1457
+ @TopSpaceTableTimeSeries << tablespacetimeseries_tmp
1458
+ end
1459
+ end
1460
+ @RequestId = params['RequestId']
1461
+ end
1462
+ end
1463
+
1464
+ # DescribeTopSpaceTables请求参数结构体
1465
+ class DescribeTopSpaceTablesRequest < TencentCloud::Common::AbstractModel
1466
+ # @param InstanceId: 实例 ID 。
1467
+ # @type InstanceId: String
1468
+ # @param Limit: 返回的Top表数量,最大值为100,默认为20。
1469
+ # @type Limit: Integer
1470
+ # @param SortBy: 筛选Top表所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize(仅云数据库 MySQL实例支持),云数据库 MySQL实例默认为 PhysicalFileSize,其他产品实例默认为TotalLength。
1471
+ # @type SortBy: String
1472
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1473
+ # @type Product: String
1474
+
1475
+ attr_accessor :InstanceId, :Limit, :SortBy, :Product
1476
+
1477
+ def initialize(instanceid=nil, limit=nil, sortby=nil, product=nil)
1478
+ @InstanceId = instanceid
1479
+ @Limit = limit
1480
+ @SortBy = sortby
1481
+ @Product = product
1482
+ end
1483
+
1484
+ def deserialize(params)
1485
+ @InstanceId = params['InstanceId']
1486
+ @Limit = params['Limit']
1487
+ @SortBy = params['SortBy']
1488
+ @Product = params['Product']
1489
+ end
1490
+ end
1491
+
1492
+ # DescribeTopSpaceTables返回参数结构体
1493
+ class DescribeTopSpaceTablesResponse < TencentCloud::Common::AbstractModel
1494
+ # @param TopSpaceTables: 返回的Top表空间统计信息列表。
1495
+ # @type TopSpaceTables: Array
1496
+ # @param Timestamp: 采集表空间数据的时间戳(秒)。
1497
+ # @type Timestamp: Integer
1498
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1499
+ # @type RequestId: String
1500
+
1501
+ attr_accessor :TopSpaceTables, :Timestamp, :RequestId
1502
+
1503
+ def initialize(topspacetables=nil, timestamp=nil, requestid=nil)
1504
+ @TopSpaceTables = topspacetables
1505
+ @Timestamp = timestamp
1506
+ @RequestId = requestid
1507
+ end
1508
+
1509
+ def deserialize(params)
1510
+ unless params['TopSpaceTables'].nil?
1511
+ @TopSpaceTables = []
1512
+ params['TopSpaceTables'].each do |i|
1513
+ tablespacedata_tmp = TableSpaceData.new
1514
+ tablespacedata_tmp.deserialize(i)
1515
+ @TopSpaceTables << tablespacedata_tmp
1516
+ end
1517
+ end
1518
+ @Timestamp = params['Timestamp']
1519
+ @RequestId = params['RequestId']
1520
+ end
1521
+ end
1522
+
1523
+ # DescribeUserSqlAdvice请求参数结构体
1524
+ class DescribeUserSqlAdviceRequest < TencentCloud::Common::AbstractModel
1525
+ # @param InstanceId: 实例ID。
1526
+ # @type InstanceId: String
1527
+ # @param SqlText: SQL语句。
1528
+ # @type SqlText: String
1529
+ # @param Schema: 库名。
1530
+ # @type Schema: String
1531
+
1532
+ attr_accessor :InstanceId, :SqlText, :Schema
1533
+
1534
+ def initialize(instanceid=nil, sqltext=nil, schema=nil)
1535
+ @InstanceId = instanceid
1536
+ @SqlText = sqltext
1537
+ @Schema = schema
1538
+ end
1539
+
1540
+ def deserialize(params)
1541
+ @InstanceId = params['InstanceId']
1542
+ @SqlText = params['SqlText']
1543
+ @Schema = params['Schema']
1544
+ end
1545
+ end
1546
+
1547
+ # DescribeUserSqlAdvice返回参数结构体
1548
+ class DescribeUserSqlAdviceResponse < TencentCloud::Common::AbstractModel
1549
+ # @param Advices: SQL优化建议,可解析为JSON数组。
1550
+ # @type Advices: String
1551
+ # @param Comments: SQL优化建议备注,可解析为String数组。
1552
+ # @type Comments: String
1553
+ # @param SqlText: SQL语句。
1554
+ # @type SqlText: String
1555
+ # @param Schema: 库名。
1556
+ # @type Schema: String
1557
+ # @param Tables: 相关表的DDL信息,可解析为JSON数组。
1558
+ # @type Tables: String
1559
+ # @param SqlPlan: SQL执行计划,可解析为JSON。
1560
+ # @type SqlPlan: String
1561
+ # @param Cost: SQL优化后的成本节约详情,可解析为JSON。
1562
+ # @type Cost: String
1563
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1564
+ # @type RequestId: String
1565
+
1566
+ attr_accessor :Advices, :Comments, :SqlText, :Schema, :Tables, :SqlPlan, :Cost, :RequestId
1567
+
1568
+ def initialize(advices=nil, comments=nil, sqltext=nil, schema=nil, tables=nil, sqlplan=nil, cost=nil, requestid=nil)
1569
+ @Advices = advices
1570
+ @Comments = comments
1571
+ @SqlText = sqltext
1572
+ @Schema = schema
1573
+ @Tables = tables
1574
+ @SqlPlan = sqlplan
1575
+ @Cost = cost
1576
+ @RequestId = requestid
1577
+ end
1578
+
1579
+ def deserialize(params)
1580
+ @Advices = params['Advices']
1581
+ @Comments = params['Comments']
1582
+ @SqlText = params['SqlText']
1583
+ @Schema = params['Schema']
1584
+ @Tables = params['Tables']
1585
+ @SqlPlan = params['SqlPlan']
1586
+ @Cost = params['Cost']
1587
+ @RequestId = params['RequestId']
1588
+ end
1589
+ end
1590
+
1591
+ # 实例诊断历史事件
1592
+ class DiagHistoryEventItem < TencentCloud::Common::AbstractModel
1593
+ # @param DiagType: 诊断类型。
1594
+ # @type DiagType: String
1595
+ # @param EndTime: 结束时间。
1596
+ # @type EndTime: String
1597
+ # @param StartTime: 开始时间。
1598
+ # @type StartTime: String
1599
+ # @param EventId: 事件 ID 。
1600
+ # @type EventId: Integer
1601
+ # @param Severity: 严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。
1602
+ # @type Severity: Integer
1603
+ # @param Outline: 概要。
1604
+ # @type Outline: String
1605
+ # @param DiagItem: 诊断项。
1606
+ # @type DiagItem: String
1607
+ # @param InstanceId: 实例 ID 。
1608
+ # 注意:此字段可能返回 null,表示取不到有效值。
1609
+ # @type InstanceId: String
1610
+ # @param Metric: 保留字段
1611
+ # 注意:此字段可能返回 null,表示取不到有效值。
1612
+ # @type Metric: String
1613
+ # @param Region: 地域
1614
+ # 注意:此字段可能返回 null,表示取不到有效值。
1615
+ # @type Region: String
1616
+
1617
+ attr_accessor :DiagType, :EndTime, :StartTime, :EventId, :Severity, :Outline, :DiagItem, :InstanceId, :Metric, :Region
1618
+
1619
+ def initialize(diagtype=nil, endtime=nil, starttime=nil, eventid=nil, severity=nil, outline=nil, diagitem=nil, instanceid=nil, metric=nil, region=nil)
1620
+ @DiagType = diagtype
1621
+ @EndTime = endtime
1622
+ @StartTime = starttime
1623
+ @EventId = eventid
1624
+ @Severity = severity
1625
+ @Outline = outline
1626
+ @DiagItem = diagitem
1627
+ @InstanceId = instanceid
1628
+ @Metric = metric
1629
+ @Region = region
1630
+ end
1631
+
1632
+ def deserialize(params)
1633
+ @DiagType = params['DiagType']
1634
+ @EndTime = params['EndTime']
1635
+ @StartTime = params['StartTime']
1636
+ @EventId = params['EventId']
1637
+ @Severity = params['Severity']
1638
+ @Outline = params['Outline']
1639
+ @DiagItem = params['DiagItem']
1640
+ @InstanceId = params['InstanceId']
1641
+ @Metric = params['Metric']
1642
+ @Region = params['Region']
1643
+ end
1644
+ end
1645
+
1646
+ # 异常事件信息。
1647
+ class EventInfo < TencentCloud::Common::AbstractModel
1648
+ # @param EventId: 事件 ID 。
1649
+ # @type EventId: Integer
1650
+ # @param DiagType: 诊断类型。
1651
+ # @type DiagType: String
1652
+ # @param StartTime: 开始时间。
1653
+ # @type StartTime: String
1654
+ # @param EndTime: 结束时间。
1655
+ # @type EndTime: String
1656
+ # @param Outline: 概要。
1657
+ # @type Outline: String
1658
+ # @param Severity: 严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。
1659
+ # @type Severity: Integer
1660
+ # @param ScoreLost: 扣分。
1661
+ # @type ScoreLost: Integer
1662
+ # @param Metric: 保留字段。
1663
+ # @type Metric: String
1664
+ # @param Count: 告警数目。
1665
+ # @type Count: Integer
1666
+
1667
+ attr_accessor :EventId, :DiagType, :StartTime, :EndTime, :Outline, :Severity, :ScoreLost, :Metric, :Count
1668
+
1669
+ def initialize(eventid=nil, diagtype=nil, starttime=nil, endtime=nil, outline=nil, severity=nil, scorelost=nil, metric=nil, count=nil)
1670
+ @EventId = eventid
1671
+ @DiagType = diagtype
1672
+ @StartTime = starttime
1673
+ @EndTime = endtime
1674
+ @Outline = outline
1675
+ @Severity = severity
1676
+ @ScoreLost = scorelost
1677
+ @Metric = metric
1678
+ @Count = count
1679
+ end
1680
+
1681
+ def deserialize(params)
1682
+ @EventId = params['EventId']
1683
+ @DiagType = params['DiagType']
1684
+ @StartTime = params['StartTime']
1685
+ @EndTime = params['EndTime']
1686
+ @Outline = params['Outline']
1687
+ @Severity = params['Severity']
1688
+ @ScoreLost = params['ScoreLost']
1689
+ @Metric = params['Metric']
1690
+ @Count = params['Count']
1691
+ end
1692
+ end
1693
+
1694
+ # 描述组信息。
1695
+ class GroupItem < TencentCloud::Common::AbstractModel
1696
+ # @param Id: 组id。
1697
+ # @type Id: Integer
1698
+ # @param Name: 组名称。
1699
+ # @type Name: String
1700
+ # @param MemberCount: 组成员数量。
1701
+ # @type MemberCount: Integer
1702
+
1703
+ attr_accessor :Id, :Name, :MemberCount
1704
+
1705
+ def initialize(id=nil, name=nil, membercount=nil)
1706
+ @Id = id
1707
+ @Name = name
1708
+ @MemberCount = membercount
1709
+ end
1710
+
1711
+ def deserialize(params)
1712
+ @Id = params['Id']
1713
+ @Name = params['Name']
1714
+ @MemberCount = params['MemberCount']
1715
+ end
1716
+ end
1717
+
1718
+ # 健康报告任务详情。
1719
+ class HealthReportTask < TencentCloud::Common::AbstractModel
1720
+ # @param AsyncRequestId: 异步任务请求 ID。
1721
+ # @type AsyncRequestId: Integer
1722
+ # @param Source: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。
1723
+ # @type Source: String
1724
+ # @param Progress: 任务完成进度,单位%。
1725
+ # @type Progress: Integer
1726
+ # @param CreateTime: 任务创建时间。
1727
+ # @type CreateTime: String
1728
+ # @param StartTime: 任务开始执行时间。
1729
+ # @type StartTime: String
1730
+ # @param EndTime: 任务完成执行时间。
1731
+ # @type EndTime: String
1732
+ # @param InstanceInfo: 任务所属实例的基础信息。
1733
+ # @type InstanceInfo: :class:`Tencentcloud::Dbbrain.v20191016.models.InstanceBasicInfo`
1734
+ # @param HealthStatus: 健康报告中的健康信息。
1735
+ # @type HealthStatus: :class:`Tencentcloud::Dbbrain.v20191016.models.HealthStatus`
1736
+
1737
+ attr_accessor :AsyncRequestId, :Source, :Progress, :CreateTime, :StartTime, :EndTime, :InstanceInfo, :HealthStatus
1738
+
1739
+ def initialize(asyncrequestid=nil, source=nil, progress=nil, createtime=nil, starttime=nil, endtime=nil, instanceinfo=nil, healthstatus=nil)
1740
+ @AsyncRequestId = asyncrequestid
1741
+ @Source = source
1742
+ @Progress = progress
1743
+ @CreateTime = createtime
1744
+ @StartTime = starttime
1745
+ @EndTime = endtime
1746
+ @InstanceInfo = instanceinfo
1747
+ @HealthStatus = healthstatus
1748
+ end
1749
+
1750
+ def deserialize(params)
1751
+ @AsyncRequestId = params['AsyncRequestId']
1752
+ @Source = params['Source']
1753
+ @Progress = params['Progress']
1754
+ @CreateTime = params['CreateTime']
1755
+ @StartTime = params['StartTime']
1756
+ @EndTime = params['EndTime']
1757
+ unless params['InstanceInfo'].nil?
1758
+ @InstanceInfo = InstanceBasicInfo.new
1759
+ @InstanceInfo.deserialize(params['InstanceInfo'])
1760
+ end
1761
+ unless params['HealthStatus'].nil?
1762
+ @HealthStatus = HealthStatus.new
1763
+ @HealthStatus.deserialize(params['HealthStatus'])
1764
+ end
1765
+ end
1766
+ end
1767
+
1768
+ # 获取健康得分返回的详情。
1769
+ class HealthScoreInfo < TencentCloud::Common::AbstractModel
1770
+ # @param IssueTypes: 异常详情。
1771
+ # @type IssueTypes: Array
1772
+ # @param EventsTotalCount: 异常事件总数。
1773
+ # @type EventsTotalCount: Integer
1774
+ # @param HealthScore: 健康得分。
1775
+ # @type HealthScore: Integer
1776
+ # @param HealthLevel: 健康等级, 如:"HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK"。
1777
+ # @type HealthLevel: String
1778
+
1779
+ attr_accessor :IssueTypes, :EventsTotalCount, :HealthScore, :HealthLevel
1780
+
1781
+ def initialize(issuetypes=nil, eventstotalcount=nil, healthscore=nil, healthlevel=nil)
1782
+ @IssueTypes = issuetypes
1783
+ @EventsTotalCount = eventstotalcount
1784
+ @HealthScore = healthscore
1785
+ @HealthLevel = healthlevel
1786
+ end
1787
+
1788
+ def deserialize(params)
1789
+ unless params['IssueTypes'].nil?
1790
+ @IssueTypes = []
1791
+ params['IssueTypes'].each do |i|
1792
+ issuetypeinfo_tmp = IssueTypeInfo.new
1793
+ issuetypeinfo_tmp.deserialize(i)
1794
+ @IssueTypes << issuetypeinfo_tmp
1795
+ end
1796
+ end
1797
+ @EventsTotalCount = params['EventsTotalCount']
1798
+ @HealthScore = params['HealthScore']
1799
+ @HealthLevel = params['HealthLevel']
1800
+ end
1801
+ end
1802
+
1803
+ # 实例健康详情。
1804
+ class HealthStatus < TencentCloud::Common::AbstractModel
1805
+ # @param HealthScore: 健康分数,满分100。
1806
+ # @type HealthScore: Integer
1807
+ # @param HealthLevel: 健康等级,取值包括:"HEALTH" - 健康;"SUB_HEALTH" - 亚健康;"RISK"- 危险;"HIGH_RISK" - 高危。
1808
+ # @type HealthLevel: String
1809
+ # @param ScoreLost: 总扣分分数。
1810
+ # @type ScoreLost: Integer
1811
+ # @param ScoreDetails: 扣分详情。
1812
+ # 注意:此字段可能返回 null,表示取不到有效值。
1813
+ # @type ScoreDetails: Array
1814
+
1815
+ attr_accessor :HealthScore, :HealthLevel, :ScoreLost, :ScoreDetails
1816
+
1817
+ def initialize(healthscore=nil, healthlevel=nil, scorelost=nil, scoredetails=nil)
1818
+ @HealthScore = healthscore
1819
+ @HealthLevel = healthlevel
1820
+ @ScoreLost = scorelost
1821
+ @ScoreDetails = scoredetails
1822
+ end
1823
+
1824
+ def deserialize(params)
1825
+ @HealthScore = params['HealthScore']
1826
+ @HealthLevel = params['HealthLevel']
1827
+ @ScoreLost = params['ScoreLost']
1828
+ unless params['ScoreDetails'].nil?
1829
+ @ScoreDetails = []
1830
+ params['ScoreDetails'].each do |i|
1831
+ scoredetail_tmp = ScoreDetail.new
1832
+ scoredetail_tmp.deserialize(i)
1833
+ @ScoreDetails << scoredetail_tmp
1834
+ end
1835
+ end
1836
+ end
1837
+ end
1838
+
1839
+ # 实例基础信息。
1840
+ class InstanceBasicInfo < TencentCloud::Common::AbstractModel
1841
+ # @param InstanceId: 实例ID。
1842
+ # @type InstanceId: String
1843
+ # @param InstanceName: 实例名称。
1844
+ # @type InstanceName: String
1845
+ # @param Vip: 实例内网IP。
1846
+ # @type Vip: String
1847
+ # @param Vport: 实例内网Port。
1848
+ # @type Vport: Integer
1849
+ # @param Product: 实例产品。
1850
+ # @type Product: String
1851
+ # @param EngineVersion: 实例引擎版本。
1852
+ # @type EngineVersion: String
1853
+
1854
+ attr_accessor :InstanceId, :InstanceName, :Vip, :Vport, :Product, :EngineVersion
1855
+
1856
+ def initialize(instanceid=nil, instancename=nil, vip=nil, vport=nil, product=nil, engineversion=nil)
1857
+ @InstanceId = instanceid
1858
+ @InstanceName = instancename
1859
+ @Vip = vip
1860
+ @Vport = vport
1861
+ @Product = product
1862
+ @EngineVersion = engineversion
1863
+ end
1864
+
1865
+ def deserialize(params)
1866
+ @InstanceId = params['InstanceId']
1867
+ @InstanceName = params['InstanceName']
1868
+ @Vip = params['Vip']
1869
+ @Vport = params['Vport']
1870
+ @Product = params['Product']
1871
+ @EngineVersion = params['EngineVersion']
1872
+ end
1873
+ end
1874
+
1875
+ # 实例配置。
1876
+ class InstanceConfs < TencentCloud::Common::AbstractModel
1877
+ # @param DailyInspection: 数据库巡检开关, Yes/No。
1878
+ # @type DailyInspection: String
1879
+ # @param OverviewDisplay: 实例概览开关,Yes/No。
1880
+ # @type OverviewDisplay: String
1881
+
1882
+ attr_accessor :DailyInspection, :OverviewDisplay
1883
+
1884
+ def initialize(dailyinspection=nil, overviewdisplay=nil)
1885
+ @DailyInspection = dailyinspection
1886
+ @OverviewDisplay = overviewdisplay
1887
+ end
1888
+
1889
+ def deserialize(params)
1890
+ @DailyInspection = params['DailyInspection']
1891
+ @OverviewDisplay = params['OverviewDisplay']
1892
+ end
1893
+ end
1894
+
1895
+ # 查询实例列表,返回实例的相关信息的对象。
1896
+ class InstanceInfo < TencentCloud::Common::AbstractModel
1897
+ # @param InstanceId: 实例ID。
1898
+ # @type InstanceId: String
1899
+ # @param InstanceName: 实例名称。
1900
+ # @type InstanceName: String
1901
+ # @param Region: 实例所属地域。
1902
+ # @type Region: String
1903
+ # @param HealthScore: 健康得分。
1904
+ # @type HealthScore: Integer
1905
+ # @param Product: 所属产品。
1906
+ # @type Product: String
1907
+ # @param EventCount: 异常事件数量。
1908
+ # @type EventCount: Integer
1909
+ # @param InstanceType: 实例类型:1:MASTER;2:DR,3:RO,4:SDR。
1910
+ # @type InstanceType: Integer
1911
+ # @param Cpu: 核心数。
1912
+ # @type Cpu: Integer
1913
+ # @param Memory: 内存,单位MB。
1914
+ # @type Memory: Integer
1915
+ # @param Volume: 硬盘存储,单位GB。
1916
+ # @type Volume: Integer
1917
+ # @param EngineVersion: 数据库版本。
1918
+ # @type EngineVersion: String
1919
+ # @param Vip: 内网地址。
1920
+ # @type Vip: String
1921
+ # @param Vport: 内网端口。
1922
+ # @type Vport: Integer
1923
+ # @param Source: 接入来源。
1924
+ # @type Source: String
1925
+ # @param GroupId: 分组ID。
1926
+ # @type GroupId: String
1927
+ # @param GroupName: 分组组名。
1928
+ # @type GroupName: String
1929
+ # @param Status: 实例状态:0:发货中;1:运行正常;4:销毁中;5:隔离中。
1930
+ # @type Status: Integer
1931
+ # @param UniqSubnetId: 子网统一ID。
1932
+ # @type UniqSubnetId: String
1933
+ # @param DeployMode: cdb类型。
1934
+ # @type DeployMode: String
1935
+ # @param InitFlag: cdb实例初始化标志:0:未初始化;1:已初始化。
1936
+ # @type InitFlag: Integer
1937
+ # @param TaskStatus: 任务状态。
1938
+ # @type TaskStatus: Integer
1939
+ # @param UniqVpcId: 私有网络统一ID。
1940
+ # @type UniqVpcId: String
1941
+ # @param InstanceConf: 实例巡检/概览的状态。
1942
+ # @type InstanceConf: :class:`Tencentcloud::Dbbrain.v20191016.models.InstanceConfs`
1943
+ # @param DeadlineTime: 资源到期时间。
1944
+ # @type DeadlineTime: String
1945
+ # @param IsSupported: 是否是DBbrain支持的实例。
1946
+ # @type IsSupported: Boolean
1947
+ # @param SecAuditStatus: 实例安全审计日志开启状态:ON: 安全审计开启;OFF: 未开启安全审计。
1948
+ # @type SecAuditStatus: String
1949
+ # @param AuditPolicyStatus: 实例审计日志开启状态,ALL_AUDIT: 开启全审计;RULE_AUDIT: 开启规则审计;UNBOUND: 未开启审计。
1950
+ # @type AuditPolicyStatus: String
1951
+ # @param AuditRunningStatus: 实例审计日志运行状态:normal: 运行中; paused: 欠费暂停。
1952
+ # @type AuditRunningStatus: String
1953
+
1954
+ attr_accessor :InstanceId, :InstanceName, :Region, :HealthScore, :Product, :EventCount, :InstanceType, :Cpu, :Memory, :Volume, :EngineVersion, :Vip, :Vport, :Source, :GroupId, :GroupName, :Status, :UniqSubnetId, :DeployMode, :InitFlag, :TaskStatus, :UniqVpcId, :InstanceConf, :DeadlineTime, :IsSupported, :SecAuditStatus, :AuditPolicyStatus, :AuditRunningStatus
1955
+
1956
+ def initialize(instanceid=nil, instancename=nil, region=nil, healthscore=nil, product=nil, eventcount=nil, instancetype=nil, cpu=nil, memory=nil, volume=nil, engineversion=nil, vip=nil, vport=nil, source=nil, groupid=nil, groupname=nil, status=nil, uniqsubnetid=nil, deploymode=nil, initflag=nil, taskstatus=nil, uniqvpcid=nil, instanceconf=nil, deadlinetime=nil, issupported=nil, secauditstatus=nil, auditpolicystatus=nil, auditrunningstatus=nil)
1957
+ @InstanceId = instanceid
1958
+ @InstanceName = instancename
1959
+ @Region = region
1960
+ @HealthScore = healthscore
1961
+ @Product = product
1962
+ @EventCount = eventcount
1963
+ @InstanceType = instancetype
1964
+ @Cpu = cpu
1965
+ @Memory = memory
1966
+ @Volume = volume
1967
+ @EngineVersion = engineversion
1968
+ @Vip = vip
1969
+ @Vport = vport
1970
+ @Source = source
1971
+ @GroupId = groupid
1972
+ @GroupName = groupname
1973
+ @Status = status
1974
+ @UniqSubnetId = uniqsubnetid
1975
+ @DeployMode = deploymode
1976
+ @InitFlag = initflag
1977
+ @TaskStatus = taskstatus
1978
+ @UniqVpcId = uniqvpcid
1979
+ @InstanceConf = instanceconf
1980
+ @DeadlineTime = deadlinetime
1981
+ @IsSupported = issupported
1982
+ @SecAuditStatus = secauditstatus
1983
+ @AuditPolicyStatus = auditpolicystatus
1984
+ @AuditRunningStatus = auditrunningstatus
1985
+ end
1986
+
1987
+ def deserialize(params)
1988
+ @InstanceId = params['InstanceId']
1989
+ @InstanceName = params['InstanceName']
1990
+ @Region = params['Region']
1991
+ @HealthScore = params['HealthScore']
1992
+ @Product = params['Product']
1993
+ @EventCount = params['EventCount']
1994
+ @InstanceType = params['InstanceType']
1995
+ @Cpu = params['Cpu']
1996
+ @Memory = params['Memory']
1997
+ @Volume = params['Volume']
1998
+ @EngineVersion = params['EngineVersion']
1999
+ @Vip = params['Vip']
2000
+ @Vport = params['Vport']
2001
+ @Source = params['Source']
2002
+ @GroupId = params['GroupId']
2003
+ @GroupName = params['GroupName']
2004
+ @Status = params['Status']
2005
+ @UniqSubnetId = params['UniqSubnetId']
2006
+ @DeployMode = params['DeployMode']
2007
+ @InitFlag = params['InitFlag']
2008
+ @TaskStatus = params['TaskStatus']
2009
+ @UniqVpcId = params['UniqVpcId']
2010
+ unless params['InstanceConf'].nil?
2011
+ @InstanceConf = InstanceConfs.new
2012
+ @InstanceConf.deserialize(params['InstanceConf'])
2013
+ end
2014
+ @DeadlineTime = params['DeadlineTime']
2015
+ @IsSupported = params['IsSupported']
2016
+ @SecAuditStatus = params['SecAuditStatus']
2017
+ @AuditPolicyStatus = params['AuditPolicyStatus']
2018
+ @AuditRunningStatus = params['AuditRunningStatus']
2019
+ end
2020
+ end
2021
+
2022
+ # 指标信息。
2023
+ class IssueTypeInfo < TencentCloud::Common::AbstractModel
2024
+ # @param IssueType: 指标分类:AVAILABILITY:可用性,MAINTAINABILITY:可维护性,PERFORMANCE,性能,RELIABILITY可靠性。
2025
+ # @type IssueType: String
2026
+ # @param Events: 异常事件。
2027
+ # @type Events: Array
2028
+ # @param TotalCount: 异常事件总数。
2029
+ # @type TotalCount: Integer
2030
+
2031
+ attr_accessor :IssueType, :Events, :TotalCount
2032
+
2033
+ def initialize(issuetype=nil, events=nil, totalcount=nil)
2034
+ @IssueType = issuetype
2035
+ @Events = events
2036
+ @TotalCount = totalcount
2037
+ end
2038
+
2039
+ def deserialize(params)
2040
+ @IssueType = params['IssueType']
2041
+ unless params['Events'].nil?
2042
+ @Events = []
2043
+ params['Events'].each do |i|
2044
+ eventinfo_tmp = EventInfo.new
2045
+ eventinfo_tmp.deserialize(i)
2046
+ @Events << eventinfo_tmp
2047
+ end
2048
+ end
2049
+ @TotalCount = params['TotalCount']
2050
+ end
2051
+ end
2052
+
2053
+ # 邮件发送配置
2054
+ class MailConfiguration < TencentCloud::Common::AbstractModel
2055
+ # @param SendMail: 是否开启邮件发送: 0, 否; 1, 是。
2056
+ # @type SendMail: Integer
2057
+ # @param Region: 地域配置, 如["ap-guangzhou", "ap-shanghai"]。巡检的邮件发送模版,配置需要发送巡检邮件的地域;订阅的邮件发送模版,配置当前订阅实例的所属地域。
2058
+ # @type Region: Array
2059
+ # @param HealthStatus: 发送指定的健康等级的报告, 如["HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK"]。
2060
+ # @type HealthStatus: Array
2061
+ # @param ContactPerson: 联系人id, 联系人/联系组不能都为空。
2062
+ # @type ContactPerson: Array
2063
+ # @param ContactGroup: 联系组id, 联系人/联系组不能都为空。
2064
+ # @type ContactGroup: Array
2065
+
2066
+ attr_accessor :SendMail, :Region, :HealthStatus, :ContactPerson, :ContactGroup
2067
+
2068
+ def initialize(sendmail=nil, region=nil, healthstatus=nil, contactperson=nil, contactgroup=nil)
2069
+ @SendMail = sendmail
2070
+ @Region = region
2071
+ @HealthStatus = healthstatus
2072
+ @ContactPerson = contactperson
2073
+ @ContactGroup = contactgroup
2074
+ end
2075
+
2076
+ def deserialize(params)
2077
+ @SendMail = params['SendMail']
2078
+ @Region = params['Region']
2079
+ @HealthStatus = params['HealthStatus']
2080
+ @ContactPerson = params['ContactPerson']
2081
+ @ContactGroup = params['ContactGroup']
2082
+ end
2083
+ end
2084
+
2085
+ # ModifyDiagDBInstanceConf请求参数结构体
2086
+ class ModifyDiagDBInstanceConfRequest < TencentCloud::Common::AbstractModel
2087
+ # @param InstanceConfs: 巡检开关。
2088
+ # @type InstanceConfs: :class:`Tencentcloud::Dbbrain.v20191016.models.InstanceConfs`
2089
+ # @param Regions: 生效实例地域,取值为"All",代表全地域。
2090
+ # @type Regions: String
2091
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL。
2092
+ # @type Product: String
2093
+ # @param InstanceIds: 指定更改巡检状态的实例ID。
2094
+ # @type InstanceIds: Array
2095
+
2096
+ attr_accessor :InstanceConfs, :Regions, :Product, :InstanceIds
2097
+
2098
+ def initialize(instanceconfs=nil, regions=nil, product=nil, instanceids=nil)
2099
+ @InstanceConfs = instanceconfs
2100
+ @Regions = regions
2101
+ @Product = product
2102
+ @InstanceIds = instanceids
2103
+ end
2104
+
2105
+ def deserialize(params)
2106
+ unless params['InstanceConfs'].nil?
2107
+ @InstanceConfs = InstanceConfs.new
2108
+ @InstanceConfs.deserialize(params['InstanceConfs'])
2109
+ end
2110
+ @Regions = params['Regions']
2111
+ @Product = params['Product']
2112
+ @InstanceIds = params['InstanceIds']
2113
+ end
2114
+ end
2115
+
2116
+ # ModifyDiagDBInstanceConf返回参数结构体
2117
+ class ModifyDiagDBInstanceConfResponse < TencentCloud::Common::AbstractModel
2118
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2119
+ # @type RequestId: String
2120
+
2121
+ attr_accessor :RequestId
2122
+
2123
+ def initialize(requestid=nil)
2124
+ @RequestId = requestid
2125
+ end
2126
+
2127
+ def deserialize(params)
2128
+ @RequestId = params['RequestId']
2129
+ end
2130
+ end
2131
+
2132
+ # 监控数据(浮点型)
2133
+ class MonitorFloatMetric < TencentCloud::Common::AbstractModel
2134
+ # @param Metric: 指标名称。
2135
+ # @type Metric: String
2136
+ # @param Unit: 指标单位。
2137
+ # @type Unit: String
2138
+ # @param Values: 指标值。
2139
+ # 注意:此字段可能返回 null,表示取不到有效值。
2140
+ # @type Values: Array
2141
+
2142
+ attr_accessor :Metric, :Unit, :Values
2143
+
2144
+ def initialize(metric=nil, unit=nil, values=nil)
2145
+ @Metric = metric
2146
+ @Unit = unit
2147
+ @Values = values
2148
+ end
2149
+
2150
+ def deserialize(params)
2151
+ @Metric = params['Metric']
2152
+ @Unit = params['Unit']
2153
+ @Values = params['Values']
2154
+ end
2155
+ end
2156
+
2157
+ # 单位时间间隔内的监控指标数据(浮点型)
2158
+ class MonitorFloatMetricSeriesData < TencentCloud::Common::AbstractModel
2159
+ # @param Series: 监控指标。
2160
+ # @type Series: Array
2161
+ # @param Timestamp: 监控指标对应的时间戳。
2162
+ # @type Timestamp: Array
2163
+
2164
+ attr_accessor :Series, :Timestamp
2165
+
2166
+ def initialize(series=nil, timestamp=nil)
2167
+ @Series = series
2168
+ @Timestamp = timestamp
2169
+ end
2170
+
2171
+ def deserialize(params)
2172
+ unless params['Series'].nil?
2173
+ @Series = []
2174
+ params['Series'].each do |i|
2175
+ monitorfloatmetric_tmp = MonitorFloatMetric.new
2176
+ monitorfloatmetric_tmp.deserialize(i)
2177
+ @Series << monitorfloatmetric_tmp
2178
+ end
2179
+ end
2180
+ @Timestamp = params['Timestamp']
2181
+ end
2182
+ end
2183
+
2184
+ # 监控数据
2185
+ class MonitorMetric < TencentCloud::Common::AbstractModel
2186
+ # @param Metric: 指标名称。
2187
+ # @type Metric: String
2188
+ # @param Unit: 指标单位。
2189
+ # @type Unit: String
2190
+ # @param Values: 指标值。
2191
+ # 注意:此字段可能返回 null,表示取不到有效值。
2192
+ # @type Values: Array
2193
+
2194
+ attr_accessor :Metric, :Unit, :Values
2195
+
2196
+ def initialize(metric=nil, unit=nil, values=nil)
2197
+ @Metric = metric
2198
+ @Unit = unit
2199
+ @Values = values
2200
+ end
2201
+
2202
+ def deserialize(params)
2203
+ @Metric = params['Metric']
2204
+ @Unit = params['Unit']
2205
+ @Values = params['Values']
2206
+ end
2207
+ end
2208
+
2209
+ # 单位时间间隔内的监控指标数据
2210
+ class MonitorMetricSeriesData < TencentCloud::Common::AbstractModel
2211
+ # @param Series: 监控指标。
2212
+ # @type Series: Array
2213
+ # @param Timestamp: 监控指标对应的时间戳。
2214
+ # @type Timestamp: Array
2215
+
2216
+ attr_accessor :Series, :Timestamp
2217
+
2218
+ def initialize(series=nil, timestamp=nil)
2219
+ @Series = series
2220
+ @Timestamp = timestamp
2221
+ end
2222
+
2223
+ def deserialize(params)
2224
+ unless params['Series'].nil?
2225
+ @Series = []
2226
+ params['Series'].each do |i|
2227
+ monitormetric_tmp = MonitorMetric.new
2228
+ monitormetric_tmp.deserialize(i)
2229
+ @Series << monitormetric_tmp
2230
+ end
2231
+ end
2232
+ @Timestamp = params['Timestamp']
2233
+ end
2234
+ end
2235
+
2236
+ # 用户配置的信息
2237
+ class ProfileInfo < TencentCloud::Common::AbstractModel
2238
+ # @param Language: 语言, 如"zh"。
2239
+ # @type Language: String
2240
+ # @param MailConfiguration: 邮件模板的内容。
2241
+ # @type MailConfiguration: :class:`Tencentcloud::Dbbrain.v20191016.models.MailConfiguration`
2242
+
2243
+ attr_accessor :Language, :MailConfiguration
2244
+
2245
+ def initialize(language=nil, mailconfiguration=nil)
2246
+ @Language = language
2247
+ @MailConfiguration = mailconfiguration
2248
+ end
2249
+
2250
+ def deserialize(params)
2251
+ @Language = params['Language']
2252
+ unless params['MailConfiguration'].nil?
2253
+ @MailConfiguration = MailConfiguration.new
2254
+ @MailConfiguration.deserialize(params['MailConfiguration'])
2255
+ end
2256
+ end
2257
+ end
2258
+
2259
+ # SchemaItem数组
2260
+ class SchemaItem < TencentCloud::Common::AbstractModel
2261
+ # @param Schema: 数据库名称
2262
+ # @type Schema: String
2263
+
2264
+ attr_accessor :Schema
2265
+
2266
+ def initialize(schema=nil)
2267
+ @Schema = schema
2268
+ end
2269
+
2270
+ def deserialize(params)
2271
+ @Schema = params['Schema']
2272
+ end
2273
+ end
2274
+
2275
+ # 库空间统计数据。
2276
+ class SchemaSpaceData < TencentCloud::Common::AbstractModel
2277
+ # @param TableSchema: 库名。
2278
+ # @type TableSchema: String
2279
+ # @param DataLength: 数据空间(MB)。
2280
+ # @type DataLength: Float
2281
+ # @param IndexLength: 索引空间(MB)。
2282
+ # @type IndexLength: Float
2283
+ # @param DataFree: 碎片空间(MB)。
2284
+ # @type DataFree: Float
2285
+ # @param TotalLength: 总使用空间(MB)。
2286
+ # @type TotalLength: Float
2287
+ # @param FragRatio: 碎片率(%)。
2288
+ # @type FragRatio: Float
2289
+ # @param TableRows: 行数。
2290
+ # @type TableRows: Integer
2291
+ # @param PhysicalFileSize: 库中所有表对应的独立物理文件大小加和(MB)。
2292
+ # 注意:此字段可能返回 null,表示取不到有效值。
2293
+ # @type PhysicalFileSize: Float
2294
+
2295
+ attr_accessor :TableSchema, :DataLength, :IndexLength, :DataFree, :TotalLength, :FragRatio, :TableRows, :PhysicalFileSize
2296
+
2297
+ def initialize(tableschema=nil, datalength=nil, indexlength=nil, datafree=nil, totallength=nil, fragratio=nil, tablerows=nil, physicalfilesize=nil)
2298
+ @TableSchema = tableschema
2299
+ @DataLength = datalength
2300
+ @IndexLength = indexlength
2301
+ @DataFree = datafree
2302
+ @TotalLength = totallength
2303
+ @FragRatio = fragratio
2304
+ @TableRows = tablerows
2305
+ @PhysicalFileSize = physicalfilesize
2306
+ end
2307
+
2308
+ def deserialize(params)
2309
+ @TableSchema = params['TableSchema']
2310
+ @DataLength = params['DataLength']
2311
+ @IndexLength = params['IndexLength']
2312
+ @DataFree = params['DataFree']
2313
+ @TotalLength = params['TotalLength']
2314
+ @FragRatio = params['FragRatio']
2315
+ @TableRows = params['TableRows']
2316
+ @PhysicalFileSize = params['PhysicalFileSize']
2317
+ end
2318
+ end
2319
+
2320
+ # 库空间时序数据
2321
+ class SchemaSpaceTimeSeries < TencentCloud::Common::AbstractModel
2322
+ # @param TableSchema: 库名
2323
+ # @type TableSchema: String
2324
+ # @param SeriesData: 单位时间间隔内的空间指标数据。
2325
+ # @type SeriesData: :class:`Tencentcloud::Dbbrain.v20191016.models.MonitorMetricSeriesData`
2326
+
2327
+ attr_accessor :TableSchema, :SeriesData
2328
+
2329
+ def initialize(tableschema=nil, seriesdata=nil)
2330
+ @TableSchema = tableschema
2331
+ @SeriesData = seriesdata
2332
+ end
2333
+
2334
+ def deserialize(params)
2335
+ @TableSchema = params['TableSchema']
2336
+ unless params['SeriesData'].nil?
2337
+ @SeriesData = MonitorMetricSeriesData.new
2338
+ @SeriesData.deserialize(params['SeriesData'])
2339
+ end
2340
+ end
2341
+ end
2342
+
2343
+ # 扣分详情。
2344
+ class ScoreDetail < TencentCloud::Common::AbstractModel
2345
+ # @param IssueType: 扣分项分类,取值包括:可用性、可维护性、性能及可靠性。
2346
+ # @type IssueType: String
2347
+ # @param ScoreLost: 扣分总分。
2348
+ # @type ScoreLost: Integer
2349
+ # @param ScoreLostMax: 扣分总分上限。
2350
+ # @type ScoreLostMax: Integer
2351
+ # @param Items: 扣分项列表。
2352
+ # 注意:此字段可能返回 null,表示取不到有效值。
2353
+ # @type Items: Array
2354
+
2355
+ attr_accessor :IssueType, :ScoreLost, :ScoreLostMax, :Items
2356
+
2357
+ def initialize(issuetype=nil, scorelost=nil, scorelostmax=nil, items=nil)
2358
+ @IssueType = issuetype
2359
+ @ScoreLost = scorelost
2360
+ @ScoreLostMax = scorelostmax
2361
+ @Items = items
2362
+ end
2363
+
2364
+ def deserialize(params)
2365
+ @IssueType = params['IssueType']
2366
+ @ScoreLost = params['ScoreLost']
2367
+ @ScoreLostMax = params['ScoreLostMax']
2368
+ unless params['Items'].nil?
2369
+ @Items = []
2370
+ params['Items'].each do |i|
2371
+ scoreitem_tmp = ScoreItem.new
2372
+ scoreitem_tmp.deserialize(i)
2373
+ @Items << scoreitem_tmp
2374
+ end
2375
+ end
2376
+ end
2377
+ end
2378
+
2379
+ # 诊断扣分项。
2380
+ class ScoreItem < TencentCloud::Common::AbstractModel
2381
+ # @param DiagItem: 异常诊断项名称。
2382
+ # @type DiagItem: String
2383
+ # @param IssueType: 诊断项分类,取值包括:可用性、可维护性、性能及可靠性。
2384
+ # @type IssueType: String
2385
+ # @param TopSeverity: 健康等级,取值包括:信息、提示、告警、严重、致命。
2386
+ # @type TopSeverity: String
2387
+ # @param Count: 该异常诊断项出现次数。
2388
+ # @type Count: Integer
2389
+ # @param ScoreLost: 扣分分数。
2390
+ # @type ScoreLost: Integer
2391
+
2392
+ attr_accessor :DiagItem, :IssueType, :TopSeverity, :Count, :ScoreLost
2393
+
2394
+ def initialize(diagitem=nil, issuetype=nil, topseverity=nil, count=nil, scorelost=nil)
2395
+ @DiagItem = diagitem
2396
+ @IssueType = issuetype
2397
+ @TopSeverity = topseverity
2398
+ @Count = count
2399
+ @ScoreLost = scorelost
2400
+ end
2401
+
2402
+ def deserialize(params)
2403
+ @DiagItem = params['DiagItem']
2404
+ @IssueType = params['IssueType']
2405
+ @TopSeverity = params['TopSeverity']
2406
+ @Count = params['Count']
2407
+ @ScoreLost = params['ScoreLost']
2408
+ end
2409
+ end
2410
+
2411
+ # 安全审计日志导出任务信息
2412
+ class SecLogExportTaskInfo < TencentCloud::Common::AbstractModel
2413
+ # @param AsyncRequestId: 异步任务Id。
2414
+ # @type AsyncRequestId: Integer
2415
+ # @param StartTime: 任务开始时间。
2416
+ # 注意:此字段可能返回 null,表示取不到有效值。
2417
+ # @type StartTime: String
2418
+ # @param EndTime: 任务结束时间。
2419
+ # 注意:此字段可能返回 null,表示取不到有效值。
2420
+ # @type EndTime: String
2421
+ # @param CreateTime: 任务创建时间。
2422
+ # @type CreateTime: String
2423
+ # @param Status: 任务状态。
2424
+ # @type Status: String
2425
+ # @param Progress: 任务执行进度。
2426
+ # @type Progress: Integer
2427
+ # @param LogStartTime: 导出日志开始时间。
2428
+ # 注意:此字段可能返回 null,表示取不到有效值。
2429
+ # @type LogStartTime: String
2430
+ # @param LogEndTime: 导出日志结束时间。
2431
+ # 注意:此字段可能返回 null,表示取不到有效值。
2432
+ # @type LogEndTime: String
2433
+ # @param TotalSize: 日志文件总大小,单位KB。
2434
+ # 注意:此字段可能返回 null,表示取不到有效值。
2435
+ # @type TotalSize: Integer
2436
+ # @param DangerLevels: 风险等级列表。0 无风险;1 低风险;2 中风险;3 高风险。
2437
+ # 注意:此字段可能返回 null,表示取不到有效值。
2438
+ # @type DangerLevels: Array
2439
+
2440
+ attr_accessor :AsyncRequestId, :StartTime, :EndTime, :CreateTime, :Status, :Progress, :LogStartTime, :LogEndTime, :TotalSize, :DangerLevels
2441
+
2442
+ def initialize(asyncrequestid=nil, starttime=nil, endtime=nil, createtime=nil, status=nil, progress=nil, logstarttime=nil, logendtime=nil, totalsize=nil, dangerlevels=nil)
2443
+ @AsyncRequestId = asyncrequestid
2444
+ @StartTime = starttime
2445
+ @EndTime = endtime
2446
+ @CreateTime = createtime
2447
+ @Status = status
2448
+ @Progress = progress
2449
+ @LogStartTime = logstarttime
2450
+ @LogEndTime = logendtime
2451
+ @TotalSize = totalsize
2452
+ @DangerLevels = dangerlevels
2453
+ end
2454
+
2455
+ def deserialize(params)
2456
+ @AsyncRequestId = params['AsyncRequestId']
2457
+ @StartTime = params['StartTime']
2458
+ @EndTime = params['EndTime']
2459
+ @CreateTime = params['CreateTime']
2460
+ @Status = params['Status']
2461
+ @Progress = params['Progress']
2462
+ @LogStartTime = params['LogStartTime']
2463
+ @LogEndTime = params['LogEndTime']
2464
+ @TotalSize = params['TotalSize']
2465
+ @DangerLevels = params['DangerLevels']
2466
+ end
2467
+ end
2468
+
2469
+ # 慢日志来源地址详情。
2470
+ class SlowLogHost < TencentCloud::Common::AbstractModel
2471
+ # @param UserHost: 来源地址。
2472
+ # @type UserHost: String
2473
+ # @param Ratio: 该来源地址的慢日志数目占总数目的比例,单位%。
2474
+ # @type Ratio: Float
2475
+ # @param Count: 该来源地址的慢日志数目。
2476
+ # @type Count: Integer
2477
+
2478
+ attr_accessor :UserHost, :Ratio, :Count
2479
+
2480
+ def initialize(userhost=nil, ratio=nil, count=nil)
2481
+ @UserHost = userhost
2482
+ @Ratio = ratio
2483
+ @Count = count
2484
+ end
2485
+
2486
+ def deserialize(params)
2487
+ @UserHost = params['UserHost']
2488
+ @Ratio = params['Ratio']
2489
+ @Count = params['Count']
2490
+ end
2491
+ end
2492
+
2493
+ # 慢日志TopSql
2494
+ class SlowLogTopSqlItem < TencentCloud::Common::AbstractModel
2495
+ # @param LockTime: sql总锁等待时间
2496
+ # @type LockTime: Float
2497
+ # @param LockTimeMax: 最大锁等待时间
2498
+ # @type LockTimeMax: Float
2499
+ # @param LockTimeMin: 最小锁等待时间
2500
+ # @type LockTimeMin: Float
2501
+ # @param RowsExamined: 总扫描行数
2502
+ # @type RowsExamined: Integer
2503
+ # @param RowsExaminedMax: 最大扫描行数
2504
+ # @type RowsExaminedMax: Integer
2505
+ # @param RowsExaminedMin: 最小扫描行数
2506
+ # @type RowsExaminedMin: Integer
2507
+ # @param QueryTime: 总耗时
2508
+ # @type QueryTime: Float
2509
+ # @param QueryTimeMax: 最大执行时间
2510
+ # @type QueryTimeMax: Float
2511
+ # @param QueryTimeMin: 最小执行时间
2512
+ # @type QueryTimeMin: Float
2513
+ # @param RowsSent: 总返回行数
2514
+ # @type RowsSent: Integer
2515
+ # @param RowsSentMax: 最大返回行数
2516
+ # @type RowsSentMax: Integer
2517
+ # @param RowsSentMin: 最小返回行数
2518
+ # @type RowsSentMin: Integer
2519
+ # @param ExecTimes: 执行次数
2520
+ # @type ExecTimes: Integer
2521
+ # @param SqlTemplate: sql模板
2522
+ # @type SqlTemplate: String
2523
+ # @param SqlText: 带参数SQL(随机)
2524
+ # @type SqlText: String
2525
+ # @param Schema: 数据库名
2526
+ # @type Schema: String
2527
+ # @param QueryTimeRatio: 总耗时占比
2528
+ # @type QueryTimeRatio: Float
2529
+ # @param LockTimeRatio: sql总锁等待时间占比
2530
+ # @type LockTimeRatio: Float
2531
+ # @param RowsExaminedRatio: 总扫描行数占比
2532
+ # @type RowsExaminedRatio: Float
2533
+ # @param RowsSentRatio: 总返回行数占比
2534
+ # @type RowsSentRatio: Float
2535
+ # @param QueryTimeAvg: 平均执行时间
2536
+ # @type QueryTimeAvg: Float
2537
+ # @param RowsSentAvg: 平均返回行数
2538
+ # @type RowsSentAvg: Float
2539
+ # @param LockTimeAvg: 平均锁等待时间
2540
+ # @type LockTimeAvg: Float
2541
+ # @param RowsExaminedAvg: 平均扫描行数
2542
+ # @type RowsExaminedAvg: Float
2543
+
2544
+ attr_accessor :LockTime, :LockTimeMax, :LockTimeMin, :RowsExamined, :RowsExaminedMax, :RowsExaminedMin, :QueryTime, :QueryTimeMax, :QueryTimeMin, :RowsSent, :RowsSentMax, :RowsSentMin, :ExecTimes, :SqlTemplate, :SqlText, :Schema, :QueryTimeRatio, :LockTimeRatio, :RowsExaminedRatio, :RowsSentRatio, :QueryTimeAvg, :RowsSentAvg, :LockTimeAvg, :RowsExaminedAvg
2545
+
2546
+ def initialize(locktime=nil, locktimemax=nil, locktimemin=nil, rowsexamined=nil, rowsexaminedmax=nil, rowsexaminedmin=nil, querytime=nil, querytimemax=nil, querytimemin=nil, rowssent=nil, rowssentmax=nil, rowssentmin=nil, exectimes=nil, sqltemplate=nil, sqltext=nil, schema=nil, querytimeratio=nil, locktimeratio=nil, rowsexaminedratio=nil, rowssentratio=nil, querytimeavg=nil, rowssentavg=nil, locktimeavg=nil, rowsexaminedavg=nil)
2547
+ @LockTime = locktime
2548
+ @LockTimeMax = locktimemax
2549
+ @LockTimeMin = locktimemin
2550
+ @RowsExamined = rowsexamined
2551
+ @RowsExaminedMax = rowsexaminedmax
2552
+ @RowsExaminedMin = rowsexaminedmin
2553
+ @QueryTime = querytime
2554
+ @QueryTimeMax = querytimemax
2555
+ @QueryTimeMin = querytimemin
2556
+ @RowsSent = rowssent
2557
+ @RowsSentMax = rowssentmax
2558
+ @RowsSentMin = rowssentmin
2559
+ @ExecTimes = exectimes
2560
+ @SqlTemplate = sqltemplate
2561
+ @SqlText = sqltext
2562
+ @Schema = schema
2563
+ @QueryTimeRatio = querytimeratio
2564
+ @LockTimeRatio = locktimeratio
2565
+ @RowsExaminedRatio = rowsexaminedratio
2566
+ @RowsSentRatio = rowssentratio
2567
+ @QueryTimeAvg = querytimeavg
2568
+ @RowsSentAvg = rowssentavg
2569
+ @LockTimeAvg = locktimeavg
2570
+ @RowsExaminedAvg = rowsexaminedavg
2571
+ end
2572
+
2573
+ def deserialize(params)
2574
+ @LockTime = params['LockTime']
2575
+ @LockTimeMax = params['LockTimeMax']
2576
+ @LockTimeMin = params['LockTimeMin']
2577
+ @RowsExamined = params['RowsExamined']
2578
+ @RowsExaminedMax = params['RowsExaminedMax']
2579
+ @RowsExaminedMin = params['RowsExaminedMin']
2580
+ @QueryTime = params['QueryTime']
2581
+ @QueryTimeMax = params['QueryTimeMax']
2582
+ @QueryTimeMin = params['QueryTimeMin']
2583
+ @RowsSent = params['RowsSent']
2584
+ @RowsSentMax = params['RowsSentMax']
2585
+ @RowsSentMin = params['RowsSentMin']
2586
+ @ExecTimes = params['ExecTimes']
2587
+ @SqlTemplate = params['SqlTemplate']
2588
+ @SqlText = params['SqlText']
2589
+ @Schema = params['Schema']
2590
+ @QueryTimeRatio = params['QueryTimeRatio']
2591
+ @LockTimeRatio = params['LockTimeRatio']
2592
+ @RowsExaminedRatio = params['RowsExaminedRatio']
2593
+ @RowsSentRatio = params['RowsSentRatio']
2594
+ @QueryTimeAvg = params['QueryTimeAvg']
2595
+ @RowsSentAvg = params['RowsSentAvg']
2596
+ @LockTimeAvg = params['LockTimeAvg']
2597
+ @RowsExaminedAvg = params['RowsExaminedAvg']
2598
+ end
2599
+ end
2600
+
2601
+ # 库表空间统计数据。
2602
+ class TableSpaceData < TencentCloud::Common::AbstractModel
2603
+ # @param TableName: 表名。
2604
+ # @type TableName: String
2605
+ # @param TableSchema: 库名。
2606
+ # @type TableSchema: String
2607
+ # @param Engine: 库表的存储引擎。
2608
+ # @type Engine: String
2609
+ # @param DataLength: 数据空间(MB)。
2610
+ # @type DataLength: Float
2611
+ # @param IndexLength: 索引空间(MB)。
2612
+ # @type IndexLength: Float
2613
+ # @param DataFree: 碎片空间(MB)。
2614
+ # @type DataFree: Float
2615
+ # @param TotalLength: 总使用空间(MB)。
2616
+ # @type TotalLength: Float
2617
+ # @param FragRatio: 碎片率(%)。
2618
+ # @type FragRatio: Float
2619
+ # @param TableRows: 行数。
2620
+ # @type TableRows: Integer
2621
+ # @param PhysicalFileSize: 表对应的独立物理文件大小(MB)。
2622
+ # @type PhysicalFileSize: Float
2623
+
2624
+ attr_accessor :TableName, :TableSchema, :Engine, :DataLength, :IndexLength, :DataFree, :TotalLength, :FragRatio, :TableRows, :PhysicalFileSize
2625
+
2626
+ def initialize(tablename=nil, tableschema=nil, engine=nil, datalength=nil, indexlength=nil, datafree=nil, totallength=nil, fragratio=nil, tablerows=nil, physicalfilesize=nil)
2627
+ @TableName = tablename
2628
+ @TableSchema = tableschema
2629
+ @Engine = engine
2630
+ @DataLength = datalength
2631
+ @IndexLength = indexlength
2632
+ @DataFree = datafree
2633
+ @TotalLength = totallength
2634
+ @FragRatio = fragratio
2635
+ @TableRows = tablerows
2636
+ @PhysicalFileSize = physicalfilesize
2637
+ end
2638
+
2639
+ def deserialize(params)
2640
+ @TableName = params['TableName']
2641
+ @TableSchema = params['TableSchema']
2642
+ @Engine = params['Engine']
2643
+ @DataLength = params['DataLength']
2644
+ @IndexLength = params['IndexLength']
2645
+ @DataFree = params['DataFree']
2646
+ @TotalLength = params['TotalLength']
2647
+ @FragRatio = params['FragRatio']
2648
+ @TableRows = params['TableRows']
2649
+ @PhysicalFileSize = params['PhysicalFileSize']
2650
+ end
2651
+ end
2652
+
2653
+ # 库表空间时序数据
2654
+ class TableSpaceTimeSeries < TencentCloud::Common::AbstractModel
2655
+ # @param TableName: 表名。
2656
+ # @type TableName: String
2657
+ # @param TableSchema: 库名。
2658
+ # @type TableSchema: String
2659
+ # @param Engine: 库表的存储引擎。
2660
+ # @type Engine: String
2661
+ # @param SeriesData: 单位时间间隔内的空间指标数据。
2662
+ # @type SeriesData: :class:`Tencentcloud::Dbbrain.v20191016.models.MonitorFloatMetricSeriesData`
2663
+
2664
+ attr_accessor :TableName, :TableSchema, :Engine, :SeriesData
2665
+
2666
+ def initialize(tablename=nil, tableschema=nil, engine=nil, seriesdata=nil)
2667
+ @TableName = tablename
2668
+ @TableSchema = tableschema
2669
+ @Engine = engine
2670
+ @SeriesData = seriesdata
2671
+ end
2672
+
2673
+ def deserialize(params)
2674
+ @TableName = params['TableName']
2675
+ @TableSchema = params['TableSchema']
2676
+ @Engine = params['Engine']
2677
+ unless params['SeriesData'].nil?
2678
+ @SeriesData = MonitorFloatMetricSeriesData.new
2679
+ @SeriesData.deserialize(params['SeriesData'])
2680
+ end
2681
+ end
2682
+ end
2683
+
2684
+ # 单位时间间隔内的慢日志统计
2685
+ class TimeSlice < TencentCloud::Common::AbstractModel
2686
+ # @param Count: 总数
2687
+ # @type Count: Integer
2688
+ # @param Timestamp: 统计开始时间
2689
+ # @type Timestamp: Integer
2690
+
2691
+ attr_accessor :Count, :Timestamp
2692
+
2693
+ def initialize(count=nil, timestamp=nil)
2694
+ @Count = count
2695
+ @Timestamp = timestamp
2696
+ end
2697
+
2698
+ def deserialize(params)
2699
+ @Count = params['Count']
2700
+ @Timestamp = params['Timestamp']
2701
+ end
2702
+ end
2703
+
2704
+ # 用户配置的相关信息,包括邮件配置。
2705
+ class UserProfile < TencentCloud::Common::AbstractModel
2706
+ # @param ProfileId: 配置的id。
2707
+ # 注意:此字段可能返回 null,表示取不到有效值。
2708
+ # @type ProfileId: String
2709
+ # @param ProfileType: 配置类型。
2710
+ # 注意:此字段可能返回 null,表示取不到有效值。
2711
+ # @type ProfileType: String
2712
+ # @param ProfileLevel: 配置级别,"User"或"Instance"。
2713
+ # 注意:此字段可能返回 null,表示取不到有效值。
2714
+ # @type ProfileLevel: String
2715
+ # @param ProfileName: 配置名称。
2716
+ # 注意:此字段可能返回 null,表示取不到有效值。
2717
+ # @type ProfileName: String
2718
+ # @param ProfileInfo: 配置详情。
2719
+ # @type ProfileInfo: :class:`Tencentcloud::Dbbrain.v20191016.models.ProfileInfo`
2720
+
2721
+ attr_accessor :ProfileId, :ProfileType, :ProfileLevel, :ProfileName, :ProfileInfo
2722
+
2723
+ def initialize(profileid=nil, profiletype=nil, profilelevel=nil, profilename=nil, profileinfo=nil)
2724
+ @ProfileId = profileid
2725
+ @ProfileType = profiletype
2726
+ @ProfileLevel = profilelevel
2727
+ @ProfileName = profilename
2728
+ @ProfileInfo = profileinfo
2729
+ end
2730
+
2731
+ def deserialize(params)
2732
+ @ProfileId = params['ProfileId']
2733
+ @ProfileType = params['ProfileType']
2734
+ @ProfileLevel = params['ProfileLevel']
2735
+ @ProfileName = params['ProfileName']
2736
+ unless params['ProfileInfo'].nil?
2737
+ @ProfileInfo = ProfileInfo.new
2738
+ @ProfileInfo.deserialize(params['ProfileInfo'])
2739
+ end
2740
+ end
2741
+ end
2742
+
2743
+ end
2744
+ end
2745
+ end
2746
+