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,2936 @@
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 V20210527
20
+ # AddUserContact请求参数结构体
21
+ class AddUserContactRequest < TencentCloud::Common::AbstractModel
22
+ # @param Name: 联系人姓名,由中英文、数字、空格、!@#$%^&*()_+-=()组成,不能以下划线开头,长度在20以内。
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.v20210527.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.v20210527.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,最大值为100。
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: 分页参数,分页值,最大值为100。
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: 获取健康得分的时间,时间格式如:2019-09-10 12:13:14。
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.v20210527.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
+ # DescribeMySqlProcessList请求参数结构体
962
+ class DescribeMySqlProcessListRequest < TencentCloud::Common::AbstractModel
963
+ # @param InstanceId: 实例ID。
964
+ # @type InstanceId: String
965
+ # @param ID: 线程的ID,用于筛选线程列表。
966
+ # @type ID: Integer
967
+ # @param User: 线程的操作账号名,用于筛选线程列表。
968
+ # @type User: String
969
+ # @param Host: 线程的操作主机地址,用于筛选线程列表。
970
+ # @type Host: String
971
+ # @param DB: 线程的操作数据库,用于筛选线程列表。
972
+ # @type DB: String
973
+ # @param State: 线程的操作状态,用于筛选线程列表。
974
+ # @type State: String
975
+ # @param Command: 线程的执行类型,用于筛选线程列表。
976
+ # @type Command: String
977
+ # @param Time: 线程的操作时长最小值,单位秒,用于筛选操作时长大于该值的线程列表。
978
+ # @type Time: Integer
979
+ # @param Info: 线程的操作语句,用于筛选线程列表。
980
+ # @type Info: String
981
+ # @param Limit: 返回数量,默认20。
982
+ # @type Limit: Integer
983
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
984
+ # @type Product: String
985
+
986
+ attr_accessor :InstanceId, :ID, :User, :Host, :DB, :State, :Command, :Time, :Info, :Limit, :Product
987
+
988
+ def initialize(instanceid=nil, id=nil, user=nil, host=nil, db=nil, state=nil, command=nil, time=nil, info=nil, limit=nil, product=nil)
989
+ @InstanceId = instanceid
990
+ @ID = id
991
+ @User = user
992
+ @Host = host
993
+ @DB = db
994
+ @State = state
995
+ @Command = command
996
+ @Time = time
997
+ @Info = info
998
+ @Limit = limit
999
+ @Product = product
1000
+ end
1001
+
1002
+ def deserialize(params)
1003
+ @InstanceId = params['InstanceId']
1004
+ @ID = params['ID']
1005
+ @User = params['User']
1006
+ @Host = params['Host']
1007
+ @DB = params['DB']
1008
+ @State = params['State']
1009
+ @Command = params['Command']
1010
+ @Time = params['Time']
1011
+ @Info = params['Info']
1012
+ @Limit = params['Limit']
1013
+ @Product = params['Product']
1014
+ end
1015
+ end
1016
+
1017
+ # DescribeMySqlProcessList返回参数结构体
1018
+ class DescribeMySqlProcessListResponse < TencentCloud::Common::AbstractModel
1019
+ # @param ProcessList: 实时线程列表。
1020
+ # @type ProcessList: Array
1021
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1022
+ # @type RequestId: String
1023
+
1024
+ attr_accessor :ProcessList, :RequestId
1025
+
1026
+ def initialize(processlist=nil, requestid=nil)
1027
+ @ProcessList = processlist
1028
+ @RequestId = requestid
1029
+ end
1030
+
1031
+ def deserialize(params)
1032
+ unless params['ProcessList'].nil?
1033
+ @ProcessList = []
1034
+ params['ProcessList'].each do |i|
1035
+ mysqlprocess_tmp = MySqlProcess.new
1036
+ mysqlprocess_tmp.deserialize(i)
1037
+ @ProcessList << mysqlprocess_tmp
1038
+ end
1039
+ end
1040
+ @RequestId = params['RequestId']
1041
+ end
1042
+ end
1043
+
1044
+ # DescribeSecurityAuditLogDownloadUrls请求参数结构体
1045
+ class DescribeSecurityAuditLogDownloadUrlsRequest < TencentCloud::Common::AbstractModel
1046
+ # @param SecAuditGroupId: 安全审计组Id。
1047
+ # @type SecAuditGroupId: String
1048
+ # @param AsyncRequestId: 异步任务Id。
1049
+ # @type AsyncRequestId: Integer
1050
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL。
1051
+ # @type Product: String
1052
+
1053
+ attr_accessor :SecAuditGroupId, :AsyncRequestId, :Product
1054
+
1055
+ def initialize(secauditgroupid=nil, asyncrequestid=nil, product=nil)
1056
+ @SecAuditGroupId = secauditgroupid
1057
+ @AsyncRequestId = asyncrequestid
1058
+ @Product = product
1059
+ end
1060
+
1061
+ def deserialize(params)
1062
+ @SecAuditGroupId = params['SecAuditGroupId']
1063
+ @AsyncRequestId = params['AsyncRequestId']
1064
+ @Product = params['Product']
1065
+ end
1066
+ end
1067
+
1068
+ # DescribeSecurityAuditLogDownloadUrls返回参数结构体
1069
+ class DescribeSecurityAuditLogDownloadUrlsResponse < TencentCloud::Common::AbstractModel
1070
+ # @param Urls: 导出结果的COS链接列表。当结果集很大时,可能会切分为多个url下载。
1071
+ # @type Urls: Array
1072
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1073
+ # @type RequestId: String
1074
+
1075
+ attr_accessor :Urls, :RequestId
1076
+
1077
+ def initialize(urls=nil, requestid=nil)
1078
+ @Urls = urls
1079
+ @RequestId = requestid
1080
+ end
1081
+
1082
+ def deserialize(params)
1083
+ @Urls = params['Urls']
1084
+ @RequestId = params['RequestId']
1085
+ end
1086
+ end
1087
+
1088
+ # DescribeSecurityAuditLogExportTasks请求参数结构体
1089
+ class DescribeSecurityAuditLogExportTasksRequest < TencentCloud::Common::AbstractModel
1090
+ # @param SecAuditGroupId: 安全审计组Id。
1091
+ # @type SecAuditGroupId: String
1092
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL。
1093
+ # @type Product: String
1094
+ # @param AsyncRequestIds: 日志导出任务Id列表。
1095
+ # @type AsyncRequestIds: Array
1096
+ # @param Offset: 偏移量,默认0。
1097
+ # @type Offset: Integer
1098
+ # @param Limit: 返回数量,默认20,最大值为100。
1099
+ # @type Limit: Integer
1100
+
1101
+ attr_accessor :SecAuditGroupId, :Product, :AsyncRequestIds, :Offset, :Limit
1102
+
1103
+ def initialize(secauditgroupid=nil, product=nil, asyncrequestids=nil, offset=nil, limit=nil)
1104
+ @SecAuditGroupId = secauditgroupid
1105
+ @Product = product
1106
+ @AsyncRequestIds = asyncrequestids
1107
+ @Offset = offset
1108
+ @Limit = limit
1109
+ end
1110
+
1111
+ def deserialize(params)
1112
+ @SecAuditGroupId = params['SecAuditGroupId']
1113
+ @Product = params['Product']
1114
+ @AsyncRequestIds = params['AsyncRequestIds']
1115
+ @Offset = params['Offset']
1116
+ @Limit = params['Limit']
1117
+ end
1118
+ end
1119
+
1120
+ # DescribeSecurityAuditLogExportTasks返回参数结构体
1121
+ class DescribeSecurityAuditLogExportTasksResponse < TencentCloud::Common::AbstractModel
1122
+ # @param Tasks: 安全审计日志导出任务列表。
1123
+ # @type Tasks: Array
1124
+ # @param TotalCount: 安全审计日志导出任务总数。
1125
+ # @type TotalCount: Integer
1126
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1127
+ # @type RequestId: String
1128
+
1129
+ attr_accessor :Tasks, :TotalCount, :RequestId
1130
+
1131
+ def initialize(tasks=nil, totalcount=nil, requestid=nil)
1132
+ @Tasks = tasks
1133
+ @TotalCount = totalcount
1134
+ @RequestId = requestid
1135
+ end
1136
+
1137
+ def deserialize(params)
1138
+ unless params['Tasks'].nil?
1139
+ @Tasks = []
1140
+ params['Tasks'].each do |i|
1141
+ seclogexporttaskinfo_tmp = SecLogExportTaskInfo.new
1142
+ seclogexporttaskinfo_tmp.deserialize(i)
1143
+ @Tasks << seclogexporttaskinfo_tmp
1144
+ end
1145
+ end
1146
+ @TotalCount = params['TotalCount']
1147
+ @RequestId = params['RequestId']
1148
+ end
1149
+ end
1150
+
1151
+ # DescribeSlowLogTimeSeriesStats请求参数结构体
1152
+ class DescribeSlowLogTimeSeriesStatsRequest < TencentCloud::Common::AbstractModel
1153
+ # @param InstanceId: 实例 ID 。
1154
+ # @type InstanceId: String
1155
+ # @param StartTime: 开始时间,如“2019-09-10 12:13:14”。
1156
+ # @type StartTime: String
1157
+ # @param EndTime: 结束时间,如“2019-09-10 12:13:14”,结束时间与开始时间的间隔最大可为7天。
1158
+ # @type EndTime: String
1159
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1160
+ # @type Product: String
1161
+
1162
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Product
1163
+
1164
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil)
1165
+ @InstanceId = instanceid
1166
+ @StartTime = starttime
1167
+ @EndTime = endtime
1168
+ @Product = product
1169
+ end
1170
+
1171
+ def deserialize(params)
1172
+ @InstanceId = params['InstanceId']
1173
+ @StartTime = params['StartTime']
1174
+ @EndTime = params['EndTime']
1175
+ @Product = params['Product']
1176
+ end
1177
+ end
1178
+
1179
+ # DescribeSlowLogTimeSeriesStats返回参数结构体
1180
+ class DescribeSlowLogTimeSeriesStatsResponse < TencentCloud::Common::AbstractModel
1181
+ # @param Period: 柱间单位时间间隔,单位为秒。
1182
+ # @type Period: Integer
1183
+ # @param TimeSeries: 单位时间间隔内慢日志数量统计。
1184
+ # @type TimeSeries: Array
1185
+ # @param SeriesData: 单位时间间隔内的实例 cpu 利用率监控数据。
1186
+ # @type SeriesData: :class:`Tencentcloud::Dbbrain.v20210527.models.MonitorMetricSeriesData`
1187
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1188
+ # @type RequestId: String
1189
+
1190
+ attr_accessor :Period, :TimeSeries, :SeriesData, :RequestId
1191
+
1192
+ def initialize(period=nil, timeseries=nil, seriesdata=nil, requestid=nil)
1193
+ @Period = period
1194
+ @TimeSeries = timeseries
1195
+ @SeriesData = seriesdata
1196
+ @RequestId = requestid
1197
+ end
1198
+
1199
+ def deserialize(params)
1200
+ @Period = params['Period']
1201
+ unless params['TimeSeries'].nil?
1202
+ @TimeSeries = []
1203
+ params['TimeSeries'].each do |i|
1204
+ timeslice_tmp = TimeSlice.new
1205
+ timeslice_tmp.deserialize(i)
1206
+ @TimeSeries << timeslice_tmp
1207
+ end
1208
+ end
1209
+ unless params['SeriesData'].nil?
1210
+ @SeriesData = MonitorMetricSeriesData.new
1211
+ @SeriesData.deserialize(params['SeriesData'])
1212
+ end
1213
+ @RequestId = params['RequestId']
1214
+ end
1215
+ end
1216
+
1217
+ # DescribeSlowLogTopSqls请求参数结构体
1218
+ class DescribeSlowLogTopSqlsRequest < TencentCloud::Common::AbstractModel
1219
+ # @param InstanceId: 实例 ID 。
1220
+ # @type InstanceId: String
1221
+ # @param StartTime: 开始时间,如“2019-09-10 12:13:14”。
1222
+ # @type StartTime: String
1223
+ # @param EndTime: 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
1224
+ # @type EndTime: String
1225
+ # @param SortBy: 排序键,目前支持 QueryTime,ExecTimes,RowsSent,LockTime以及RowsExamined 等排序键,默认为QueryTime。
1226
+ # @type SortBy: String
1227
+ # @param OrderBy: 排序方式,支持ASC(升序)以及DESC(降序),默认为DESC。
1228
+ # @type OrderBy: String
1229
+ # @param Limit: 返回数量,默认为20,最大值为100。
1230
+ # @type Limit: Integer
1231
+ # @param Offset: 偏移量,默认为0。
1232
+ # @type Offset: Integer
1233
+ # @param SchemaList: 数据库名称数组。
1234
+ # @type SchemaList: Array
1235
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1236
+ # @type Product: String
1237
+
1238
+ attr_accessor :InstanceId, :StartTime, :EndTime, :SortBy, :OrderBy, :Limit, :Offset, :SchemaList, :Product
1239
+
1240
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, sortby=nil, orderby=nil, limit=nil, offset=nil, schemalist=nil, product=nil)
1241
+ @InstanceId = instanceid
1242
+ @StartTime = starttime
1243
+ @EndTime = endtime
1244
+ @SortBy = sortby
1245
+ @OrderBy = orderby
1246
+ @Limit = limit
1247
+ @Offset = offset
1248
+ @SchemaList = schemalist
1249
+ @Product = product
1250
+ end
1251
+
1252
+ def deserialize(params)
1253
+ @InstanceId = params['InstanceId']
1254
+ @StartTime = params['StartTime']
1255
+ @EndTime = params['EndTime']
1256
+ @SortBy = params['SortBy']
1257
+ @OrderBy = params['OrderBy']
1258
+ @Limit = params['Limit']
1259
+ @Offset = params['Offset']
1260
+ unless params['SchemaList'].nil?
1261
+ @SchemaList = []
1262
+ params['SchemaList'].each do |i|
1263
+ schemaitem_tmp = SchemaItem.new
1264
+ schemaitem_tmp.deserialize(i)
1265
+ @SchemaList << schemaitem_tmp
1266
+ end
1267
+ end
1268
+ @Product = params['Product']
1269
+ end
1270
+ end
1271
+
1272
+ # DescribeSlowLogTopSqls返回参数结构体
1273
+ class DescribeSlowLogTopSqlsResponse < TencentCloud::Common::AbstractModel
1274
+ # @param TotalCount: 符合条件的记录总数。
1275
+ # @type TotalCount: Integer
1276
+ # @param Rows: 慢日志 top sql 列表
1277
+ # @type Rows: Array
1278
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1279
+ # @type RequestId: String
1280
+
1281
+ attr_accessor :TotalCount, :Rows, :RequestId
1282
+
1283
+ def initialize(totalcount=nil, rows=nil, requestid=nil)
1284
+ @TotalCount = totalcount
1285
+ @Rows = rows
1286
+ @RequestId = requestid
1287
+ end
1288
+
1289
+ def deserialize(params)
1290
+ @TotalCount = params['TotalCount']
1291
+ unless params['Rows'].nil?
1292
+ @Rows = []
1293
+ params['Rows'].each do |i|
1294
+ slowlogtopsqlitem_tmp = SlowLogTopSqlItem.new
1295
+ slowlogtopsqlitem_tmp.deserialize(i)
1296
+ @Rows << slowlogtopsqlitem_tmp
1297
+ end
1298
+ end
1299
+ @RequestId = params['RequestId']
1300
+ end
1301
+ end
1302
+
1303
+ # DescribeSlowLogUserHostStats请求参数结构体
1304
+ class DescribeSlowLogUserHostStatsRequest < TencentCloud::Common::AbstractModel
1305
+ # @param InstanceId: 实例ID。
1306
+ # @type InstanceId: String
1307
+ # @param StartTime: 查询范围的开始时间,时间格式如:2019-09-10 12:13:14。
1308
+ # @type StartTime: String
1309
+ # @param EndTime: 查询范围的结束时间,时间格式如:2019-09-10 12:13:14。
1310
+ # @type EndTime: String
1311
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
1312
+ # @type Product: String
1313
+ # @param Md5: SOL模板的MD5值
1314
+ # @type Md5: String
1315
+
1316
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Product, :Md5
1317
+
1318
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil, md5=nil)
1319
+ @InstanceId = instanceid
1320
+ @StartTime = starttime
1321
+ @EndTime = endtime
1322
+ @Product = product
1323
+ @Md5 = md5
1324
+ end
1325
+
1326
+ def deserialize(params)
1327
+ @InstanceId = params['InstanceId']
1328
+ @StartTime = params['StartTime']
1329
+ @EndTime = params['EndTime']
1330
+ @Product = params['Product']
1331
+ @Md5 = params['Md5']
1332
+ end
1333
+ end
1334
+
1335
+ # DescribeSlowLogUserHostStats返回参数结构体
1336
+ class DescribeSlowLogUserHostStatsResponse < TencentCloud::Common::AbstractModel
1337
+ # @param TotalCount: 来源地址数目。
1338
+ # @type TotalCount: Integer
1339
+ # @param Items: 各来源地址的慢日志占比详情列表。
1340
+ # @type Items: Array
1341
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1342
+ # @type RequestId: String
1343
+
1344
+ attr_accessor :TotalCount, :Items, :RequestId
1345
+
1346
+ def initialize(totalcount=nil, items=nil, requestid=nil)
1347
+ @TotalCount = totalcount
1348
+ @Items = items
1349
+ @RequestId = requestid
1350
+ end
1351
+
1352
+ def deserialize(params)
1353
+ @TotalCount = params['TotalCount']
1354
+ unless params['Items'].nil?
1355
+ @Items = []
1356
+ params['Items'].each do |i|
1357
+ slowloghost_tmp = SlowLogHost.new
1358
+ slowloghost_tmp.deserialize(i)
1359
+ @Items << slowloghost_tmp
1360
+ end
1361
+ end
1362
+ @RequestId = params['RequestId']
1363
+ end
1364
+ end
1365
+
1366
+ # DescribeTopSpaceSchemaTimeSeries请求参数结构体
1367
+ class DescribeTopSpaceSchemaTimeSeriesRequest < TencentCloud::Common::AbstractModel
1368
+ # @param InstanceId: 实例ID。
1369
+ # @type InstanceId: String
1370
+ # @param Limit: 返回的Top库数量,最大值为100,默认为20。
1371
+ # @type Limit: Integer
1372
+ # @param SortBy: 筛选Top库所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize(仅云数据库 MySQL实例支持),云数据库 MySQL实例默认为 PhysicalFileSize,其他产品实例默认为TotalLength。
1373
+ # @type SortBy: String
1374
+ # @param StartDate: 开始日期,如“2021-01-01”,最早为当日的前第29天,默认为截止日期的前第6天。
1375
+ # @type StartDate: String
1376
+ # @param EndDate: 截止日期,如“2021-01-01”,最早为当日的前第29天,默认为当日。
1377
+ # @type EndDate: String
1378
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1379
+ # @type Product: String
1380
+
1381
+ attr_accessor :InstanceId, :Limit, :SortBy, :StartDate, :EndDate, :Product
1382
+
1383
+ def initialize(instanceid=nil, limit=nil, sortby=nil, startdate=nil, enddate=nil, product=nil)
1384
+ @InstanceId = instanceid
1385
+ @Limit = limit
1386
+ @SortBy = sortby
1387
+ @StartDate = startdate
1388
+ @EndDate = enddate
1389
+ @Product = product
1390
+ end
1391
+
1392
+ def deserialize(params)
1393
+ @InstanceId = params['InstanceId']
1394
+ @Limit = params['Limit']
1395
+ @SortBy = params['SortBy']
1396
+ @StartDate = params['StartDate']
1397
+ @EndDate = params['EndDate']
1398
+ @Product = params['Product']
1399
+ end
1400
+ end
1401
+
1402
+ # DescribeTopSpaceSchemaTimeSeries返回参数结构体
1403
+ class DescribeTopSpaceSchemaTimeSeriesResponse < TencentCloud::Common::AbstractModel
1404
+ # @param TopSpaceSchemaTimeSeries: 返回的Top库空间统计信息的时序数据列表。
1405
+ # @type TopSpaceSchemaTimeSeries: Array
1406
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1407
+ # @type RequestId: String
1408
+
1409
+ attr_accessor :TopSpaceSchemaTimeSeries, :RequestId
1410
+
1411
+ def initialize(topspaceschematimeseries=nil, requestid=nil)
1412
+ @TopSpaceSchemaTimeSeries = topspaceschematimeseries
1413
+ @RequestId = requestid
1414
+ end
1415
+
1416
+ def deserialize(params)
1417
+ unless params['TopSpaceSchemaTimeSeries'].nil?
1418
+ @TopSpaceSchemaTimeSeries = []
1419
+ params['TopSpaceSchemaTimeSeries'].each do |i|
1420
+ schemaspacetimeseries_tmp = SchemaSpaceTimeSeries.new
1421
+ schemaspacetimeseries_tmp.deserialize(i)
1422
+ @TopSpaceSchemaTimeSeries << schemaspacetimeseries_tmp
1423
+ end
1424
+ end
1425
+ @RequestId = params['RequestId']
1426
+ end
1427
+ end
1428
+
1429
+ # DescribeTopSpaceSchemas请求参数结构体
1430
+ class DescribeTopSpaceSchemasRequest < TencentCloud::Common::AbstractModel
1431
+ # @param InstanceId: 实例 ID 。
1432
+ # @type InstanceId: String
1433
+ # @param Limit: 返回的Top库数量,最大值为100,默认为20。
1434
+ # @type Limit: Integer
1435
+ # @param SortBy: 筛选Top库所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize(仅云数据库 MySQL实例支持),云数据库 MySQL实例默认为 PhysicalFileSize,其他产品实例默认为TotalLength。
1436
+ # @type SortBy: String
1437
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1438
+ # @type Product: String
1439
+
1440
+ attr_accessor :InstanceId, :Limit, :SortBy, :Product
1441
+
1442
+ def initialize(instanceid=nil, limit=nil, sortby=nil, product=nil)
1443
+ @InstanceId = instanceid
1444
+ @Limit = limit
1445
+ @SortBy = sortby
1446
+ @Product = product
1447
+ end
1448
+
1449
+ def deserialize(params)
1450
+ @InstanceId = params['InstanceId']
1451
+ @Limit = params['Limit']
1452
+ @SortBy = params['SortBy']
1453
+ @Product = params['Product']
1454
+ end
1455
+ end
1456
+
1457
+ # DescribeTopSpaceSchemas返回参数结构体
1458
+ class DescribeTopSpaceSchemasResponse < TencentCloud::Common::AbstractModel
1459
+ # @param TopSpaceSchemas: 返回的Top库空间统计信息列表。
1460
+ # @type TopSpaceSchemas: Array
1461
+ # @param Timestamp: 采集库空间数据的时间戳(秒)。
1462
+ # @type Timestamp: Integer
1463
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1464
+ # @type RequestId: String
1465
+
1466
+ attr_accessor :TopSpaceSchemas, :Timestamp, :RequestId
1467
+
1468
+ def initialize(topspaceschemas=nil, timestamp=nil, requestid=nil)
1469
+ @TopSpaceSchemas = topspaceschemas
1470
+ @Timestamp = timestamp
1471
+ @RequestId = requestid
1472
+ end
1473
+
1474
+ def deserialize(params)
1475
+ unless params['TopSpaceSchemas'].nil?
1476
+ @TopSpaceSchemas = []
1477
+ params['TopSpaceSchemas'].each do |i|
1478
+ schemaspacedata_tmp = SchemaSpaceData.new
1479
+ schemaspacedata_tmp.deserialize(i)
1480
+ @TopSpaceSchemas << schemaspacedata_tmp
1481
+ end
1482
+ end
1483
+ @Timestamp = params['Timestamp']
1484
+ @RequestId = params['RequestId']
1485
+ end
1486
+ end
1487
+
1488
+ # DescribeTopSpaceTableTimeSeries请求参数结构体
1489
+ class DescribeTopSpaceTableTimeSeriesRequest < TencentCloud::Common::AbstractModel
1490
+ # @param InstanceId: 实例 ID 。
1491
+ # @type InstanceId: String
1492
+ # @param Limit: 返回的Top表数量,最大值为100,默认为20。
1493
+ # @type Limit: Integer
1494
+ # @param SortBy: 筛选Top表所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize,默认为 PhysicalFileSize。
1495
+ # @type SortBy: String
1496
+ # @param StartDate: 开始日期,如“2021-01-01”,最早为当日的前第29天,默认为截止日期的前第6天。
1497
+ # @type StartDate: String
1498
+ # @param EndDate: 截止日期,如“2021-01-01”,最早为当日的前第29天,默认为当日。
1499
+ # @type EndDate: String
1500
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1501
+ # @type Product: String
1502
+
1503
+ attr_accessor :InstanceId, :Limit, :SortBy, :StartDate, :EndDate, :Product
1504
+
1505
+ def initialize(instanceid=nil, limit=nil, sortby=nil, startdate=nil, enddate=nil, product=nil)
1506
+ @InstanceId = instanceid
1507
+ @Limit = limit
1508
+ @SortBy = sortby
1509
+ @StartDate = startdate
1510
+ @EndDate = enddate
1511
+ @Product = product
1512
+ end
1513
+
1514
+ def deserialize(params)
1515
+ @InstanceId = params['InstanceId']
1516
+ @Limit = params['Limit']
1517
+ @SortBy = params['SortBy']
1518
+ @StartDate = params['StartDate']
1519
+ @EndDate = params['EndDate']
1520
+ @Product = params['Product']
1521
+ end
1522
+ end
1523
+
1524
+ # DescribeTopSpaceTableTimeSeries返回参数结构体
1525
+ class DescribeTopSpaceTableTimeSeriesResponse < TencentCloud::Common::AbstractModel
1526
+ # @param TopSpaceTableTimeSeries: 返回的Top表空间统计信息的时序数据列表。
1527
+ # @type TopSpaceTableTimeSeries: Array
1528
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1529
+ # @type RequestId: String
1530
+
1531
+ attr_accessor :TopSpaceTableTimeSeries, :RequestId
1532
+
1533
+ def initialize(topspacetabletimeseries=nil, requestid=nil)
1534
+ @TopSpaceTableTimeSeries = topspacetabletimeseries
1535
+ @RequestId = requestid
1536
+ end
1537
+
1538
+ def deserialize(params)
1539
+ unless params['TopSpaceTableTimeSeries'].nil?
1540
+ @TopSpaceTableTimeSeries = []
1541
+ params['TopSpaceTableTimeSeries'].each do |i|
1542
+ tablespacetimeseries_tmp = TableSpaceTimeSeries.new
1543
+ tablespacetimeseries_tmp.deserialize(i)
1544
+ @TopSpaceTableTimeSeries << tablespacetimeseries_tmp
1545
+ end
1546
+ end
1547
+ @RequestId = params['RequestId']
1548
+ end
1549
+ end
1550
+
1551
+ # DescribeTopSpaceTables请求参数结构体
1552
+ class DescribeTopSpaceTablesRequest < TencentCloud::Common::AbstractModel
1553
+ # @param InstanceId: 实例 ID 。
1554
+ # @type InstanceId: String
1555
+ # @param Limit: 返回的Top表数量,最大值为100,默认为20。
1556
+ # @type Limit: Integer
1557
+ # @param SortBy: 筛选Top表所用的排序字段,可选字段包含DataLength、IndexLength、TotalLength、DataFree、FragRatio、TableRows、PhysicalFileSize(仅云数据库 MySQL实例支持),云数据库 MySQL实例默认为 PhysicalFileSize,其他产品实例默认为TotalLength。
1558
+ # @type SortBy: String
1559
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1560
+ # @type Product: String
1561
+
1562
+ attr_accessor :InstanceId, :Limit, :SortBy, :Product
1563
+
1564
+ def initialize(instanceid=nil, limit=nil, sortby=nil, product=nil)
1565
+ @InstanceId = instanceid
1566
+ @Limit = limit
1567
+ @SortBy = sortby
1568
+ @Product = product
1569
+ end
1570
+
1571
+ def deserialize(params)
1572
+ @InstanceId = params['InstanceId']
1573
+ @Limit = params['Limit']
1574
+ @SortBy = params['SortBy']
1575
+ @Product = params['Product']
1576
+ end
1577
+ end
1578
+
1579
+ # DescribeTopSpaceTables返回参数结构体
1580
+ class DescribeTopSpaceTablesResponse < TencentCloud::Common::AbstractModel
1581
+ # @param TopSpaceTables: 返回的Top表空间统计信息列表。
1582
+ # @type TopSpaceTables: Array
1583
+ # @param Timestamp: 采集表空间数据的时间戳(秒)。
1584
+ # @type Timestamp: Integer
1585
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1586
+ # @type RequestId: String
1587
+
1588
+ attr_accessor :TopSpaceTables, :Timestamp, :RequestId
1589
+
1590
+ def initialize(topspacetables=nil, timestamp=nil, requestid=nil)
1591
+ @TopSpaceTables = topspacetables
1592
+ @Timestamp = timestamp
1593
+ @RequestId = requestid
1594
+ end
1595
+
1596
+ def deserialize(params)
1597
+ unless params['TopSpaceTables'].nil?
1598
+ @TopSpaceTables = []
1599
+ params['TopSpaceTables'].each do |i|
1600
+ tablespacedata_tmp = TableSpaceData.new
1601
+ tablespacedata_tmp.deserialize(i)
1602
+ @TopSpaceTables << tablespacedata_tmp
1603
+ end
1604
+ end
1605
+ @Timestamp = params['Timestamp']
1606
+ @RequestId = params['RequestId']
1607
+ end
1608
+ end
1609
+
1610
+ # DescribeUserSqlAdvice请求参数结构体
1611
+ class DescribeUserSqlAdviceRequest < TencentCloud::Common::AbstractModel
1612
+ # @param InstanceId: 实例ID。
1613
+ # @type InstanceId: String
1614
+ # @param SqlText: SQL语句。
1615
+ # @type SqlText: String
1616
+ # @param Schema: 库名。
1617
+ # @type Schema: String
1618
+
1619
+ attr_accessor :InstanceId, :SqlText, :Schema
1620
+
1621
+ def initialize(instanceid=nil, sqltext=nil, schema=nil)
1622
+ @InstanceId = instanceid
1623
+ @SqlText = sqltext
1624
+ @Schema = schema
1625
+ end
1626
+
1627
+ def deserialize(params)
1628
+ @InstanceId = params['InstanceId']
1629
+ @SqlText = params['SqlText']
1630
+ @Schema = params['Schema']
1631
+ end
1632
+ end
1633
+
1634
+ # DescribeUserSqlAdvice返回参数结构体
1635
+ class DescribeUserSqlAdviceResponse < TencentCloud::Common::AbstractModel
1636
+ # @param Advices: SQL优化建议,可解析为JSON数组,无需优化时输出为空。
1637
+ # @type Advices: String
1638
+ # @param Comments: SQL优化建议备注,可解析为String数组,无需优化时输出为空。
1639
+ # @type Comments: String
1640
+ # @param SqlText: SQL语句。
1641
+ # @type SqlText: String
1642
+ # @param Schema: 库名。
1643
+ # @type Schema: String
1644
+ # @param Tables: 相关表的DDL信息,可解析为JSON数组。
1645
+ # @type Tables: String
1646
+ # @param SqlPlan: SQL执行计划,可解析为JSON,无需优化时输出为空。
1647
+ # @type SqlPlan: String
1648
+ # @param Cost: SQL优化后的成本节约详情,可解析为JSON,无需优化时输出为空。
1649
+ # @type Cost: String
1650
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1651
+ # @type RequestId: String
1652
+
1653
+ attr_accessor :Advices, :Comments, :SqlText, :Schema, :Tables, :SqlPlan, :Cost, :RequestId
1654
+
1655
+ def initialize(advices=nil, comments=nil, sqltext=nil, schema=nil, tables=nil, sqlplan=nil, cost=nil, requestid=nil)
1656
+ @Advices = advices
1657
+ @Comments = comments
1658
+ @SqlText = sqltext
1659
+ @Schema = schema
1660
+ @Tables = tables
1661
+ @SqlPlan = sqlplan
1662
+ @Cost = cost
1663
+ @RequestId = requestid
1664
+ end
1665
+
1666
+ def deserialize(params)
1667
+ @Advices = params['Advices']
1668
+ @Comments = params['Comments']
1669
+ @SqlText = params['SqlText']
1670
+ @Schema = params['Schema']
1671
+ @Tables = params['Tables']
1672
+ @SqlPlan = params['SqlPlan']
1673
+ @Cost = params['Cost']
1674
+ @RequestId = params['RequestId']
1675
+ end
1676
+ end
1677
+
1678
+ # 实例诊断历史事件
1679
+ class DiagHistoryEventItem < TencentCloud::Common::AbstractModel
1680
+ # @param DiagType: 诊断类型。
1681
+ # @type DiagType: String
1682
+ # @param EndTime: 结束时间。
1683
+ # @type EndTime: String
1684
+ # @param StartTime: 开始时间。
1685
+ # @type StartTime: String
1686
+ # @param EventId: 事件唯一ID 。
1687
+ # @type EventId: Integer
1688
+ # @param Severity: 严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。
1689
+ # @type Severity: Integer
1690
+ # @param Outline: 诊断概要。
1691
+ # @type Outline: String
1692
+ # @param DiagItem: 诊断项说明。
1693
+ # @type DiagItem: String
1694
+ # @param InstanceId: 实例 ID 。
1695
+ # @type InstanceId: String
1696
+ # @param Metric: 保留字段。
1697
+ # 注意:此字段可能返回 null,表示取不到有效值。
1698
+ # @type Metric: String
1699
+ # @param Region: 地域。
1700
+ # @type Region: String
1701
+
1702
+ attr_accessor :DiagType, :EndTime, :StartTime, :EventId, :Severity, :Outline, :DiagItem, :InstanceId, :Metric, :Region
1703
+
1704
+ def initialize(diagtype=nil, endtime=nil, starttime=nil, eventid=nil, severity=nil, outline=nil, diagitem=nil, instanceid=nil, metric=nil, region=nil)
1705
+ @DiagType = diagtype
1706
+ @EndTime = endtime
1707
+ @StartTime = starttime
1708
+ @EventId = eventid
1709
+ @Severity = severity
1710
+ @Outline = outline
1711
+ @DiagItem = diagitem
1712
+ @InstanceId = instanceid
1713
+ @Metric = metric
1714
+ @Region = region
1715
+ end
1716
+
1717
+ def deserialize(params)
1718
+ @DiagType = params['DiagType']
1719
+ @EndTime = params['EndTime']
1720
+ @StartTime = params['StartTime']
1721
+ @EventId = params['EventId']
1722
+ @Severity = params['Severity']
1723
+ @Outline = params['Outline']
1724
+ @DiagItem = params['DiagItem']
1725
+ @InstanceId = params['InstanceId']
1726
+ @Metric = params['Metric']
1727
+ @Region = params['Region']
1728
+ end
1729
+ end
1730
+
1731
+ # 异常事件信息。
1732
+ class EventInfo < TencentCloud::Common::AbstractModel
1733
+ # @param EventId: 事件 ID 。
1734
+ # @type EventId: Integer
1735
+ # @param DiagType: 诊断类型。
1736
+ # @type DiagType: String
1737
+ # @param StartTime: 开始时间。
1738
+ # @type StartTime: String
1739
+ # @param EndTime: 结束时间。
1740
+ # @type EndTime: String
1741
+ # @param Outline: 概要。
1742
+ # @type Outline: String
1743
+ # @param Severity: 严重程度。严重程度分为5级,按影响程度从高至低分别为:1:致命,2:严重,3:告警,4:提示,5:健康。
1744
+ # @type Severity: Integer
1745
+ # @param ScoreLost: 扣分。
1746
+ # @type ScoreLost: Integer
1747
+ # @param Metric: 保留字段。
1748
+ # @type Metric: String
1749
+ # @param Count: 告警数目。
1750
+ # @type Count: Integer
1751
+
1752
+ attr_accessor :EventId, :DiagType, :StartTime, :EndTime, :Outline, :Severity, :ScoreLost, :Metric, :Count
1753
+
1754
+ def initialize(eventid=nil, diagtype=nil, starttime=nil, endtime=nil, outline=nil, severity=nil, scorelost=nil, metric=nil, count=nil)
1755
+ @EventId = eventid
1756
+ @DiagType = diagtype
1757
+ @StartTime = starttime
1758
+ @EndTime = endtime
1759
+ @Outline = outline
1760
+ @Severity = severity
1761
+ @ScoreLost = scorelost
1762
+ @Metric = metric
1763
+ @Count = count
1764
+ end
1765
+
1766
+ def deserialize(params)
1767
+ @EventId = params['EventId']
1768
+ @DiagType = params['DiagType']
1769
+ @StartTime = params['StartTime']
1770
+ @EndTime = params['EndTime']
1771
+ @Outline = params['Outline']
1772
+ @Severity = params['Severity']
1773
+ @ScoreLost = params['ScoreLost']
1774
+ @Metric = params['Metric']
1775
+ @Count = params['Count']
1776
+ end
1777
+ end
1778
+
1779
+ # 描述组信息。
1780
+ class GroupItem < TencentCloud::Common::AbstractModel
1781
+ # @param Id: 组id。
1782
+ # @type Id: Integer
1783
+ # @param Name: 组名称。
1784
+ # @type Name: String
1785
+ # @param MemberCount: 组成员数量。
1786
+ # @type MemberCount: Integer
1787
+
1788
+ attr_accessor :Id, :Name, :MemberCount
1789
+
1790
+ def initialize(id=nil, name=nil, membercount=nil)
1791
+ @Id = id
1792
+ @Name = name
1793
+ @MemberCount = membercount
1794
+ end
1795
+
1796
+ def deserialize(params)
1797
+ @Id = params['Id']
1798
+ @Name = params['Name']
1799
+ @MemberCount = params['MemberCount']
1800
+ end
1801
+ end
1802
+
1803
+ # 健康报告任务详情。
1804
+ class HealthReportTask < TencentCloud::Common::AbstractModel
1805
+ # @param AsyncRequestId: 异步任务请求 ID。
1806
+ # @type AsyncRequestId: Integer
1807
+ # @param Source: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。
1808
+ # @type Source: String
1809
+ # @param Progress: 任务完成进度,单位%。
1810
+ # @type Progress: Integer
1811
+ # @param CreateTime: 任务创建时间。
1812
+ # @type CreateTime: String
1813
+ # @param StartTime: 任务开始执行时间。
1814
+ # @type StartTime: String
1815
+ # @param EndTime: 任务完成执行时间。
1816
+ # @type EndTime: String
1817
+ # @param InstanceInfo: 任务所属实例的基础信息。
1818
+ # @type InstanceInfo: :class:`Tencentcloud::Dbbrain.v20210527.models.InstanceBasicInfo`
1819
+ # @param HealthStatus: 健康报告中的健康信息。
1820
+ # @type HealthStatus: :class:`Tencentcloud::Dbbrain.v20210527.models.HealthStatus`
1821
+
1822
+ attr_accessor :AsyncRequestId, :Source, :Progress, :CreateTime, :StartTime, :EndTime, :InstanceInfo, :HealthStatus
1823
+
1824
+ def initialize(asyncrequestid=nil, source=nil, progress=nil, createtime=nil, starttime=nil, endtime=nil, instanceinfo=nil, healthstatus=nil)
1825
+ @AsyncRequestId = asyncrequestid
1826
+ @Source = source
1827
+ @Progress = progress
1828
+ @CreateTime = createtime
1829
+ @StartTime = starttime
1830
+ @EndTime = endtime
1831
+ @InstanceInfo = instanceinfo
1832
+ @HealthStatus = healthstatus
1833
+ end
1834
+
1835
+ def deserialize(params)
1836
+ @AsyncRequestId = params['AsyncRequestId']
1837
+ @Source = params['Source']
1838
+ @Progress = params['Progress']
1839
+ @CreateTime = params['CreateTime']
1840
+ @StartTime = params['StartTime']
1841
+ @EndTime = params['EndTime']
1842
+ unless params['InstanceInfo'].nil?
1843
+ @InstanceInfo = InstanceBasicInfo.new
1844
+ @InstanceInfo.deserialize(params['InstanceInfo'])
1845
+ end
1846
+ unless params['HealthStatus'].nil?
1847
+ @HealthStatus = HealthStatus.new
1848
+ @HealthStatus.deserialize(params['HealthStatus'])
1849
+ end
1850
+ end
1851
+ end
1852
+
1853
+ # 获取健康得分返回的详情。
1854
+ class HealthScoreInfo < TencentCloud::Common::AbstractModel
1855
+ # @param IssueTypes: 异常详情。
1856
+ # @type IssueTypes: Array
1857
+ # @param EventsTotalCount: 异常事件总数。
1858
+ # @type EventsTotalCount: Integer
1859
+ # @param HealthScore: 健康得分。
1860
+ # @type HealthScore: Integer
1861
+ # @param HealthLevel: 健康等级, 如:"HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK"。
1862
+ # @type HealthLevel: String
1863
+
1864
+ attr_accessor :IssueTypes, :EventsTotalCount, :HealthScore, :HealthLevel
1865
+
1866
+ def initialize(issuetypes=nil, eventstotalcount=nil, healthscore=nil, healthlevel=nil)
1867
+ @IssueTypes = issuetypes
1868
+ @EventsTotalCount = eventstotalcount
1869
+ @HealthScore = healthscore
1870
+ @HealthLevel = healthlevel
1871
+ end
1872
+
1873
+ def deserialize(params)
1874
+ unless params['IssueTypes'].nil?
1875
+ @IssueTypes = []
1876
+ params['IssueTypes'].each do |i|
1877
+ issuetypeinfo_tmp = IssueTypeInfo.new
1878
+ issuetypeinfo_tmp.deserialize(i)
1879
+ @IssueTypes << issuetypeinfo_tmp
1880
+ end
1881
+ end
1882
+ @EventsTotalCount = params['EventsTotalCount']
1883
+ @HealthScore = params['HealthScore']
1884
+ @HealthLevel = params['HealthLevel']
1885
+ end
1886
+ end
1887
+
1888
+ # 实例健康详情。
1889
+ class HealthStatus < TencentCloud::Common::AbstractModel
1890
+ # @param HealthScore: 健康分数,满分100。
1891
+ # @type HealthScore: Integer
1892
+ # @param HealthLevel: 健康等级,取值包括:"HEALTH" - 健康;"SUB_HEALTH" - 亚健康;"RISK"- 危险;"HIGH_RISK" - 高危。
1893
+ # @type HealthLevel: String
1894
+ # @param ScoreLost: 总扣分分数。
1895
+ # @type ScoreLost: Integer
1896
+ # @param ScoreDetails: 扣分详情。
1897
+ # 注意:此字段可能返回 null,表示取不到有效值。
1898
+ # @type ScoreDetails: Array
1899
+
1900
+ attr_accessor :HealthScore, :HealthLevel, :ScoreLost, :ScoreDetails
1901
+
1902
+ def initialize(healthscore=nil, healthlevel=nil, scorelost=nil, scoredetails=nil)
1903
+ @HealthScore = healthscore
1904
+ @HealthLevel = healthlevel
1905
+ @ScoreLost = scorelost
1906
+ @ScoreDetails = scoredetails
1907
+ end
1908
+
1909
+ def deserialize(params)
1910
+ @HealthScore = params['HealthScore']
1911
+ @HealthLevel = params['HealthLevel']
1912
+ @ScoreLost = params['ScoreLost']
1913
+ unless params['ScoreDetails'].nil?
1914
+ @ScoreDetails = []
1915
+ params['ScoreDetails'].each do |i|
1916
+ scoredetail_tmp = ScoreDetail.new
1917
+ scoredetail_tmp.deserialize(i)
1918
+ @ScoreDetails << scoredetail_tmp
1919
+ end
1920
+ end
1921
+ end
1922
+ end
1923
+
1924
+ # 实例基础信息。
1925
+ class InstanceBasicInfo < TencentCloud::Common::AbstractModel
1926
+ # @param InstanceId: 实例ID。
1927
+ # @type InstanceId: String
1928
+ # @param InstanceName: 实例名称。
1929
+ # @type InstanceName: String
1930
+ # @param Vip: 实例内网IP。
1931
+ # @type Vip: String
1932
+ # @param Vport: 实例内网Port。
1933
+ # @type Vport: Integer
1934
+ # @param Product: 实例产品。
1935
+ # @type Product: String
1936
+ # @param EngineVersion: 实例引擎版本。
1937
+ # @type EngineVersion: String
1938
+
1939
+ attr_accessor :InstanceId, :InstanceName, :Vip, :Vport, :Product, :EngineVersion
1940
+
1941
+ def initialize(instanceid=nil, instancename=nil, vip=nil, vport=nil, product=nil, engineversion=nil)
1942
+ @InstanceId = instanceid
1943
+ @InstanceName = instancename
1944
+ @Vip = vip
1945
+ @Vport = vport
1946
+ @Product = product
1947
+ @EngineVersion = engineversion
1948
+ end
1949
+
1950
+ def deserialize(params)
1951
+ @InstanceId = params['InstanceId']
1952
+ @InstanceName = params['InstanceName']
1953
+ @Vip = params['Vip']
1954
+ @Vport = params['Vport']
1955
+ @Product = params['Product']
1956
+ @EngineVersion = params['EngineVersion']
1957
+ end
1958
+ end
1959
+
1960
+ # 实例配置。
1961
+ class InstanceConfs < TencentCloud::Common::AbstractModel
1962
+ # @param DailyInspection: 数据库巡检开关, Yes/No。
1963
+ # @type DailyInspection: String
1964
+ # @param OverviewDisplay: 实例概览开关,Yes/No。
1965
+ # @type OverviewDisplay: String
1966
+
1967
+ attr_accessor :DailyInspection, :OverviewDisplay
1968
+
1969
+ def initialize(dailyinspection=nil, overviewdisplay=nil)
1970
+ @DailyInspection = dailyinspection
1971
+ @OverviewDisplay = overviewdisplay
1972
+ end
1973
+
1974
+ def deserialize(params)
1975
+ @DailyInspection = params['DailyInspection']
1976
+ @OverviewDisplay = params['OverviewDisplay']
1977
+ end
1978
+ end
1979
+
1980
+ # 查询实例列表,返回实例的相关信息的对象。
1981
+ class InstanceInfo < TencentCloud::Common::AbstractModel
1982
+ # @param InstanceId: 实例ID。
1983
+ # @type InstanceId: String
1984
+ # @param InstanceName: 实例名称。
1985
+ # @type InstanceName: String
1986
+ # @param Region: 实例所属地域。
1987
+ # @type Region: String
1988
+ # @param HealthScore: 健康得分。
1989
+ # @type HealthScore: Integer
1990
+ # @param Product: 所属产品。
1991
+ # @type Product: String
1992
+ # @param EventCount: 异常事件数量。
1993
+ # @type EventCount: Integer
1994
+ # @param InstanceType: 实例类型:1:MASTER;2:DR,3:RO,4:SDR。
1995
+ # @type InstanceType: Integer
1996
+ # @param Cpu: 核心数。
1997
+ # @type Cpu: Integer
1998
+ # @param Memory: 内存,单位MB。
1999
+ # @type Memory: Integer
2000
+ # @param Volume: 硬盘存储,单位GB。
2001
+ # @type Volume: Integer
2002
+ # @param EngineVersion: 数据库版本。
2003
+ # @type EngineVersion: String
2004
+ # @param Vip: 内网地址。
2005
+ # @type Vip: String
2006
+ # @param Vport: 内网端口。
2007
+ # @type Vport: Integer
2008
+ # @param Source: 接入来源。
2009
+ # @type Source: String
2010
+ # @param GroupId: 分组ID。
2011
+ # @type GroupId: String
2012
+ # @param GroupName: 分组组名。
2013
+ # @type GroupName: String
2014
+ # @param Status: 实例状态:0:发货中;1:运行正常;4:销毁中;5:隔离中。
2015
+ # @type Status: Integer
2016
+ # @param UniqSubnetId: 子网统一ID。
2017
+ # @type UniqSubnetId: String
2018
+ # @param DeployMode: cdb类型。
2019
+ # @type DeployMode: String
2020
+ # @param InitFlag: cdb实例初始化标志:0:未初始化;1:已初始化。
2021
+ # @type InitFlag: Integer
2022
+ # @param TaskStatus: 任务状态。
2023
+ # @type TaskStatus: Integer
2024
+ # @param UniqVpcId: 私有网络统一ID。
2025
+ # @type UniqVpcId: String
2026
+ # @param InstanceConf: 实例巡检/概览的状态。
2027
+ # @type InstanceConf: :class:`Tencentcloud::Dbbrain.v20210527.models.InstanceConfs`
2028
+ # @param DeadlineTime: 资源到期时间。
2029
+ # @type DeadlineTime: String
2030
+ # @param IsSupported: 是否是DBbrain支持的实例。
2031
+ # @type IsSupported: Boolean
2032
+ # @param SecAuditStatus: 实例安全审计日志开启状态:ON: 安全审计开启;OFF: 未开启安全审计。
2033
+ # @type SecAuditStatus: String
2034
+ # @param AuditPolicyStatus: 实例审计日志开启状态,ALL_AUDIT: 开启全审计;RULE_AUDIT: 开启规则审计;UNBOUND: 未开启审计。
2035
+ # @type AuditPolicyStatus: String
2036
+ # @param AuditRunningStatus: 实例审计日志运行状态:normal: 运行中; paused: 欠费暂停。
2037
+ # @type AuditRunningStatus: String
2038
+
2039
+ 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
2040
+
2041
+ 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)
2042
+ @InstanceId = instanceid
2043
+ @InstanceName = instancename
2044
+ @Region = region
2045
+ @HealthScore = healthscore
2046
+ @Product = product
2047
+ @EventCount = eventcount
2048
+ @InstanceType = instancetype
2049
+ @Cpu = cpu
2050
+ @Memory = memory
2051
+ @Volume = volume
2052
+ @EngineVersion = engineversion
2053
+ @Vip = vip
2054
+ @Vport = vport
2055
+ @Source = source
2056
+ @GroupId = groupid
2057
+ @GroupName = groupname
2058
+ @Status = status
2059
+ @UniqSubnetId = uniqsubnetid
2060
+ @DeployMode = deploymode
2061
+ @InitFlag = initflag
2062
+ @TaskStatus = taskstatus
2063
+ @UniqVpcId = uniqvpcid
2064
+ @InstanceConf = instanceconf
2065
+ @DeadlineTime = deadlinetime
2066
+ @IsSupported = issupported
2067
+ @SecAuditStatus = secauditstatus
2068
+ @AuditPolicyStatus = auditpolicystatus
2069
+ @AuditRunningStatus = auditrunningstatus
2070
+ end
2071
+
2072
+ def deserialize(params)
2073
+ @InstanceId = params['InstanceId']
2074
+ @InstanceName = params['InstanceName']
2075
+ @Region = params['Region']
2076
+ @HealthScore = params['HealthScore']
2077
+ @Product = params['Product']
2078
+ @EventCount = params['EventCount']
2079
+ @InstanceType = params['InstanceType']
2080
+ @Cpu = params['Cpu']
2081
+ @Memory = params['Memory']
2082
+ @Volume = params['Volume']
2083
+ @EngineVersion = params['EngineVersion']
2084
+ @Vip = params['Vip']
2085
+ @Vport = params['Vport']
2086
+ @Source = params['Source']
2087
+ @GroupId = params['GroupId']
2088
+ @GroupName = params['GroupName']
2089
+ @Status = params['Status']
2090
+ @UniqSubnetId = params['UniqSubnetId']
2091
+ @DeployMode = params['DeployMode']
2092
+ @InitFlag = params['InitFlag']
2093
+ @TaskStatus = params['TaskStatus']
2094
+ @UniqVpcId = params['UniqVpcId']
2095
+ unless params['InstanceConf'].nil?
2096
+ @InstanceConf = InstanceConfs.new
2097
+ @InstanceConf.deserialize(params['InstanceConf'])
2098
+ end
2099
+ @DeadlineTime = params['DeadlineTime']
2100
+ @IsSupported = params['IsSupported']
2101
+ @SecAuditStatus = params['SecAuditStatus']
2102
+ @AuditPolicyStatus = params['AuditPolicyStatus']
2103
+ @AuditRunningStatus = params['AuditRunningStatus']
2104
+ end
2105
+ end
2106
+
2107
+ # 指标信息。
2108
+ class IssueTypeInfo < TencentCloud::Common::AbstractModel
2109
+ # @param IssueType: 指标分类:AVAILABILITY:可用性,MAINTAINABILITY:可维护性,PERFORMANCE,性能,RELIABILITY可靠性。
2110
+ # @type IssueType: String
2111
+ # @param Events: 异常事件。
2112
+ # @type Events: Array
2113
+ # @param TotalCount: 异常事件总数。
2114
+ # @type TotalCount: Integer
2115
+
2116
+ attr_accessor :IssueType, :Events, :TotalCount
2117
+
2118
+ def initialize(issuetype=nil, events=nil, totalcount=nil)
2119
+ @IssueType = issuetype
2120
+ @Events = events
2121
+ @TotalCount = totalcount
2122
+ end
2123
+
2124
+ def deserialize(params)
2125
+ @IssueType = params['IssueType']
2126
+ unless params['Events'].nil?
2127
+ @Events = []
2128
+ params['Events'].each do |i|
2129
+ eventinfo_tmp = EventInfo.new
2130
+ eventinfo_tmp.deserialize(i)
2131
+ @Events << eventinfo_tmp
2132
+ end
2133
+ end
2134
+ @TotalCount = params['TotalCount']
2135
+ end
2136
+ end
2137
+
2138
+ # KillMySqlThreads请求参数结构体
2139
+ class KillMySqlThreadsRequest < TencentCloud::Common::AbstractModel
2140
+ # @param InstanceId: 实例ID。
2141
+ # @type InstanceId: String
2142
+ # @param Stage: kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。
2143
+ # @type Stage: String
2144
+ # @param Threads: 需要kill的sql会话ID列表,此参数用于Prepare阶段。
2145
+ # @type Threads: Array
2146
+ # @param SqlExecId: 执行ID,此参数用于Commit阶段。
2147
+ # @type SqlExecId: String
2148
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
2149
+ # @type Product: String
2150
+
2151
+ attr_accessor :InstanceId, :Stage, :Threads, :SqlExecId, :Product
2152
+
2153
+ def initialize(instanceid=nil, stage=nil, threads=nil, sqlexecid=nil, product=nil)
2154
+ @InstanceId = instanceid
2155
+ @Stage = stage
2156
+ @Threads = threads
2157
+ @SqlExecId = sqlexecid
2158
+ @Product = product
2159
+ end
2160
+
2161
+ def deserialize(params)
2162
+ @InstanceId = params['InstanceId']
2163
+ @Stage = params['Stage']
2164
+ @Threads = params['Threads']
2165
+ @SqlExecId = params['SqlExecId']
2166
+ @Product = params['Product']
2167
+ end
2168
+ end
2169
+
2170
+ # KillMySqlThreads返回参数结构体
2171
+ class KillMySqlThreadsResponse < TencentCloud::Common::AbstractModel
2172
+ # @param Threads: kill完成的sql会话ID列表。
2173
+ # @type Threads: Array
2174
+ # @param SqlExecId: 执行ID, Prepare阶段的任务输出,用于Commit阶段中指定执行kill操作的会话ID。
2175
+ # 注意:此字段可能返回 null,表示取不到有效值。
2176
+ # @type SqlExecId: String
2177
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2178
+ # @type RequestId: String
2179
+
2180
+ attr_accessor :Threads, :SqlExecId, :RequestId
2181
+
2182
+ def initialize(threads=nil, sqlexecid=nil, requestid=nil)
2183
+ @Threads = threads
2184
+ @SqlExecId = sqlexecid
2185
+ @RequestId = requestid
2186
+ end
2187
+
2188
+ def deserialize(params)
2189
+ @Threads = params['Threads']
2190
+ @SqlExecId = params['SqlExecId']
2191
+ @RequestId = params['RequestId']
2192
+ end
2193
+ end
2194
+
2195
+ # 邮件发送配置
2196
+ class MailConfiguration < TencentCloud::Common::AbstractModel
2197
+ # @param SendMail: 是否开启邮件发送: 0, 否; 1, 是。
2198
+ # @type SendMail: Integer
2199
+ # @param Region: 地域配置, 如["ap-guangzhou", "ap-shanghai"]。巡检的邮件发送模版,配置需要发送巡检邮件的地域;订阅的邮件发送模版,配置当前订阅实例的所属地域。
2200
+ # @type Region: Array
2201
+ # @param HealthStatus: 发送指定的健康等级的报告, 如["HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK"]。
2202
+ # @type HealthStatus: Array
2203
+ # @param ContactPerson: 联系人id, 联系人/联系组不能都为空。
2204
+ # @type ContactPerson: Array
2205
+ # @param ContactGroup: 联系组id, 联系人/联系组不能都为空。
2206
+ # @type ContactGroup: Array
2207
+
2208
+ attr_accessor :SendMail, :Region, :HealthStatus, :ContactPerson, :ContactGroup
2209
+
2210
+ def initialize(sendmail=nil, region=nil, healthstatus=nil, contactperson=nil, contactgroup=nil)
2211
+ @SendMail = sendmail
2212
+ @Region = region
2213
+ @HealthStatus = healthstatus
2214
+ @ContactPerson = contactperson
2215
+ @ContactGroup = contactgroup
2216
+ end
2217
+
2218
+ def deserialize(params)
2219
+ @SendMail = params['SendMail']
2220
+ @Region = params['Region']
2221
+ @HealthStatus = params['HealthStatus']
2222
+ @ContactPerson = params['ContactPerson']
2223
+ @ContactGroup = params['ContactGroup']
2224
+ end
2225
+ end
2226
+
2227
+ # ModifyDiagDBInstanceConf请求参数结构体
2228
+ class ModifyDiagDBInstanceConfRequest < TencentCloud::Common::AbstractModel
2229
+ # @param InstanceConfs: 实例配置,包括巡检、概览开关等。
2230
+ # @type InstanceConfs: :class:`Tencentcloud::Dbbrain.v20210527.models.InstanceConfs`
2231
+ # @param Regions: 生效实例地域,取值为"All",代表全地域。
2232
+ # @type Regions: String
2233
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL。
2234
+ # @type Product: String
2235
+ # @param InstanceIds: 指定更改巡检状态的实例ID。
2236
+ # @type InstanceIds: Array
2237
+
2238
+ attr_accessor :InstanceConfs, :Regions, :Product, :InstanceIds
2239
+
2240
+ def initialize(instanceconfs=nil, regions=nil, product=nil, instanceids=nil)
2241
+ @InstanceConfs = instanceconfs
2242
+ @Regions = regions
2243
+ @Product = product
2244
+ @InstanceIds = instanceids
2245
+ end
2246
+
2247
+ def deserialize(params)
2248
+ unless params['InstanceConfs'].nil?
2249
+ @InstanceConfs = InstanceConfs.new
2250
+ @InstanceConfs.deserialize(params['InstanceConfs'])
2251
+ end
2252
+ @Regions = params['Regions']
2253
+ @Product = params['Product']
2254
+ @InstanceIds = params['InstanceIds']
2255
+ end
2256
+ end
2257
+
2258
+ # ModifyDiagDBInstanceConf返回参数结构体
2259
+ class ModifyDiagDBInstanceConfResponse < TencentCloud::Common::AbstractModel
2260
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2261
+ # @type RequestId: String
2262
+
2263
+ attr_accessor :RequestId
2264
+
2265
+ def initialize(requestid=nil)
2266
+ @RequestId = requestid
2267
+ end
2268
+
2269
+ def deserialize(params)
2270
+ @RequestId = params['RequestId']
2271
+ end
2272
+ end
2273
+
2274
+ # 监控数据(浮点型)
2275
+ class MonitorFloatMetric < TencentCloud::Common::AbstractModel
2276
+ # @param Metric: 指标名称。
2277
+ # @type Metric: String
2278
+ # @param Unit: 指标单位。
2279
+ # @type Unit: String
2280
+ # @param Values: 指标值。
2281
+ # 注意:此字段可能返回 null,表示取不到有效值。
2282
+ # @type Values: Array
2283
+
2284
+ attr_accessor :Metric, :Unit, :Values
2285
+
2286
+ def initialize(metric=nil, unit=nil, values=nil)
2287
+ @Metric = metric
2288
+ @Unit = unit
2289
+ @Values = values
2290
+ end
2291
+
2292
+ def deserialize(params)
2293
+ @Metric = params['Metric']
2294
+ @Unit = params['Unit']
2295
+ @Values = params['Values']
2296
+ end
2297
+ end
2298
+
2299
+ # 单位时间间隔内的监控指标数据(浮点型)
2300
+ class MonitorFloatMetricSeriesData < TencentCloud::Common::AbstractModel
2301
+ # @param Series: 监控指标。
2302
+ # @type Series: Array
2303
+ # @param Timestamp: 监控指标对应的时间戳。
2304
+ # @type Timestamp: Array
2305
+
2306
+ attr_accessor :Series, :Timestamp
2307
+
2308
+ def initialize(series=nil, timestamp=nil)
2309
+ @Series = series
2310
+ @Timestamp = timestamp
2311
+ end
2312
+
2313
+ def deserialize(params)
2314
+ unless params['Series'].nil?
2315
+ @Series = []
2316
+ params['Series'].each do |i|
2317
+ monitorfloatmetric_tmp = MonitorFloatMetric.new
2318
+ monitorfloatmetric_tmp.deserialize(i)
2319
+ @Series << monitorfloatmetric_tmp
2320
+ end
2321
+ end
2322
+ @Timestamp = params['Timestamp']
2323
+ end
2324
+ end
2325
+
2326
+ # 监控数据
2327
+ class MonitorMetric < TencentCloud::Common::AbstractModel
2328
+ # @param Metric: 指标名称。
2329
+ # @type Metric: String
2330
+ # @param Unit: 指标单位。
2331
+ # @type Unit: String
2332
+ # @param Values: 指标值。
2333
+ # 注意:此字段可能返回 null,表示取不到有效值。
2334
+ # @type Values: Array
2335
+
2336
+ attr_accessor :Metric, :Unit, :Values
2337
+
2338
+ def initialize(metric=nil, unit=nil, values=nil)
2339
+ @Metric = metric
2340
+ @Unit = unit
2341
+ @Values = values
2342
+ end
2343
+
2344
+ def deserialize(params)
2345
+ @Metric = params['Metric']
2346
+ @Unit = params['Unit']
2347
+ @Values = params['Values']
2348
+ end
2349
+ end
2350
+
2351
+ # 单位时间间隔内的监控指标数据
2352
+ class MonitorMetricSeriesData < TencentCloud::Common::AbstractModel
2353
+ # @param Series: 监控指标。
2354
+ # @type Series: Array
2355
+ # @param Timestamp: 监控指标对应的时间戳。
2356
+ # @type Timestamp: Array
2357
+
2358
+ attr_accessor :Series, :Timestamp
2359
+
2360
+ def initialize(series=nil, timestamp=nil)
2361
+ @Series = series
2362
+ @Timestamp = timestamp
2363
+ end
2364
+
2365
+ def deserialize(params)
2366
+ unless params['Series'].nil?
2367
+ @Series = []
2368
+ params['Series'].each do |i|
2369
+ monitormetric_tmp = MonitorMetric.new
2370
+ monitormetric_tmp.deserialize(i)
2371
+ @Series << monitormetric_tmp
2372
+ end
2373
+ end
2374
+ @Timestamp = params['Timestamp']
2375
+ end
2376
+ end
2377
+
2378
+ # 关系型数据库线程
2379
+ class MySqlProcess < TencentCloud::Common::AbstractModel
2380
+ # @param ID: 线程ID。
2381
+ # @type ID: String
2382
+ # @param User: 线程的操作账号名。
2383
+ # @type User: String
2384
+ # @param Host: 线程的操作主机地址。
2385
+ # @type Host: String
2386
+ # @param DB: 线程的操作数据库。
2387
+ # @type DB: String
2388
+ # @param State: 线程的操作状态。
2389
+ # @type State: String
2390
+ # @param Command: 线程的执行类型。
2391
+ # @type Command: String
2392
+ # @param Time: 线程的操作时长,单位秒。
2393
+ # @type Time: String
2394
+ # @param Info: 线程的操作语句。
2395
+ # @type Info: String
2396
+
2397
+ attr_accessor :ID, :User, :Host, :DB, :State, :Command, :Time, :Info
2398
+
2399
+ def initialize(id=nil, user=nil, host=nil, db=nil, state=nil, command=nil, time=nil, info=nil)
2400
+ @ID = id
2401
+ @User = user
2402
+ @Host = host
2403
+ @DB = db
2404
+ @State = state
2405
+ @Command = command
2406
+ @Time = time
2407
+ @Info = info
2408
+ end
2409
+
2410
+ def deserialize(params)
2411
+ @ID = params['ID']
2412
+ @User = params['User']
2413
+ @Host = params['Host']
2414
+ @DB = params['DB']
2415
+ @State = params['State']
2416
+ @Command = params['Command']
2417
+ @Time = params['Time']
2418
+ @Info = params['Info']
2419
+ end
2420
+ end
2421
+
2422
+ # 用户配置的信息
2423
+ class ProfileInfo < TencentCloud::Common::AbstractModel
2424
+ # @param Language: 语言, 如"zh"。
2425
+ # @type Language: String
2426
+ # @param MailConfiguration: 邮件模板的内容。
2427
+ # @type MailConfiguration: :class:`Tencentcloud::Dbbrain.v20210527.models.MailConfiguration`
2428
+
2429
+ attr_accessor :Language, :MailConfiguration
2430
+
2431
+ def initialize(language=nil, mailconfiguration=nil)
2432
+ @Language = language
2433
+ @MailConfiguration = mailconfiguration
2434
+ end
2435
+
2436
+ def deserialize(params)
2437
+ @Language = params['Language']
2438
+ unless params['MailConfiguration'].nil?
2439
+ @MailConfiguration = MailConfiguration.new
2440
+ @MailConfiguration.deserialize(params['MailConfiguration'])
2441
+ end
2442
+ end
2443
+ end
2444
+
2445
+ # SchemaItem数组
2446
+ class SchemaItem < TencentCloud::Common::AbstractModel
2447
+ # @param Schema: 数据库名称
2448
+ # @type Schema: String
2449
+
2450
+ attr_accessor :Schema
2451
+
2452
+ def initialize(schema=nil)
2453
+ @Schema = schema
2454
+ end
2455
+
2456
+ def deserialize(params)
2457
+ @Schema = params['Schema']
2458
+ end
2459
+ end
2460
+
2461
+ # 库空间统计数据。
2462
+ class SchemaSpaceData < TencentCloud::Common::AbstractModel
2463
+ # @param TableSchema: 库名。
2464
+ # @type TableSchema: String
2465
+ # @param DataLength: 数据空间(MB)。
2466
+ # @type DataLength: Float
2467
+ # @param IndexLength: 索引空间(MB)。
2468
+ # @type IndexLength: Float
2469
+ # @param DataFree: 碎片空间(MB)。
2470
+ # @type DataFree: Float
2471
+ # @param TotalLength: 总使用空间(MB)。
2472
+ # @type TotalLength: Float
2473
+ # @param FragRatio: 碎片率(%)。
2474
+ # @type FragRatio: Float
2475
+ # @param TableRows: 行数。
2476
+ # @type TableRows: Integer
2477
+ # @param PhysicalFileSize: 库中所有表对应的独立物理文件大小加和(MB)。
2478
+ # 注意:此字段可能返回 null,表示取不到有效值。
2479
+ # @type PhysicalFileSize: Float
2480
+
2481
+ attr_accessor :TableSchema, :DataLength, :IndexLength, :DataFree, :TotalLength, :FragRatio, :TableRows, :PhysicalFileSize
2482
+
2483
+ def initialize(tableschema=nil, datalength=nil, indexlength=nil, datafree=nil, totallength=nil, fragratio=nil, tablerows=nil, physicalfilesize=nil)
2484
+ @TableSchema = tableschema
2485
+ @DataLength = datalength
2486
+ @IndexLength = indexlength
2487
+ @DataFree = datafree
2488
+ @TotalLength = totallength
2489
+ @FragRatio = fragratio
2490
+ @TableRows = tablerows
2491
+ @PhysicalFileSize = physicalfilesize
2492
+ end
2493
+
2494
+ def deserialize(params)
2495
+ @TableSchema = params['TableSchema']
2496
+ @DataLength = params['DataLength']
2497
+ @IndexLength = params['IndexLength']
2498
+ @DataFree = params['DataFree']
2499
+ @TotalLength = params['TotalLength']
2500
+ @FragRatio = params['FragRatio']
2501
+ @TableRows = params['TableRows']
2502
+ @PhysicalFileSize = params['PhysicalFileSize']
2503
+ end
2504
+ end
2505
+
2506
+ # 库空间时序数据
2507
+ class SchemaSpaceTimeSeries < TencentCloud::Common::AbstractModel
2508
+ # @param TableSchema: 库名
2509
+ # @type TableSchema: String
2510
+ # @param SeriesData: 单位时间间隔内的空间指标数据。
2511
+ # @type SeriesData: :class:`Tencentcloud::Dbbrain.v20210527.models.MonitorMetricSeriesData`
2512
+
2513
+ attr_accessor :TableSchema, :SeriesData
2514
+
2515
+ def initialize(tableschema=nil, seriesdata=nil)
2516
+ @TableSchema = tableschema
2517
+ @SeriesData = seriesdata
2518
+ end
2519
+
2520
+ def deserialize(params)
2521
+ @TableSchema = params['TableSchema']
2522
+ unless params['SeriesData'].nil?
2523
+ @SeriesData = MonitorMetricSeriesData.new
2524
+ @SeriesData.deserialize(params['SeriesData'])
2525
+ end
2526
+ end
2527
+ end
2528
+
2529
+ # 扣分详情。
2530
+ class ScoreDetail < TencentCloud::Common::AbstractModel
2531
+ # @param IssueType: 扣分项分类,取值包括:可用性、可维护性、性能及可靠性。
2532
+ # @type IssueType: String
2533
+ # @param ScoreLost: 扣分总分。
2534
+ # @type ScoreLost: Integer
2535
+ # @param ScoreLostMax: 扣分总分上限。
2536
+ # @type ScoreLostMax: Integer
2537
+ # @param Items: 扣分项列表。
2538
+ # 注意:此字段可能返回 null,表示取不到有效值。
2539
+ # @type Items: Array
2540
+
2541
+ attr_accessor :IssueType, :ScoreLost, :ScoreLostMax, :Items
2542
+
2543
+ def initialize(issuetype=nil, scorelost=nil, scorelostmax=nil, items=nil)
2544
+ @IssueType = issuetype
2545
+ @ScoreLost = scorelost
2546
+ @ScoreLostMax = scorelostmax
2547
+ @Items = items
2548
+ end
2549
+
2550
+ def deserialize(params)
2551
+ @IssueType = params['IssueType']
2552
+ @ScoreLost = params['ScoreLost']
2553
+ @ScoreLostMax = params['ScoreLostMax']
2554
+ unless params['Items'].nil?
2555
+ @Items = []
2556
+ params['Items'].each do |i|
2557
+ scoreitem_tmp = ScoreItem.new
2558
+ scoreitem_tmp.deserialize(i)
2559
+ @Items << scoreitem_tmp
2560
+ end
2561
+ end
2562
+ end
2563
+ end
2564
+
2565
+ # 诊断扣分项。
2566
+ class ScoreItem < TencentCloud::Common::AbstractModel
2567
+ # @param DiagItem: 异常诊断项名称。
2568
+ # @type DiagItem: String
2569
+ # @param IssueType: 诊断项分类,取值包括:可用性、可维护性、性能及可靠性。
2570
+ # @type IssueType: String
2571
+ # @param TopSeverity: 健康等级,取值包括:信息、提示、告警、严重、致命。
2572
+ # @type TopSeverity: String
2573
+ # @param Count: 该异常诊断项出现次数。
2574
+ # @type Count: Integer
2575
+ # @param ScoreLost: 扣分分数。
2576
+ # @type ScoreLost: Integer
2577
+
2578
+ attr_accessor :DiagItem, :IssueType, :TopSeverity, :Count, :ScoreLost
2579
+
2580
+ def initialize(diagitem=nil, issuetype=nil, topseverity=nil, count=nil, scorelost=nil)
2581
+ @DiagItem = diagitem
2582
+ @IssueType = issuetype
2583
+ @TopSeverity = topseverity
2584
+ @Count = count
2585
+ @ScoreLost = scorelost
2586
+ end
2587
+
2588
+ def deserialize(params)
2589
+ @DiagItem = params['DiagItem']
2590
+ @IssueType = params['IssueType']
2591
+ @TopSeverity = params['TopSeverity']
2592
+ @Count = params['Count']
2593
+ @ScoreLost = params['ScoreLost']
2594
+ end
2595
+ end
2596
+
2597
+ # 安全审计日志导出任务信息
2598
+ class SecLogExportTaskInfo < TencentCloud::Common::AbstractModel
2599
+ # @param AsyncRequestId: 异步任务Id。
2600
+ # @type AsyncRequestId: Integer
2601
+ # @param StartTime: 任务开始时间。
2602
+ # 注意:此字段可能返回 null,表示取不到有效值。
2603
+ # @type StartTime: String
2604
+ # @param EndTime: 任务结束时间。
2605
+ # 注意:此字段可能返回 null,表示取不到有效值。
2606
+ # @type EndTime: String
2607
+ # @param CreateTime: 任务创建时间。
2608
+ # @type CreateTime: String
2609
+ # @param Status: 任务状态。
2610
+ # @type Status: String
2611
+ # @param Progress: 任务执行进度。
2612
+ # @type Progress: Integer
2613
+ # @param LogStartTime: 导出日志开始时间。
2614
+ # 注意:此字段可能返回 null,表示取不到有效值。
2615
+ # @type LogStartTime: String
2616
+ # @param LogEndTime: 导出日志结束时间。
2617
+ # 注意:此字段可能返回 null,表示取不到有效值。
2618
+ # @type LogEndTime: String
2619
+ # @param TotalSize: 日志文件总大小,单位KB。
2620
+ # 注意:此字段可能返回 null,表示取不到有效值。
2621
+ # @type TotalSize: Integer
2622
+ # @param DangerLevels: 风险等级列表。0 无风险;1 低风险;2 中风险;3 高风险。
2623
+ # 注意:此字段可能返回 null,表示取不到有效值。
2624
+ # @type DangerLevels: Array
2625
+
2626
+ attr_accessor :AsyncRequestId, :StartTime, :EndTime, :CreateTime, :Status, :Progress, :LogStartTime, :LogEndTime, :TotalSize, :DangerLevels
2627
+
2628
+ def initialize(asyncrequestid=nil, starttime=nil, endtime=nil, createtime=nil, status=nil, progress=nil, logstarttime=nil, logendtime=nil, totalsize=nil, dangerlevels=nil)
2629
+ @AsyncRequestId = asyncrequestid
2630
+ @StartTime = starttime
2631
+ @EndTime = endtime
2632
+ @CreateTime = createtime
2633
+ @Status = status
2634
+ @Progress = progress
2635
+ @LogStartTime = logstarttime
2636
+ @LogEndTime = logendtime
2637
+ @TotalSize = totalsize
2638
+ @DangerLevels = dangerlevels
2639
+ end
2640
+
2641
+ def deserialize(params)
2642
+ @AsyncRequestId = params['AsyncRequestId']
2643
+ @StartTime = params['StartTime']
2644
+ @EndTime = params['EndTime']
2645
+ @CreateTime = params['CreateTime']
2646
+ @Status = params['Status']
2647
+ @Progress = params['Progress']
2648
+ @LogStartTime = params['LogStartTime']
2649
+ @LogEndTime = params['LogEndTime']
2650
+ @TotalSize = params['TotalSize']
2651
+ @DangerLevels = params['DangerLevels']
2652
+ end
2653
+ end
2654
+
2655
+ # 慢日志来源地址详情。
2656
+ class SlowLogHost < TencentCloud::Common::AbstractModel
2657
+ # @param UserHost: 来源地址。
2658
+ # @type UserHost: String
2659
+ # @param Ratio: 该来源地址的慢日志数目占总数目的比例,单位%。
2660
+ # @type Ratio: Float
2661
+ # @param Count: 该来源地址的慢日志数目。
2662
+ # @type Count: Integer
2663
+
2664
+ attr_accessor :UserHost, :Ratio, :Count
2665
+
2666
+ def initialize(userhost=nil, ratio=nil, count=nil)
2667
+ @UserHost = userhost
2668
+ @Ratio = ratio
2669
+ @Count = count
2670
+ end
2671
+
2672
+ def deserialize(params)
2673
+ @UserHost = params['UserHost']
2674
+ @Ratio = params['Ratio']
2675
+ @Count = params['Count']
2676
+ end
2677
+ end
2678
+
2679
+ # 慢日志TopSql
2680
+ class SlowLogTopSqlItem < TencentCloud::Common::AbstractModel
2681
+ # @param LockTime: sql总锁等待时间,单位秒
2682
+ # @type LockTime: Float
2683
+ # @param LockTimeMax: 最大锁等待时间,单位秒
2684
+ # @type LockTimeMax: Float
2685
+ # @param LockTimeMin: 最小锁等待时间,单位秒
2686
+ # @type LockTimeMin: Float
2687
+ # @param RowsExamined: 总扫描行数
2688
+ # @type RowsExamined: Integer
2689
+ # @param RowsExaminedMax: 最大扫描行数
2690
+ # @type RowsExaminedMax: Integer
2691
+ # @param RowsExaminedMin: 最小扫描行数
2692
+ # @type RowsExaminedMin: Integer
2693
+ # @param QueryTime: 总耗时,单位秒
2694
+ # @type QueryTime: Float
2695
+ # @param QueryTimeMax: 最大执行时间,单位秒
2696
+ # @type QueryTimeMax: Float
2697
+ # @param QueryTimeMin: 最小执行时间,单位秒
2698
+ # @type QueryTimeMin: Float
2699
+ # @param RowsSent: 总返回行数
2700
+ # @type RowsSent: Integer
2701
+ # @param RowsSentMax: 最大返回行数
2702
+ # @type RowsSentMax: Integer
2703
+ # @param RowsSentMin: 最小返回行数
2704
+ # @type RowsSentMin: Integer
2705
+ # @param ExecTimes: 执行次数
2706
+ # @type ExecTimes: Integer
2707
+ # @param SqlTemplate: sql模板
2708
+ # @type SqlTemplate: String
2709
+ # @param SqlText: 带参数SQL(随机)
2710
+ # @type SqlText: String
2711
+ # @param Schema: 数据库名
2712
+ # @type Schema: String
2713
+ # @param QueryTimeRatio: 总耗时占比,单位%
2714
+ # @type QueryTimeRatio: Float
2715
+ # @param LockTimeRatio: sql总锁等待时间占比,单位%
2716
+ # @type LockTimeRatio: Float
2717
+ # @param RowsExaminedRatio: 总扫描行数占比,单位%
2718
+ # @type RowsExaminedRatio: Float
2719
+ # @param RowsSentRatio: 总返回行数占比,单位%
2720
+ # @type RowsSentRatio: Float
2721
+ # @param QueryTimeAvg: 平均执行时间,单位秒
2722
+ # @type QueryTimeAvg: Float
2723
+ # @param RowsSentAvg: 平均返回行数
2724
+ # @type RowsSentAvg: Float
2725
+ # @param LockTimeAvg: 平均锁等待时间,单位秒
2726
+ # @type LockTimeAvg: Float
2727
+ # @param RowsExaminedAvg: 平均扫描行数
2728
+ # @type RowsExaminedAvg: Float
2729
+ # @param Md5: SOL模板的MD5值
2730
+ # @type Md5: String
2731
+
2732
+ 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, :Md5
2733
+
2734
+ 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, md5=nil)
2735
+ @LockTime = locktime
2736
+ @LockTimeMax = locktimemax
2737
+ @LockTimeMin = locktimemin
2738
+ @RowsExamined = rowsexamined
2739
+ @RowsExaminedMax = rowsexaminedmax
2740
+ @RowsExaminedMin = rowsexaminedmin
2741
+ @QueryTime = querytime
2742
+ @QueryTimeMax = querytimemax
2743
+ @QueryTimeMin = querytimemin
2744
+ @RowsSent = rowssent
2745
+ @RowsSentMax = rowssentmax
2746
+ @RowsSentMin = rowssentmin
2747
+ @ExecTimes = exectimes
2748
+ @SqlTemplate = sqltemplate
2749
+ @SqlText = sqltext
2750
+ @Schema = schema
2751
+ @QueryTimeRatio = querytimeratio
2752
+ @LockTimeRatio = locktimeratio
2753
+ @RowsExaminedRatio = rowsexaminedratio
2754
+ @RowsSentRatio = rowssentratio
2755
+ @QueryTimeAvg = querytimeavg
2756
+ @RowsSentAvg = rowssentavg
2757
+ @LockTimeAvg = locktimeavg
2758
+ @RowsExaminedAvg = rowsexaminedavg
2759
+ @Md5 = md5
2760
+ end
2761
+
2762
+ def deserialize(params)
2763
+ @LockTime = params['LockTime']
2764
+ @LockTimeMax = params['LockTimeMax']
2765
+ @LockTimeMin = params['LockTimeMin']
2766
+ @RowsExamined = params['RowsExamined']
2767
+ @RowsExaminedMax = params['RowsExaminedMax']
2768
+ @RowsExaminedMin = params['RowsExaminedMin']
2769
+ @QueryTime = params['QueryTime']
2770
+ @QueryTimeMax = params['QueryTimeMax']
2771
+ @QueryTimeMin = params['QueryTimeMin']
2772
+ @RowsSent = params['RowsSent']
2773
+ @RowsSentMax = params['RowsSentMax']
2774
+ @RowsSentMin = params['RowsSentMin']
2775
+ @ExecTimes = params['ExecTimes']
2776
+ @SqlTemplate = params['SqlTemplate']
2777
+ @SqlText = params['SqlText']
2778
+ @Schema = params['Schema']
2779
+ @QueryTimeRatio = params['QueryTimeRatio']
2780
+ @LockTimeRatio = params['LockTimeRatio']
2781
+ @RowsExaminedRatio = params['RowsExaminedRatio']
2782
+ @RowsSentRatio = params['RowsSentRatio']
2783
+ @QueryTimeAvg = params['QueryTimeAvg']
2784
+ @RowsSentAvg = params['RowsSentAvg']
2785
+ @LockTimeAvg = params['LockTimeAvg']
2786
+ @RowsExaminedAvg = params['RowsExaminedAvg']
2787
+ @Md5 = params['Md5']
2788
+ end
2789
+ end
2790
+
2791
+ # 库表空间统计数据。
2792
+ class TableSpaceData < TencentCloud::Common::AbstractModel
2793
+ # @param TableName: 表名。
2794
+ # @type TableName: String
2795
+ # @param TableSchema: 库名。
2796
+ # @type TableSchema: String
2797
+ # @param Engine: 库表的存储引擎。
2798
+ # @type Engine: String
2799
+ # @param DataLength: 数据空间(MB)。
2800
+ # @type DataLength: Float
2801
+ # @param IndexLength: 索引空间(MB)。
2802
+ # @type IndexLength: Float
2803
+ # @param DataFree: 碎片空间(MB)。
2804
+ # @type DataFree: Float
2805
+ # @param TotalLength: 总使用空间(MB)。
2806
+ # @type TotalLength: Float
2807
+ # @param FragRatio: 碎片率(%)。
2808
+ # @type FragRatio: Float
2809
+ # @param TableRows: 行数。
2810
+ # @type TableRows: Integer
2811
+ # @param PhysicalFileSize: 表对应的独立物理文件大小(MB)。
2812
+ # @type PhysicalFileSize: Float
2813
+
2814
+ attr_accessor :TableName, :TableSchema, :Engine, :DataLength, :IndexLength, :DataFree, :TotalLength, :FragRatio, :TableRows, :PhysicalFileSize
2815
+
2816
+ def initialize(tablename=nil, tableschema=nil, engine=nil, datalength=nil, indexlength=nil, datafree=nil, totallength=nil, fragratio=nil, tablerows=nil, physicalfilesize=nil)
2817
+ @TableName = tablename
2818
+ @TableSchema = tableschema
2819
+ @Engine = engine
2820
+ @DataLength = datalength
2821
+ @IndexLength = indexlength
2822
+ @DataFree = datafree
2823
+ @TotalLength = totallength
2824
+ @FragRatio = fragratio
2825
+ @TableRows = tablerows
2826
+ @PhysicalFileSize = physicalfilesize
2827
+ end
2828
+
2829
+ def deserialize(params)
2830
+ @TableName = params['TableName']
2831
+ @TableSchema = params['TableSchema']
2832
+ @Engine = params['Engine']
2833
+ @DataLength = params['DataLength']
2834
+ @IndexLength = params['IndexLength']
2835
+ @DataFree = params['DataFree']
2836
+ @TotalLength = params['TotalLength']
2837
+ @FragRatio = params['FragRatio']
2838
+ @TableRows = params['TableRows']
2839
+ @PhysicalFileSize = params['PhysicalFileSize']
2840
+ end
2841
+ end
2842
+
2843
+ # 库表空间时序数据
2844
+ class TableSpaceTimeSeries < TencentCloud::Common::AbstractModel
2845
+ # @param TableName: 表名。
2846
+ # @type TableName: String
2847
+ # @param TableSchema: 库名。
2848
+ # @type TableSchema: String
2849
+ # @param Engine: 库表的存储引擎。
2850
+ # @type Engine: String
2851
+ # @param SeriesData: 单位时间间隔内的空间指标数据。
2852
+ # @type SeriesData: :class:`Tencentcloud::Dbbrain.v20210527.models.MonitorFloatMetricSeriesData`
2853
+
2854
+ attr_accessor :TableName, :TableSchema, :Engine, :SeriesData
2855
+
2856
+ def initialize(tablename=nil, tableschema=nil, engine=nil, seriesdata=nil)
2857
+ @TableName = tablename
2858
+ @TableSchema = tableschema
2859
+ @Engine = engine
2860
+ @SeriesData = seriesdata
2861
+ end
2862
+
2863
+ def deserialize(params)
2864
+ @TableName = params['TableName']
2865
+ @TableSchema = params['TableSchema']
2866
+ @Engine = params['Engine']
2867
+ unless params['SeriesData'].nil?
2868
+ @SeriesData = MonitorFloatMetricSeriesData.new
2869
+ @SeriesData.deserialize(params['SeriesData'])
2870
+ end
2871
+ end
2872
+ end
2873
+
2874
+ # 单位时间间隔内的慢日志统计
2875
+ class TimeSlice < TencentCloud::Common::AbstractModel
2876
+ # @param Count: 总数
2877
+ # @type Count: Integer
2878
+ # @param Timestamp: 统计开始时间
2879
+ # @type Timestamp: Integer
2880
+
2881
+ attr_accessor :Count, :Timestamp
2882
+
2883
+ def initialize(count=nil, timestamp=nil)
2884
+ @Count = count
2885
+ @Timestamp = timestamp
2886
+ end
2887
+
2888
+ def deserialize(params)
2889
+ @Count = params['Count']
2890
+ @Timestamp = params['Timestamp']
2891
+ end
2892
+ end
2893
+
2894
+ # 用户配置的相关信息,包括邮件配置。
2895
+ class UserProfile < TencentCloud::Common::AbstractModel
2896
+ # @param ProfileId: 配置的id。
2897
+ # 注意:此字段可能返回 null,表示取不到有效值。
2898
+ # @type ProfileId: String
2899
+ # @param ProfileType: 配置类型,支持值包括:"dbScan_mail_configuration" - 数据库巡检邮件配置,"scheduler_mail_configuration" - 定期生成邮件配置。
2900
+ # 注意:此字段可能返回 null,表示取不到有效值。
2901
+ # @type ProfileType: String
2902
+ # @param ProfileLevel: 配置级别,支持值包括:"User" - 用户级别,"Instance" - 实例级别,其中数据库巡检邮件配置为用户级别,定期生成邮件配置为实例级别。
2903
+ # 注意:此字段可能返回 null,表示取不到有效值。
2904
+ # @type ProfileLevel: String
2905
+ # @param ProfileName: 配置名称。
2906
+ # 注意:此字段可能返回 null,表示取不到有效值。
2907
+ # @type ProfileName: String
2908
+ # @param ProfileInfo: 配置详情。
2909
+ # @type ProfileInfo: :class:`Tencentcloud::Dbbrain.v20210527.models.ProfileInfo`
2910
+
2911
+ attr_accessor :ProfileId, :ProfileType, :ProfileLevel, :ProfileName, :ProfileInfo
2912
+
2913
+ def initialize(profileid=nil, profiletype=nil, profilelevel=nil, profilename=nil, profileinfo=nil)
2914
+ @ProfileId = profileid
2915
+ @ProfileType = profiletype
2916
+ @ProfileLevel = profilelevel
2917
+ @ProfileName = profilename
2918
+ @ProfileInfo = profileinfo
2919
+ end
2920
+
2921
+ def deserialize(params)
2922
+ @ProfileId = params['ProfileId']
2923
+ @ProfileType = params['ProfileType']
2924
+ @ProfileLevel = params['ProfileLevel']
2925
+ @ProfileName = params['ProfileName']
2926
+ unless params['ProfileInfo'].nil?
2927
+ @ProfileInfo = ProfileInfo.new
2928
+ @ProfileInfo.deserialize(params['ProfileInfo'])
2929
+ end
2930
+ end
2931
+ end
2932
+
2933
+ end
2934
+ end
2935
+ end
2936
+