tencentcloud-sdk-nodejs-dbbrain 4.0.680 → 4.0.682

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.
@@ -405,21 +405,45 @@ export interface DescribeDBDiagEventResponse {
405
405
  RequestId?: string;
406
406
  }
407
407
  /**
408
- * DescribeDBDiagEvents返回参数结构体
408
+ * DescribeSlowLogTopSqls请求参数结构体
409
409
  */
410
- export interface DescribeDBDiagEventsResponse {
410
+ export interface DescribeSlowLogTopSqlsRequest {
411
411
  /**
412
- * 诊断事件的总数目。
412
+ * 实例 ID 。
413
413
  */
414
- TotalCount: number;
414
+ InstanceId: string;
415
415
  /**
416
- * 诊断事件的列表。
416
+ * 开始时间,如“2019-09-10 12:13:14”。
417
417
  */
418
- Items: Array<DiagHistoryEventItem>;
418
+ StartTime: string;
419
419
  /**
420
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
420
+ * 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
421
421
  */
422
- RequestId?: string;
422
+ EndTime: string;
423
+ /**
424
+ * 排序键,目前支持 QueryTime,ExecTimes,RowsSent,LockTime以及RowsExamined 等排序键,默认为QueryTime。
425
+ */
426
+ SortBy?: string;
427
+ /**
428
+ * 排序方式,支持ASC(升序)以及DESC(降序),默认为DESC。
429
+ */
430
+ OrderBy?: string;
431
+ /**
432
+ * 返回数量,默认为20,最大值为100。
433
+ */
434
+ Limit?: number;
435
+ /**
436
+ * 偏移量,默认为0。
437
+ */
438
+ Offset?: number;
439
+ /**
440
+ * 数据库名称数组。
441
+ */
442
+ SchemaList?: Array<SchemaItem>;
443
+ /**
444
+ * 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
445
+ */
446
+ Product?: string;
423
447
  }
424
448
  /**
425
449
  * DescribeDBDiagReportTasks返回参数结构体
@@ -777,6 +801,15 @@ export interface DescribeProxySessionKillTasksRequest {
777
801
  */
778
802
  Product: string;
779
803
  }
804
+ /**
805
+ * ModifyAlarmPolicy返回参数结构体
806
+ */
807
+ export interface ModifyAlarmPolicyResponse {
808
+ /**
809
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
810
+ */
811
+ RequestId?: string;
812
+ }
780
813
  /**
781
814
  * CreateRedisBigKeyAnalysisTask请求参数结构体
782
815
  */
@@ -1029,6 +1062,40 @@ export interface DescribeDBSpaceStatusRequest {
1029
1062
  */
1030
1063
  Product?: string;
1031
1064
  }
1065
+ /**
1066
+ * 告警规则
1067
+ */
1068
+ export interface AlarmsRules {
1069
+ /**
1070
+ * 间隔
1071
+ */
1072
+ Interval: number;
1073
+ /**
1074
+ * 告警名
1075
+ */
1076
+ Name: string;
1077
+ /**
1078
+ * 指标
1079
+ */
1080
+ Metric: string;
1081
+ /**
1082
+ * 操作符
1083
+ */
1084
+ Operator: string;
1085
+ /**
1086
+ * 等级
1087
+ fatal-致命
1088
+ critical-严重
1089
+ warning-告警
1090
+ information-通知
1091
+
1092
+ */
1093
+ Severity: string;
1094
+ /**
1095
+ * 指标值
1096
+ */
1097
+ Value?: number;
1098
+ }
1032
1099
  /**
1033
1100
  * 单位时间间隔内的慢日志统计
1034
1101
  */
@@ -1206,41 +1273,13 @@ export interface CancelKillTaskRequest {
1206
1273
  Product?: string;
1207
1274
  }
1208
1275
  /**
1209
- * 关系型数据库线程
1276
+ * 实例id
1210
1277
  */
1211
- export interface MySqlProcess {
1212
- /**
1213
- * 线程ID。
1214
- */
1215
- ID: string;
1216
- /**
1217
- * 线程的操作账号名。
1218
- */
1219
- User: string;
1220
- /**
1221
- * 线程的操作主机地址。
1222
- */
1223
- Host: string;
1224
- /**
1225
- * 线程的操作数据库。
1226
- */
1227
- DB: string;
1228
- /**
1229
- * 线程的操作状态。
1230
- */
1231
- State: string;
1232
- /**
1233
- * 线程的执行类型。
1234
- */
1235
- Command: string;
1278
+ export interface InstanceID {
1236
1279
  /**
1237
- * 线程的操作时长,单位秒。
1238
- */
1239
- Time: string;
1240
- /**
1241
- * 线程的操作语句。
1280
+ * 实例id
1242
1281
  */
1243
- Info: string;
1282
+ InstanceId?: string;
1244
1283
  }
1245
1284
  /**
1246
1285
  * DescribeDBDiagHistory请求参数结构体
@@ -1853,6 +1892,41 @@ export interface InstanceConfs {
1853
1892
  */
1854
1893
  KeyDelimiters?: Array<string>;
1855
1894
  }
1895
+ /**
1896
+ * 接收组信息
1897
+ */
1898
+ export interface ReceiveInfo {
1899
+ /**
1900
+ * 接收组
1901
+ 注意:此字段可能返回 null,表示取不到有效值。
1902
+ */
1903
+ ReceiveGroup?: Array<number | bigint>;
1904
+ /**
1905
+ * 最后接收时间
1906
+ 注意:此字段可能返回 null,表示取不到有效值。
1907
+ */
1908
+ EndReceiveTime?: string;
1909
+ /**
1910
+ * 接收名
1911
+ 注意:此字段可能返回 null,表示取不到有效值。
1912
+ */
1913
+ ReceiveName?: string;
1914
+ /**
1915
+ * 推送渠道
1916
+ 注意:此字段可能返回 null,表示取不到有效值。
1917
+ */
1918
+ SendChannel?: Array<number | bigint>;
1919
+ /**
1920
+ * 开始时间
1921
+ 注意:此字段可能返回 null,表示取不到有效值。
1922
+ */
1923
+ StartReceiveTime?: string;
1924
+ /**
1925
+ * 接收用户列表
1926
+ 注意:此字段可能返回 null,表示取不到有效值。
1927
+ */
1928
+ ReceiveUin?: Array<ReceiveUin>;
1929
+ }
1856
1930
  /**
1857
1931
  * DescribeSqlTemplate返回参数结构体
1858
1932
  */
@@ -1930,21 +2004,37 @@ export interface DescribeDBDiagHistoryResponse {
1930
2004
  RequestId?: string;
1931
2005
  }
1932
2006
  /**
1933
- * DescribeDBDiagEvent请求参数结构体
2007
+ * DescribeDiagDBInstances请求参数结构体
1934
2008
  */
1935
- export interface DescribeDBDiagEventRequest {
2009
+ export interface DescribeDiagDBInstancesRequest {
1936
2010
  /**
1937
- * 实例 ID
2011
+ * 是否是DBbrain支持的实例,固定传 true
1938
2012
  */
1939
- InstanceId: string;
2013
+ IsSupported: boolean;
1940
2014
  /**
1941
- * 事件 ID 。通过“获取实例诊断历史DescribeDBDiagHistory”获取。
2015
+ * 服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"cynosdb" - 云数据库 TDSQL-C for MySQL,"dbbrain-mysql" - 自建 MySQL,默认为"mysql"。
1942
2016
  */
1943
- EventId?: number;
2017
+ Product: string;
1944
2018
  /**
1945
- * 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
2019
+ * 分页参数,偏移量。
1946
2020
  */
1947
- Product?: string;
2021
+ Offset: number;
2022
+ /**
2023
+ * 分页参数,分页值,最大值为100。
2024
+ */
2025
+ Limit: number;
2026
+ /**
2027
+ * 根据实例名称条件查询。
2028
+ */
2029
+ InstanceNames?: Array<string>;
2030
+ /**
2031
+ * 根据实例ID条件查询。
2032
+ */
2033
+ InstanceIds?: Array<string>;
2034
+ /**
2035
+ * 根据地域条件查询。
2036
+ */
2037
+ Regions?: Array<string>;
1948
2038
  }
1949
2039
  /**
1950
2040
  * ModifySqlFilters请求参数结构体
@@ -2128,6 +2218,21 @@ export interface InstanceBasicInfo {
2128
2218
  */
2129
2219
  EngineVersion: string;
2130
2220
  }
2221
+ /**
2222
+ * 接收用户
2223
+ */
2224
+ export interface ReceiveUin {
2225
+ /**
2226
+ * 用户名
2227
+ 注意:此字段可能返回 null,表示取不到有效值。
2228
+ */
2229
+ UinName?: string;
2230
+ /**
2231
+ * 用户id
2232
+ 注意:此字段可能返回 null,表示取不到有效值。
2233
+ */
2234
+ Uin?: string;
2235
+ }
2131
2236
  /**
2132
2237
  * 库空间统计数据。
2133
2238
  */
@@ -2180,37 +2285,58 @@ export interface DescribeAllUserContactRequest {
2180
2285
  Names?: Array<string>;
2181
2286
  }
2182
2287
  /**
2183
- * DescribeDiagDBInstances请求参数结构体
2288
+ * 关系型数据库线程
2184
2289
  */
2185
- export interface DescribeDiagDBInstancesRequest {
2290
+ export interface MySqlProcess {
2186
2291
  /**
2187
- * 是否是DBbrain支持的实例,固定传 true
2292
+ * 线程ID
2188
2293
  */
2189
- IsSupported: boolean;
2294
+ ID: string;
2190
2295
  /**
2191
- * 服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"cynosdb" - 云数据库 TDSQL-C for MySQL,"dbbrain-mysql" - 自建 MySQL,默认为"mysql"。
2296
+ * 线程的操作账号名。
2192
2297
  */
2193
- Product: string;
2298
+ User: string;
2194
2299
  /**
2195
- * 分页参数,偏移量。
2300
+ * 线程的操作主机地址。
2196
2301
  */
2197
- Offset: number;
2302
+ Host: string;
2198
2303
  /**
2199
- * 分页参数,分页值,最大值为100。
2304
+ * 线程的操作数据库。
2200
2305
  */
2201
- Limit: number;
2306
+ DB: string;
2202
2307
  /**
2203
- * 根据实例名称条件查询。
2308
+ * 线程的操作状态。
2204
2309
  */
2205
- InstanceNames?: Array<string>;
2310
+ State: string;
2206
2311
  /**
2207
- * 根据实例ID条件查询。
2312
+ * 线程的执行类型。
2208
2313
  */
2209
- InstanceIds?: Array<string>;
2314
+ Command: string;
2210
2315
  /**
2211
- * 根据地域条件查询。
2316
+ * 线程的操作时长,单位秒。
2212
2317
  */
2213
- Regions?: Array<string>;
2318
+ Time: string;
2319
+ /**
2320
+ * 线程的操作语句。
2321
+ */
2322
+ Info: string;
2323
+ }
2324
+ /**
2325
+ * DescribeDBDiagEvent请求参数结构体
2326
+ */
2327
+ export interface DescribeDBDiagEventRequest {
2328
+ /**
2329
+ * 实例 ID 。
2330
+ */
2331
+ InstanceId: string;
2332
+ /**
2333
+ * 事件 ID 。通过“获取实例诊断历史DescribeDBDiagHistory”获取。
2334
+ */
2335
+ EventId?: number;
2336
+ /**
2337
+ * 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
2338
+ */
2339
+ Product?: string;
2214
2340
  }
2215
2341
  /**
2216
2342
  * DescribeNoPrimaryKeyTables请求参数结构体
@@ -2237,6 +2363,81 @@ export interface DescribeNoPrimaryKeyTablesRequest {
2237
2363
  */
2238
2364
  Product?: string;
2239
2365
  }
2366
+ /**
2367
+ * 通知模板
2368
+ */
2369
+ export interface AlarmProfileList {
2370
+ /**
2371
+ * 0-不是 1-是
2372
+ 注意:此字段可能返回 null,表示取不到有效值。
2373
+ */
2374
+ IsWebHook?: number;
2375
+ /**
2376
+ * 接收告警用户数量
2377
+ 注意:此字段可能返回 null,表示取不到有效值。
2378
+ */
2379
+ ReceiveUinCount?: number;
2380
+ /**
2381
+ * 语言
2382
+ 注意:此字段可能返回 null,表示取不到有效值。
2383
+ */
2384
+ Lang?: string;
2385
+ /**
2386
+ * 模板类型
2387
+ 注意:此字段可能返回 null,表示取不到有效值。
2388
+ */
2389
+ TemplateType?: string;
2390
+ /**
2391
+ * 备注
2392
+ 注意:此字段可能返回 null,表示取不到有效值。
2393
+ */
2394
+ Remark?: string;
2395
+ /**
2396
+ * 接收组数量
2397
+ 注意:此字段可能返回 null,表示取不到有效值。
2398
+ */
2399
+ ReceiveGroupCount?: number;
2400
+ /**
2401
+ * 更新用户的uin
2402
+ 注意:此字段可能返回 null,表示取不到有效值。
2403
+ */
2404
+ UpdateUin?: number;
2405
+ /**
2406
+ * 接收类型
2407
+ 注意:此字段可能返回 null,表示取不到有效值。
2408
+ */
2409
+ ReceiveType?: Array<number | bigint>;
2410
+ /**
2411
+ * 接收用户信息
2412
+ 注意:此字段可能返回 null,表示取不到有效值。
2413
+ */
2414
+ ReceiveInfo?: Array<ReceiveInfo>;
2415
+ /**
2416
+ * 更新时间
2417
+ 注意:此字段可能返回 null,表示取不到有效值。
2418
+ */
2419
+ UpdateTime?: string;
2420
+ /**
2421
+ * 模板名
2422
+ 注意:此字段可能返回 null,表示取不到有效值。
2423
+ */
2424
+ TemplateName?: string;
2425
+ /**
2426
+ * 发送渠道
2427
+ 注意:此字段可能返回 null,表示取不到有效值。
2428
+ */
2429
+ SendChannel?: Array<number | bigint>;
2430
+ /**
2431
+ * 模板id
2432
+ 注意:此字段可能返回 null,表示取不到有效值。
2433
+ */
2434
+ TemplateId?: number;
2435
+ /**
2436
+ * webhook数量
2437
+ 注意:此字段可能返回 null,表示取不到有效值。
2438
+ */
2439
+ WebHookCount?: number;
2440
+ }
2240
2441
  /**
2241
2442
  * 查询实例列表,返回实例的相关信息的对象。
2242
2443
  */
@@ -2386,6 +2587,19 @@ export interface InstanceInfo {
2386
2587
  */
2387
2588
  InstanceStatus?: string;
2388
2589
  }
2590
+ /**
2591
+ * 通知模板
2592
+ */
2593
+ export interface TemplateInfo {
2594
+ /**
2595
+ * 模板id
2596
+ */
2597
+ TemplateId: string;
2598
+ /**
2599
+ * 模板名
2600
+ */
2601
+ TemplateName: string;
2602
+ }
2389
2603
  /**
2390
2604
  * DescribeAuditInstanceList请求参数结构体
2391
2605
  */
@@ -2508,6 +2722,23 @@ export interface CreateSchedulerMailProfileResponse {
2508
2722
  */
2509
2723
  RequestId?: string;
2510
2724
  }
2725
+ /**
2726
+ * DescribeAlarmTemplate返回参数结构体
2727
+ */
2728
+ export interface DescribeAlarmTemplateResponse {
2729
+ /**
2730
+ * 模板列表
2731
+ */
2732
+ ProfileList?: Array<AlarmProfileList>;
2733
+ /**
2734
+ * 模板总数
2735
+ */
2736
+ TotalCount?: number;
2737
+ /**
2738
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2739
+ */
2740
+ RequestId?: string;
2741
+ }
2511
2742
  /**
2512
2743
  * DescribeTopSpaceSchemaTimeSeries请求参数结构体
2513
2744
  */
@@ -2563,45 +2794,21 @@ export interface ModifyAuditServiceRequest {
2563
2794
  HotLogExpireDay: number;
2564
2795
  }
2565
2796
  /**
2566
- * DescribeSlowLogTopSqls请求参数结构体
2797
+ * DescribeDBDiagEvents返回参数结构体
2567
2798
  */
2568
- export interface DescribeSlowLogTopSqlsRequest {
2569
- /**
2570
- * 实例 ID 。
2571
- */
2572
- InstanceId: string;
2573
- /**
2574
- * 开始时间,如“2019-09-10 12:13:14”。
2575
- */
2576
- StartTime: string;
2577
- /**
2578
- * 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
2579
- */
2580
- EndTime: string;
2581
- /**
2582
- * 排序键,目前支持 QueryTime,ExecTimes,RowsSent,LockTime以及RowsExamined 等排序键,默认为QueryTime。
2583
- */
2584
- SortBy?: string;
2585
- /**
2586
- * 排序方式,支持ASC(升序)以及DESC(降序),默认为DESC。
2587
- */
2588
- OrderBy?: string;
2589
- /**
2590
- * 返回数量,默认为20,最大值为100。
2591
- */
2592
- Limit?: number;
2799
+ export interface DescribeDBDiagEventsResponse {
2593
2800
  /**
2594
- * 偏移量,默认为0。
2801
+ * 诊断事件的总数目。
2595
2802
  */
2596
- Offset?: number;
2803
+ TotalCount: number;
2597
2804
  /**
2598
- * 数据库名称数组。
2805
+ * 诊断事件的列表。
2599
2806
  */
2600
- SchemaList?: Array<SchemaItem>;
2807
+ Items: Array<DiagHistoryEventItem>;
2601
2808
  /**
2602
- * 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"
2809
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId
2603
2810
  */
2604
- Product?: string;
2811
+ RequestId?: string;
2605
2812
  }
2606
2813
  /**
2607
2814
  * DescribeMailProfile返回参数结构体
@@ -2910,6 +3117,28 @@ export interface AuditLogFile {
2910
3117
  */
2911
3118
  FinishTime?: string;
2912
3119
  }
3120
+ /**
3121
+ * DescribeAlarmTemplate请求参数结构体
3122
+ */
3123
+ export interface DescribeAlarmTemplateRequest {
3124
+ /**
3125
+ * 搜索字段
3126
+ */
3127
+ TemplateNameRegexp: string;
3128
+ /**
3129
+ * 返回限制长度
3130
+ */
3131
+ Limit: number;
3132
+ /**
3133
+ * 偏置
3134
+ */
3135
+ Offset: number;
3136
+ /**
3137
+ * mysql - mysql
3138
+ cynosdb - tdsql-c
3139
+ */
3140
+ Product?: string;
3141
+ }
2913
3142
  /**
2914
3143
  * DescribeSlowLogTimeSeriesStats返回参数结构体
2915
3144
  */
@@ -2982,6 +3211,62 @@ export interface MonitorFloatMetric {
2982
3211
  */
2983
3212
  Values: Array<number>;
2984
3213
  }
3214
+ /**
3215
+ * ModifyAlarmPolicy请求参数结构体
3216
+ */
3217
+ export interface ModifyAlarmPolicyRequest {
3218
+ /**
3219
+ * 类型
3220
+ */
3221
+ ApplyType: string;
3222
+ /**
3223
+ * 开启策略
3224
+ */
3225
+ Enable: number;
3226
+ /**
3227
+ * 列表
3228
+ */
3229
+ InstanceIds: Array<InstanceID>;
3230
+ /**
3231
+ * User-动态关联该用户所有实例
3232
+ Instance-关联实例列表的实例
3233
+ */
3234
+ NewProfileLevel: string;
3235
+ /**
3236
+ * 新策略名
3237
+ */
3238
+ NewProfileName: string;
3239
+ /**
3240
+ * 旧策略名
3241
+ */
3242
+ ProfileName: string;
3243
+ /**
3244
+ * 策略类型
3245
+ */
3246
+ ProfileType: string;
3247
+ /**
3248
+ * 备注
3249
+ */
3250
+ Remark: string;
3251
+ /**
3252
+ * 规则类型 0-快速,1-自定义 若值为0,则QuickRule不能为空,若值为1,则Rules 不能为空
3253
+ */
3254
+ RuleType: number;
3255
+ /**
3256
+ * 接受模板
3257
+ */
3258
+ TemplateInfo: Array<TemplateInfo>;
3259
+ /**
3260
+ * 快速规则 支持包括fatal-致命, critical-严重,
3261
+ warning-告警,
3262
+ information-通知
3263
+ */
3264
+ QuickRule?: string;
3265
+ /**
3266
+ * 自定义规则
3267
+ */
3268
+ Rules?: Array<AlarmsRules>;
3269
+ }
2985
3270
  /**
2986
3271
  * DescribeRedisTopKeyPrefixList返回参数结构体
2987
3272
  */