tencentcloud-sdk-nodejs-dbbrain 4.1.326 → 4.1.328
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.
- package/es/services/dbbrain/index.js +2 -2
- package/es/services/dbbrain/v20210527/dbbrain_client.js +3 -0
- package/package.json +1 -1
- package/tencentcloud/services/dbbrain/index.d.ts +4 -4
- package/tencentcloud/services/dbbrain/index.js +2 -2
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +5 -1
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +6 -0
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +345 -22
|
@@ -126,6 +126,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
126
126
|
async DescribeRedisUnExpiredKeyStatistics(req, cb) {
|
|
127
127
|
return this.request("DescribeRedisUnExpiredKeyStatistics", req, cb);
|
|
128
128
|
}
|
|
129
|
+
async DescribeBlockingLogs(req, cb) {
|
|
130
|
+
return this.request("DescribeBlockingLogs", req, cb);
|
|
131
|
+
}
|
|
129
132
|
async DescribeRedisSlowLogTopSqls(req, cb) {
|
|
130
133
|
return this.request("DescribeRedisSlowLogTopSqls", req, cb);
|
|
131
134
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const dbbrain: {
|
|
2
|
-
v20210527: {
|
|
3
|
-
Client: typeof import("./v20210527/dbbrain_client").Client;
|
|
4
|
-
Models: typeof import("./v20210527/dbbrain_models");
|
|
5
|
-
};
|
|
6
2
|
v20191016: {
|
|
7
3
|
Client: typeof import("./v20191016/dbbrain_client").Client;
|
|
8
4
|
Models: typeof import("./v20191016/dbbrain_models");
|
|
9
5
|
};
|
|
6
|
+
v20210527: {
|
|
7
|
+
Client: typeof import("./v20210527/dbbrain_client").Client;
|
|
8
|
+
Models: typeof import("./v20210527/dbbrain_models");
|
|
9
|
+
};
|
|
10
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.dbbrain = void 0;
|
|
4
|
-
const v20210527_1 = require("./v20210527");
|
|
5
4
|
const v20191016_1 = require("./v20191016");
|
|
5
|
+
const v20210527_1 = require("./v20210527");
|
|
6
6
|
exports.dbbrain = {
|
|
7
|
-
v20210527: v20210527_1.v20210527,
|
|
8
7
|
v20191016: v20191016_1.v20191016,
|
|
8
|
+
v20210527: v20210527_1.v20210527,
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeSlowLogTimeSeriesStatsRequest, DescribeUserAutonomyProfileRequest, DescribeMetricTopProxiesResponse, DescribeDBAuditLogTopSqlsRequest, DescribeDBAutonomyActionsRequest, CancelDBAutonomyActionResponse, OpenAuditServiceResponse, DescribeUserAutonomyProfileResponse, DescribeTopSpaceTablesV2Request, DescribeRedisTopHotKeysRequest, CreateDBDiagReportTaskRequest, DescribeDBDiagReportContentRequest, DescribeAuditLogFilesResponse, DescribeIndexRecommendAggregationSlowLogsRequest, DescribeSlowLogsRequest, DescribeRedisCmdPerfTimeSeriesRequest, CreateRedisBigKeyAnalysisTaskResponse, UpdateDatabaseAutonomyStatusRequest, CreateSecurityAuditLogExportTaskRequest, DescribeTopSpaceTableTimeSeriesResponse, DescribeDBDiagEventResponse, DescribeDBDiagHistoryRequest, DescribeDBAutonomyActionsResponse, DescribeSlowLogTopSqlsRequest, DescribeRedisBigKeyAnalysisTasksResponse, DescribeDBDiagReportTasksResponse, AddUserContactResponse, CancelKillTaskResponse, DescribeRedisTopBigKeysResponse, DescribeSqlTemplateRequest, DescribeTopSpaceSchemaTimeSeriesResponse, ModifySqlFiltersRequest, CreateKillTaskResponse, DescribeAuditInstanceListResponse, DescribeRedisSlowLogTopSqlsResponse, DescribeDBInstancesResponse, CreateUserAutonomyProfileResponse, DescribeProxySessionKillTasksRequest, ModifyAlarmPolicyResponse, ModifyUserAutonomyProfileResponse, DescribeIndexRecommendInfoResponse, CreateRedisBigKeyAnalysisTaskRequest, DescribeMySqlProcessListResponse, UpdateMonitorSwitchRequest, DescribeRedisSlowLogTopSqlsRequest, DescribeDBAuditLogsRequest, DescribeTopSpaceTablesResponse, DescribeMongoDBProcessListRequest, DescribeDatabaseAutonomyStatusRequest, KillMySqlThreadsResponse, CreateSchedulerMailProfileRequest, DescribeDBAutonomyEventsResponse, DeleteAuditLogFileResponse, DescribeDBSpaceStatusRequest, DescribeRedisProcessListRequest,
|
|
2
|
+
import { DescribeSlowLogTimeSeriesStatsRequest, DescribeUserAutonomyProfileRequest, DescribeMetricTopProxiesResponse, DescribeDBAuditLogTopSqlsRequest, DescribeDBAutonomyActionsRequest, CancelDBAutonomyActionResponse, OpenAuditServiceResponse, DescribeUserAutonomyProfileResponse, DescribeTopSpaceTablesV2Request, DescribeRedisTopHotKeysRequest, CreateDBDiagReportTaskRequest, DescribeDBDiagReportContentRequest, DescribeAuditLogFilesResponse, DescribeIndexRecommendAggregationSlowLogsRequest, DescribeSlowLogsRequest, DescribeRedisCmdPerfTimeSeriesRequest, CreateRedisBigKeyAnalysisTaskResponse, UpdateDatabaseAutonomyStatusRequest, CreateSecurityAuditLogExportTaskRequest, DescribeTopSpaceTableTimeSeriesResponse, DescribeDBDiagEventResponse, DescribeDBDiagHistoryRequest, DescribeDBAutonomyActionsResponse, DescribeSlowLogTopSqlsRequest, DescribeRedisBigKeyAnalysisTasksResponse, DescribeDBDiagReportTasksResponse, AddUserContactResponse, CancelKillTaskResponse, DescribeRedisTopBigKeysResponse, DescribeSqlTemplateRequest, DescribeTopSpaceSchemaTimeSeriesResponse, ModifySqlFiltersRequest, CreateKillTaskResponse, DescribeAuditInstanceListResponse, DescribeRedisSlowLogTopSqlsResponse, DescribeDBInstancesResponse, CreateUserAutonomyProfileResponse, DescribeProxySessionKillTasksRequest, ModifyAlarmPolicyResponse, ModifyUserAutonomyProfileResponse, DescribeIndexRecommendInfoResponse, CreateRedisBigKeyAnalysisTaskRequest, DescribeMySqlProcessListResponse, UpdateMonitorSwitchRequest, DescribeRedisSlowLogTopSqlsRequest, DescribeDBAuditLogsRequest, DescribeTopSpaceTablesResponse, DescribeMongoDBProcessListRequest, DescribeDatabaseAutonomyStatusRequest, KillMySqlThreadsResponse, CreateSchedulerMailProfileRequest, DescribeDBAutonomyEventsResponse, DeleteAuditLogFileResponse, DescribeDBSpaceStatusRequest, DescribeRedisProcessListRequest, DescribeBlockingLogsRequest, ModifyDiagDBInstanceConfRequest, DescribeSlowLogsResponse, DescribeDBDiagEventsRequest, DescribeDBInstancesRequest, CreateDBDiagReportUrlsResponse, DescribeDBAutonomyActionRequest, DescribeRedisTopKeyPrefixListRequest, CancelKillTaskRequest, CreateIgnoreDiagRecordResponse, CreateAuditLogFileResponse, DescribeDatabaseAutonomyStatusResponse, DeleteSqlFiltersResponse, DescribeHealthScoreTimeSeriesRequest, CreateDBDiagReportTaskResponse, CreateDBDiagReportUrlsRequest, CreateDBDiagReportUrlResponse, DescribeRedisUnExpiredKeyStatisticsResponse, CreateProxySessionKillTaskRequest, DeleteDBDiagReportTasksResponse, DescribeProxyProcessStatisticsResponse, DescribeHealthScoreTimeSeriesResponse, UpdateAgentSwitchRequest, DescribeRedisCmdPerfTimeSeriesResponse, ModifySqlFiltersResponse, CreateMailProfileRequest, UpdateAgentSwitchResponse, VerifyUserAccountRequest, DescribeSlowLogUserHostStatsResponse, DescribeIndexRecommendInfoRequest, DescribeMailProfileRequest, ModifyAuditServiceRequest, DeleteSecurityAuditLogExportTasksResponse, KillMySqlThreadsRequest, DescribeSqlFiltersResponse, CreateDBDiagReportUrlRequest, CloseAuditServiceResponse, UpdateDatabaseAutonomyStatusResponse, DeleteRedisBigKeyAnalysisTasksResponse, CloseAuditServiceRequest, DescribeSqlTemplateResponse, DescribeRedisTopCostCommandsRequest, DescribeDBDiagHistoryResponse, CreateUserAutonomyProfileRequest, DescribeDBDiagEventRequest, DescribeAllUserContactResponse, DescribeRedisCommandCostStatisticsResponse, CancelDBAutonomyEventResponse, AddUserContactRequest, CreateSqlFilterRequest, CreateMongoDBKillTaskRequest, DescribeTopSpaceTablesRequest, DescribeRedisTopCostCommandsResponse, OpenAuditServiceRequest, DescribeDBAuditLogsResponse, DescribeAllUserContactRequest, DescribeNoPrimaryKeyTablesRequest, DescribeTopSpaceSchemasRequest, DescribeAuditInstanceListRequest, DescribeRedisBigKeyAnalysisTasksRequest, DescribeSqlFiltersRequest, DescribeSecurityAuditLogExportTasksRequest, DescribeRedisUnExpiredKeyStatisticsRequest, DeleteSecurityAuditLogExportTasksRequest, CreateSchedulerMailProfileResponse, DescribeAlarmTemplateResponse, DescribeBlockingLogsResponse, DescribeNoPrimaryKeyTablesResponse, DescribeTopSpaceSchemaTimeSeriesRequest, DescribeDBAuditLogTopSqlsResponse, DescribeIndexRecommendAggregationSlowLogsResponse, DescribeDatabaseObjectV2Response, DescribeDBDiagEventsResponse, DescribeMailProfileResponse, DescribeRedisTopBigKeysRequest, ModifyUserAutonomyProfileRequest, DescribeMetricTopProxiesRequest, CancelRedisBigKeyAnalysisTasksRequest, ModifyAuditServiceResponse, DescribeDBAutonomyEventsRequest, DescribeHealthScoreRequest, CreateIgnoreDiagRecordRequest, DeleteRedisBigKeyAnalysisTasksRequest, DescribeDeadLockLogsResponse, DescribeDiagDBInstancesResponse, DescribeAllUserGroupRequest, CreateKillTaskRequest, DescribeRedisTopHotKeysResponse, CreateSecurityAuditLogExportTaskResponse, DescribeRedisCommandOverviewResponse, CreateSqlFilterResponse, DescribeSlowLogUserHostStatsRequest, DescribeTopSpaceSchemasResponse, DescribeDeadLockLogsRequest, DescribeSlowLogQueryTimeStatsResponse, CreateProxySessionKillTaskResponse, CancelDBAutonomyActionRequest, DeleteDBDiagReportTasksRequest, DescribeAlarmTemplateRequest, VerifyUserAccountResponse, DescribeSlowLogTimeSeriesStatsResponse, DescribeProxyProcessStatisticsRequest, DescribeRedisCommandCostStatisticsRequest, ModifyAlarmPolicyRequest, CreateMongoDBKillTaskResponse, DescribeRedisCommandOverviewRequest, DescribeAllUserGroupResponse, UpdateMonitorSwitchResponse, DescribeRedisProcessListResponse, CreateAuditLogFileRequest, DeleteAuditLogFileRequest, ModifyDiagDBInstanceConfResponse, DescribeTopSpaceTablesV2Response, DescribeUserSqlAdviceResponse, DescribeDBSpaceStatusResponse, DescribeSecurityAuditLogDownloadUrlsRequest, CancelDBAutonomyEventRequest, DescribeTopSpaceTableTimeSeriesRequest, DescribeUserSqlAdviceRequest, DescribeDBAutonomyActionResponse, DescribeDBDiagReportTasksRequest, DescribeDBPerfTimeSeriesResponse, DescribeRedisTopKeyPrefixListResponse, DescribeHealthScoreResponse, DescribeMongoDBProcessListResponse, CancelRedisBigKeyAnalysisTasksResponse, DescribeSecurityAuditLogExportTasksResponse, DescribeDBDiagReportContentResponse, DescribeSlowLogTopSqlsResponse, DescribeDatabaseObjectV2Request, DescribeDBPerfTimeSeriesRequest, DescribeAuditLogFilesRequest, DeleteSqlFiltersRequest, CreateMailProfileResponse, DescribeDiagDBInstancesRequest, DescribeMySqlProcessListRequest, DescribeSecurityAuditLogDownloadUrlsResponse, DescribeSlowLogQueryTimeStatsRequest, DescribeProxySessionKillTasksResponse } from "./dbbrain_models";
|
|
3
3
|
/**
|
|
4
4
|
* dbbrain client
|
|
5
5
|
* @class
|
|
@@ -170,6 +170,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
170
170
|
* 查询Redis全量Key的内存分布情况。
|
|
171
171
|
*/
|
|
172
172
|
DescribeRedisUnExpiredKeyStatistics(req: DescribeRedisUnExpiredKeyStatisticsRequest, cb?: (error: string, rep: DescribeRedisUnExpiredKeyStatisticsResponse) => void): Promise<DescribeRedisUnExpiredKeyStatisticsResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* 查询指定实例在时间窗口内的阻塞日志扁平明细列表,不建阻塞树。每一条Item对应一次blocked_process_report(一条blocker→blocked边)在某一次monitorLoop内被lock monitor捕获的瞬时数据。支持按ReportTime / DurationMs / BlockedWaitTimeMs / BlockingWaitTimeMs升降序排序,并支持根因、数据库名、头SQL / 被阻塞SQL MD5、会话ID、登录名、客户端主机 / 应用、被阻塞锁模式、等待时长范围过滤与分页。适合普通表格展示与二次过滤;若需查看某个采集点的完整链路拓扑,请透传返回的MonitorLoop调用DescribeBlockingLockTree。注意:同一blocker→blocked会话对跨monitorLoop连续采集场景下会产生多条明细行,若需统计发生多少次阻塞请按(BlockingSessionId, BlockedSessionId, BlockedWaitResource)自行去重。时间字段按服务端时区UTC+8解析,建议单次查询跨度≤7天。
|
|
175
|
+
*/
|
|
176
|
+
DescribeBlockingLogs(req: DescribeBlockingLogsRequest, cb?: (error: string, rep: DescribeBlockingLogsResponse) => void): Promise<DescribeBlockingLogsResponse>;
|
|
173
177
|
/**
|
|
174
178
|
* 统计排序指定时间段内的top慢sql。
|
|
175
179
|
*/
|
|
@@ -274,6 +274,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
274
274
|
async DescribeRedisUnExpiredKeyStatistics(req, cb) {
|
|
275
275
|
return this.request("DescribeRedisUnExpiredKeyStatistics", req, cb);
|
|
276
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* 查询指定实例在时间窗口内的阻塞日志扁平明细列表,不建阻塞树。每一条Item对应一次blocked_process_report(一条blocker→blocked边)在某一次monitorLoop内被lock monitor捕获的瞬时数据。支持按ReportTime / DurationMs / BlockedWaitTimeMs / BlockingWaitTimeMs升降序排序,并支持根因、数据库名、头SQL / 被阻塞SQL MD5、会话ID、登录名、客户端主机 / 应用、被阻塞锁模式、等待时长范围过滤与分页。适合普通表格展示与二次过滤;若需查看某个采集点的完整链路拓扑,请透传返回的MonitorLoop调用DescribeBlockingLockTree。注意:同一blocker→blocked会话对跨monitorLoop连续采集场景下会产生多条明细行,若需统计发生多少次阻塞请按(BlockingSessionId, BlockedSessionId, BlockedWaitResource)自行去重。时间字段按服务端时区UTC+8解析,建议单次查询跨度≤7天。
|
|
279
|
+
*/
|
|
280
|
+
async DescribeBlockingLogs(req, cb) {
|
|
281
|
+
return this.request("DescribeBlockingLogs", req, cb);
|
|
282
|
+
}
|
|
277
283
|
/**
|
|
278
284
|
* 统计排序指定时间段内的top慢sql。
|
|
279
285
|
*/
|
|
@@ -2377,25 +2377,105 @@ export interface AuditLogFile {
|
|
|
2377
2377
|
FinishTime?: string;
|
|
2378
2378
|
}
|
|
2379
2379
|
/**
|
|
2380
|
-
*
|
|
2380
|
+
* DescribeBlockingLogs请求参数结构体
|
|
2381
2381
|
*/
|
|
2382
|
-
export interface
|
|
2382
|
+
export interface DescribeBlockingLogsRequest {
|
|
2383
2383
|
/**
|
|
2384
|
-
*
|
|
2384
|
+
* <p>实例ID。</p>
|
|
2385
2385
|
*/
|
|
2386
2386
|
InstanceId: string;
|
|
2387
2387
|
/**
|
|
2388
|
-
*
|
|
2388
|
+
* <p>服务产品类型,固定为sqlserver。</p>
|
|
2389
|
+
*/
|
|
2390
|
+
Product: string;
|
|
2391
|
+
/**
|
|
2392
|
+
* <p>查询起始时间(服务端时区 UTC+8),格式:yyyy-MM-dd HH:mm:ss。必须在最近 30 天内,否则返回 InvalidParameterValue。</p>
|
|
2389
2393
|
*/
|
|
2390
2394
|
StartTime: string;
|
|
2391
2395
|
/**
|
|
2392
|
-
*
|
|
2396
|
+
* <p>查询结束时间(服务端时区 UTC+8),格式:yyyy-MM-dd HH:mm:ss,需大于 StartTime。单次查询跨度必须 ≤ 1 天(24 小时),否则返回 InvalidParameterValue。大跨度趋势场景请改用 DescribeBlockingTrend。</p>
|
|
2393
2397
|
*/
|
|
2394
2398
|
EndTime: string;
|
|
2395
2399
|
/**
|
|
2396
|
-
*
|
|
2400
|
+
* <p>根因过滤(可选),支持:C1_LONG_QUERY=长事务查询持锁;C2_SLEEP_UNCOMMITTED=sleeping会话持未提交事务;C3_LOCK_ESCALATION=锁升级;C4_HIGH_CONCURRENCY=高并发争用;C5_INDEX_MISS=索引缺失导致大范围锁;C6_ORPHAN_TRAN=孤儿事务。</p>
|
|
2397
2401
|
*/
|
|
2398
|
-
|
|
2402
|
+
RootCause?: string;
|
|
2403
|
+
/**
|
|
2404
|
+
* <p>头SQL(blocker)MD5过滤(可选)。</p>
|
|
2405
|
+
*/
|
|
2406
|
+
BlockingSqlMd5?: string;
|
|
2407
|
+
/**
|
|
2408
|
+
* <p>被阻塞SQL(blocked)MD5过滤(可选)。</p>
|
|
2409
|
+
*/
|
|
2410
|
+
BlockedSqlMd5?: string;
|
|
2411
|
+
/**
|
|
2412
|
+
* <p>数据库名列表过滤(可选),按阻塞事件所在数据库名过滤;列表内任意匹配即命中,最多50项。多库实例场景下推荐用本字段定位阻塞所在库。</p>
|
|
2413
|
+
*/
|
|
2414
|
+
DatabaseNames?: Array<string>;
|
|
2415
|
+
/**
|
|
2416
|
+
* <p>头阻塞会话 ID(SPID)列表过滤(可选),列表内任意匹配即命中,最多50项。</p>
|
|
2417
|
+
*/
|
|
2418
|
+
BlockingSessionIds?: Array<number | bigint>;
|
|
2419
|
+
/**
|
|
2420
|
+
* <p>被阻塞会话 ID(SPID)列表过滤(可选),列表内任意匹配即命中,最多50项。</p>
|
|
2421
|
+
*/
|
|
2422
|
+
BlockedSessionIds?: Array<number | bigint>;
|
|
2423
|
+
/**
|
|
2424
|
+
* <p>头阻塞登录名列表过滤(可选),列表内任意匹配即命中,最多50项。</p>
|
|
2425
|
+
*/
|
|
2426
|
+
BlockingLoginNames?: Array<string>;
|
|
2427
|
+
/**
|
|
2428
|
+
* <p>被阻塞登录名列表过滤(可选),列表内任意匹配即命中,最多50项。</p>
|
|
2429
|
+
*/
|
|
2430
|
+
BlockedLoginNames?: Array<string>;
|
|
2431
|
+
/**
|
|
2432
|
+
* <p>头阻塞客户端主机列表过滤(可选),列表内任意匹配即命中,最多50项。</p>
|
|
2433
|
+
*/
|
|
2434
|
+
BlockingHostNames?: Array<string>;
|
|
2435
|
+
/**
|
|
2436
|
+
* <p>被阻塞客户端主机列表过滤(可选),列表内任意匹配即命中,最多50项。</p>
|
|
2437
|
+
*/
|
|
2438
|
+
BlockedHostNames?: Array<string>;
|
|
2439
|
+
/**
|
|
2440
|
+
* <p>头阻塞客户端应用列表过滤(可选),列表内任意匹配即命中,最多50项。</p>
|
|
2441
|
+
*/
|
|
2442
|
+
BlockingClientApps?: Array<string>;
|
|
2443
|
+
/**
|
|
2444
|
+
* <p>被阻塞客户端应用列表过滤(可选),列表内任意匹配即命中,最多50项。</p>
|
|
2445
|
+
*/
|
|
2446
|
+
BlockedClientApps?: Array<string>;
|
|
2447
|
+
/**
|
|
2448
|
+
* <p>被阻塞方等待锁模式列表过滤(可选),SQL Server原生lock_mode枚举,常见取值(非穷尽):S、U、X、IS、IU、IX、SIU、SIX、UIX、Sch-S、Sch-M;serializable隔离级别下还可能出现RangeS-S / RangeS-U / RangeX-X / RangeI-N系列。列表内任意匹配即命中,最多50项。</p>
|
|
2449
|
+
*/
|
|
2450
|
+
BlockedLockModes?: Array<string>;
|
|
2451
|
+
/**
|
|
2452
|
+
* <p>被阻塞方等待时长下限(毫秒,含),用于筛选慢阻塞(可选)。</p>
|
|
2453
|
+
*/
|
|
2454
|
+
DurationMsMin?: number;
|
|
2455
|
+
/**
|
|
2456
|
+
* <p>被阻塞方等待时长上限(毫秒,含),用于筛选阻塞时长不超过某值的记录(可选)。</p>
|
|
2457
|
+
*/
|
|
2458
|
+
DurationMsMax?: number;
|
|
2459
|
+
/**
|
|
2460
|
+
* <p>排序字段(可选),支持reportTime(按明细行上报时间,默认)/ durationMs(按链路阻塞时长)/ blockedWaitTimeMs(按被阻塞方等待时长)/ blockingWaitTimeMs(按头阻塞自身等待时长)。</p>
|
|
2461
|
+
*/
|
|
2462
|
+
OrderBy?: string;
|
|
2463
|
+
/**
|
|
2464
|
+
* <p>排序方向(可选),支持desc(默认,倒序)/ asc(正序)。</p>
|
|
2465
|
+
*/
|
|
2466
|
+
OrderDirection?: string;
|
|
2467
|
+
/**
|
|
2468
|
+
* <p>返回条数上限,默认20,最大100。</p>
|
|
2469
|
+
*/
|
|
2470
|
+
Limit?: number;
|
|
2471
|
+
/**
|
|
2472
|
+
* <p>偏移量,默认 0。</p>
|
|
2473
|
+
*/
|
|
2474
|
+
Offset?: number;
|
|
2475
|
+
/**
|
|
2476
|
+
* <p>是否返回原始 blocked_process_report XML(可选,默认 false 不返回)。该字段体积较大(KB 级起步,含完整执行计划/等待链/死锁明细等原始上下文),常规列表展示不需要,仅在需要查看完整 XML 现场(如线下诊断、离线分析)时将本参数置为 true 按需拉取。</p>
|
|
2477
|
+
*/
|
|
2478
|
+
WithXml?: boolean;
|
|
2399
2479
|
}
|
|
2400
2480
|
/**
|
|
2401
2481
|
* ModifyDiagDBInstanceConf请求参数结构体
|
|
@@ -4064,30 +4144,209 @@ export interface DescribeSqlTemplateResponse {
|
|
|
4064
4144
|
RequestId?: string;
|
|
4065
4145
|
}
|
|
4066
4146
|
/**
|
|
4067
|
-
*
|
|
4147
|
+
* 阻塞日志扁平明细行:一次blocked_process_report(blocker→blocked边)在某一次monitorLoop内被lock monitor捕获的瞬时数据。
|
|
4068
4148
|
*/
|
|
4069
|
-
export interface
|
|
4149
|
+
export interface BlockingLogItem {
|
|
4070
4150
|
/**
|
|
4071
|
-
*
|
|
4151
|
+
* <p>本条明细行上报时间(事件时间,__time;时区UTC+8),格式:yyyy-MM-dd HH:mm:ss。</p>
|
|
4152
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4072
4153
|
*/
|
|
4073
|
-
|
|
4154
|
+
ReportTime?: string;
|
|
4074
4155
|
/**
|
|
4075
|
-
*
|
|
4156
|
+
* <p>监控轮次ID(同一实例内唯一标识一次采集快照,可透传至DescribeBlockingLockTree下钻查看完整阻塞树)。文本承载数值。</p>
|
|
4157
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4076
4158
|
*/
|
|
4077
|
-
|
|
4159
|
+
MonitorLoop?: string;
|
|
4078
4160
|
/**
|
|
4079
|
-
*
|
|
4161
|
+
* <p>被阻塞方的等待时长(毫秒)。来源:Kafka顶层Fields.duration÷1000(微秒→毫秒),来自SQL Server内核XEvent事件的duration字段。与BlockedWaitTimeMs来源不同但通常非常接近(非严格相等,两者为同一事件的两个独立快照);仅为OrderBy=durationMs排序别名保留。</p>
|
|
4162
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4080
4163
|
*/
|
|
4081
|
-
|
|
4164
|
+
DurationMs?: number;
|
|
4082
4165
|
/**
|
|
4083
|
-
*
|
|
4084
|
-
|
|
4085
|
-
HEALTH - 健康
|
|
4086
|
-
SUB_HEALTH - 亚健康
|
|
4087
|
-
RISK - 危险
|
|
4088
|
-
HIGH_RISK - 高危
|
|
4166
|
+
* <p>阻塞发生所在的数据库名称。</p>
|
|
4167
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4089
4168
|
*/
|
|
4090
|
-
|
|
4169
|
+
DatabaseName?: string;
|
|
4170
|
+
/**
|
|
4171
|
+
* <p>阻塞发生所在的数据库 ID(Fields.database_id,对应 SQL Server sys.databases.database_id)。可配合 DatabaseName 使用:ID 稳定、Name 易读;Name 在重命名场景下会变化,ID 则不会。采样为空时该字段不返回。</p>
|
|
4172
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4173
|
+
*/
|
|
4174
|
+
DatabaseId?: number;
|
|
4175
|
+
/**
|
|
4176
|
+
* <p>阻塞锁资源归属的对象 ID(Fields.object_id,对应 SQL Server sys.objects.object_id)。标识具体的表/视图/存储过程等用户对象;可结合 sys.objects 元数据查询对象名。采样为空时该字段不返回。</p>
|
|
4177
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4178
|
+
*/
|
|
4179
|
+
ObjectId?: number;
|
|
4180
|
+
/**
|
|
4181
|
+
* <p>阻塞锁资源归属的索引 ID(Fields.index_id,对应 SQL Server sys.indexes.index_id)。常见取值:0=堆(无聚集索引)、1=聚集索引、>1=非聚集索引;>250 通常为系统内部索引(如全文/XML/空间索引),诊断时按"是否为用户索引"判断即可。采样为空时该字段不返回。</p>
|
|
4182
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4183
|
+
*/
|
|
4184
|
+
IndexId?: number;
|
|
4185
|
+
/**
|
|
4186
|
+
* <p>根因分类(与枚举BlockingRootCause一一对应)。取值:C1_LONG_QUERY=长查询正常运行阻塞;C2_SLEEPING_UNCOMMITTED=休眠会话且存在未提交事务;C3_CLIENT_NOT_FETCHING=客户端未取完结果行;C4_APP_DEADLOCK=应用层分布式死锁;C5_ROLLBACK=会话正在rollback;C6_ORPHAN_TRANSACTION=孤立事务;UNKNOWN=未识别。</p>
|
|
4187
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4188
|
+
*/
|
|
4189
|
+
RootCause?: string;
|
|
4190
|
+
/**
|
|
4191
|
+
* <p>根因分类的可读中文描述(服务端已完成中文化,前端可直接展示;与RootCause代号一一对应,例如C1_LONG_QUERY→"长查询正常运行阻塞,考虑优化SQL/索引",未识别或空值统一返回"未识别")。</p>
|
|
4192
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4193
|
+
*/
|
|
4194
|
+
RootCauseDesc?: string;
|
|
4195
|
+
/**
|
|
4196
|
+
* <p>头阻塞会话 ID(对应 SQL Server sys.dm_exec_sessions.session_id,即 SPID)。</p>
|
|
4197
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4198
|
+
*/
|
|
4199
|
+
BlockingSessionId?: number;
|
|
4200
|
+
/**
|
|
4201
|
+
* <p>头阻塞会话数据库用户。</p>
|
|
4202
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4203
|
+
*/
|
|
4204
|
+
BlockingLoginName?: string;
|
|
4205
|
+
/**
|
|
4206
|
+
* <p>头阻塞会话客户端主机。</p>
|
|
4207
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4208
|
+
*/
|
|
4209
|
+
BlockingHostName?: string;
|
|
4210
|
+
/**
|
|
4211
|
+
* <p>头阻塞会话客户端应用名。</p>
|
|
4212
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4213
|
+
*/
|
|
4214
|
+
BlockingClientApp?: string;
|
|
4215
|
+
/**
|
|
4216
|
+
* <p>头阻塞会话运行时状态(SQL Server sys.dm_exec_sessions.status文本),常见取值:running / sleeping / suspended / background。sleeping+trancount>0是C2_SLEEPING_UNCOMMITTED(休眠会话持未提交事务)的直接证据。</p>
|
|
4217
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4218
|
+
*/
|
|
4219
|
+
BlockingStatus?: string;
|
|
4220
|
+
/**
|
|
4221
|
+
* <p>头阻塞会话事务隔离级别(SQL Server原生取值:read uncommitted / read committed / repeatable read / serializable / snapshot)。</p>
|
|
4222
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4223
|
+
*/
|
|
4224
|
+
BlockingIsolationLevel?: string;
|
|
4225
|
+
/**
|
|
4226
|
+
* <p>头阻塞会话当前显式事务名(XEvent transactionname,如user_transaction / implicit_transaction)。</p>
|
|
4227
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4228
|
+
*/
|
|
4229
|
+
BlockingTransactionName?: string;
|
|
4230
|
+
/**
|
|
4231
|
+
* <p>头阻塞会话当前显式事务嵌套层数(XEvent trancount)。>0表示持有显式事务;与BlockingStatus=sleeping组合是C2_SLEEPING_UNCOMMITTED(休眠会话持未提交事务)的直接证据。</p>
|
|
4232
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4233
|
+
*/
|
|
4234
|
+
BlockingTranCount?: number;
|
|
4235
|
+
/**
|
|
4236
|
+
* <p>头阻塞会话显式事务BEGIN TRAN时刻(XEvent lasttranstarted,SQL Server服务端本地时区的ISO 8601字符串,无时区后缀)。该字段代表事务持锁开始时刻:ReportTime-BlockingLastTranStarted≈事务持锁时长,用于C1_LONG_QUERY / C6_ORPHAN_TRANSACTION根因复核;在多语句事务场景下比lastbatchstarted更稳定(不会被每个新batch刷新)。值为空表示XML未提供该属性(blocking-process侧常见)。</p>
|
|
4237
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4238
|
+
*/
|
|
4239
|
+
BlockingLastTranStarted?: string;
|
|
4240
|
+
/**
|
|
4241
|
+
* <p>头阻塞会话正在执行的SQL原文(对应DBCC INPUTBUFFER返回内容,单条最长16KB,超长截断)。</p>
|
|
4242
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4243
|
+
*/
|
|
4244
|
+
BlockingInputBuffer?: string;
|
|
4245
|
+
/**
|
|
4246
|
+
* <p>头阻塞SQL归一化模板。</p>
|
|
4247
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4248
|
+
*/
|
|
4249
|
+
BlockingSqlTemplate?: string;
|
|
4250
|
+
/**
|
|
4251
|
+
* <p>头阻塞SQL模板MD5。</p>
|
|
4252
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4253
|
+
*/
|
|
4254
|
+
BlockingSqlMd5?: string;
|
|
4255
|
+
/**
|
|
4256
|
+
* <p>头阻塞会话持有或请求的锁模式(SQL Server原生lock_mode枚举;blocker通常不处于等锁状态,该字段多为空)。</p>
|
|
4257
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4258
|
+
*/
|
|
4259
|
+
BlockingLockMode?: string;
|
|
4260
|
+
/**
|
|
4261
|
+
* <p>头阻塞会话自身的等待时长(毫秒)。多数场景为0。</p>
|
|
4262
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4263
|
+
*/
|
|
4264
|
+
BlockingWaitTimeMs?: number;
|
|
4265
|
+
/**
|
|
4266
|
+
* <p>被阻塞会话 ID(对应 SQL Server sys.dm_exec_sessions.session_id,即 SPID)。</p>
|
|
4267
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4268
|
+
*/
|
|
4269
|
+
BlockedSessionId?: number;
|
|
4270
|
+
/**
|
|
4271
|
+
* <p>被阻塞会话事务ID(SQL Server transaction_id,bigint)。</p>
|
|
4272
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4273
|
+
*/
|
|
4274
|
+
BlockedTransactionId?: number;
|
|
4275
|
+
/**
|
|
4276
|
+
* <p>被阻塞会话等待时长(毫秒)。来源:XML <blocked-process><process waittime>属性(来自ys.dm_os_waiting_tasks.wait_duration_ms在report生成瞬间的快照)。与DurationMs来源不同但通常非常接近;仅为OrderBy=blockedWaitTimeMs排序别名保留。</p>
|
|
4277
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4278
|
+
*/
|
|
4279
|
+
BlockedWaitTimeMs?: number;
|
|
4280
|
+
/**
|
|
4281
|
+
* <p>被阻塞会话正在等待的锁模式(SQL Server原生lock_mode枚举,常见取值:S、U、X、IS、IU、IX、SIU、SIX、UIX、Sch-S、Sch-M)。</p>
|
|
4282
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4283
|
+
*/
|
|
4284
|
+
BlockedLockMode?: string;
|
|
4285
|
+
/**
|
|
4286
|
+
* <p>被阻塞会话等待资源。</p>
|
|
4287
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4288
|
+
*/
|
|
4289
|
+
BlockedWaitResource?: string;
|
|
4290
|
+
/**
|
|
4291
|
+
* <p>被阻塞会话数据库用户。</p>
|
|
4292
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4293
|
+
*/
|
|
4294
|
+
BlockedLoginName?: string;
|
|
4295
|
+
/**
|
|
4296
|
+
* <p>被阻塞会话客户端主机。</p>
|
|
4297
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4298
|
+
*/
|
|
4299
|
+
BlockedHostName?: string;
|
|
4300
|
+
/**
|
|
4301
|
+
* <p>被阻塞会话客户端应用名。</p>
|
|
4302
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4303
|
+
*/
|
|
4304
|
+
BlockedClientApp?: string;
|
|
4305
|
+
/**
|
|
4306
|
+
* <p>被阻塞会话运行时状态(SQL Server sys.dm_exec_sessions.status文本),常见取值:running / sleeping / suspended / background。</p>
|
|
4307
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4308
|
+
*/
|
|
4309
|
+
BlockedStatus?: string;
|
|
4310
|
+
/**
|
|
4311
|
+
* <p>被阻塞会话事务隔离级别(SQL Server原生取值:read uncommitted / read committed / repeatable read / serializable / snapshot)。</p>
|
|
4312
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4313
|
+
*/
|
|
4314
|
+
BlockedIsolationLevel?: string;
|
|
4315
|
+
/**
|
|
4316
|
+
* <p>被阻塞会话当前显式事务名(XEvent transactionname)。</p>
|
|
4317
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4318
|
+
*/
|
|
4319
|
+
BlockedTransactionName?: string;
|
|
4320
|
+
/**
|
|
4321
|
+
* <p>被阻塞会话当前显式事务嵌套层数(XEvent trancount)。</p>
|
|
4322
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4323
|
+
*/
|
|
4324
|
+
BlockedTranCount?: number;
|
|
4325
|
+
/**
|
|
4326
|
+
* <p>被阻塞会话显式事务BEGIN TRAN时刻(XEvent lasttranstarted,SQL Server服务端本地时区的ISO 8601字符串,无时区后缀)。该字段代表事务开始时刻,在多语句事务场景下比lastbatchstarted更稳定。咨视值1900-01-01T00:00:00表示未知。</p>
|
|
4327
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4328
|
+
*/
|
|
4329
|
+
BlockedLastTranStarted?: string;
|
|
4330
|
+
/**
|
|
4331
|
+
* <p>被阻塞会话正在执行的SQL原文(对应DBCC INPUTBUFFER返回内容,单条最长16KB,超长截断)。</p>
|
|
4332
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4333
|
+
*/
|
|
4334
|
+
BlockedInputBuffer?: string;
|
|
4335
|
+
/**
|
|
4336
|
+
* <p>被阻塞SQL归一化模板。</p>
|
|
4337
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4338
|
+
*/
|
|
4339
|
+
BlockedSqlTemplate?: string;
|
|
4340
|
+
/**
|
|
4341
|
+
* <p>被阻塞SQL模板MD5。</p>
|
|
4342
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4343
|
+
*/
|
|
4344
|
+
BlockedSqlMd5?: string;
|
|
4345
|
+
/**
|
|
4346
|
+
* <p>被阻塞方 blocked_process_report 原始 XML 文本(含完整执行计划、等待链、死锁明细等原始现场;字段体积较大,KB 级起步)。仅当请求参数 WithXml=true 时才返回;默认 false 时该字段省略,不出现在响应体中。</p>
|
|
4347
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4348
|
+
*/
|
|
4349
|
+
BlockedProcessXml?: string;
|
|
4091
4350
|
}
|
|
4092
4351
|
/**
|
|
4093
4352
|
* DescribeRedisTopCostCommands请求参数结构体
|
|
@@ -4184,6 +4443,32 @@ export interface DescribeDBDiagEventRequest {
|
|
|
4184
4443
|
*/
|
|
4185
4444
|
Product?: string;
|
|
4186
4445
|
}
|
|
4446
|
+
/**
|
|
4447
|
+
* 获取健康得分返回的详情。
|
|
4448
|
+
*/
|
|
4449
|
+
export interface HealthScoreInfo {
|
|
4450
|
+
/**
|
|
4451
|
+
* 异常详情。
|
|
4452
|
+
*/
|
|
4453
|
+
IssueTypes?: Array<IssueTypeInfo>;
|
|
4454
|
+
/**
|
|
4455
|
+
* 异常事件总数。
|
|
4456
|
+
*/
|
|
4457
|
+
EventsTotalCount?: number;
|
|
4458
|
+
/**
|
|
4459
|
+
* 健康得分。
|
|
4460
|
+
*/
|
|
4461
|
+
HealthScore?: number;
|
|
4462
|
+
/**
|
|
4463
|
+
* 健康等级, 如:"HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK"。
|
|
4464
|
+
其中:
|
|
4465
|
+
HEALTH - 健康
|
|
4466
|
+
SUB_HEALTH - 亚健康
|
|
4467
|
+
RISK - 危险
|
|
4468
|
+
HIGH_RISK - 高危
|
|
4469
|
+
*/
|
|
4470
|
+
HealthLevel?: string;
|
|
4471
|
+
}
|
|
4187
4472
|
/**
|
|
4188
4473
|
* 实例健康详情。
|
|
4189
4474
|
*/
|
|
@@ -5202,6 +5487,23 @@ export interface DescribeAlarmTemplateResponse {
|
|
|
5202
5487
|
*/
|
|
5203
5488
|
RequestId?: string;
|
|
5204
5489
|
}
|
|
5490
|
+
/**
|
|
5491
|
+
* DescribeBlockingLogs返回参数结构体
|
|
5492
|
+
*/
|
|
5493
|
+
export interface DescribeBlockingLogsResponse {
|
|
5494
|
+
/**
|
|
5495
|
+
* <p>满足条件的阻塞明细总条数。</p>
|
|
5496
|
+
*/
|
|
5497
|
+
TotalCount?: number;
|
|
5498
|
+
/**
|
|
5499
|
+
* <p>阻塞明细行列表(按OrderBy / OrderDirection排序)。</p>
|
|
5500
|
+
*/
|
|
5501
|
+
Items?: Array<BlockingLogItem>;
|
|
5502
|
+
/**
|
|
5503
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5504
|
+
*/
|
|
5505
|
+
RequestId?: string;
|
|
5506
|
+
}
|
|
5205
5507
|
/**
|
|
5206
5508
|
* DescribeNoPrimaryKeyTables返回参数结构体
|
|
5207
5509
|
*/
|
|
@@ -6459,6 +6761,27 @@ export interface DescribeProxyProcessStatisticsRequest {
|
|
|
6459
6761
|
*/
|
|
6460
6762
|
OrderDirection?: string;
|
|
6461
6763
|
}
|
|
6764
|
+
/**
|
|
6765
|
+
* DescribeRedisCommandCostStatistics请求参数结构体
|
|
6766
|
+
*/
|
|
6767
|
+
export interface DescribeRedisCommandCostStatisticsRequest {
|
|
6768
|
+
/**
|
|
6769
|
+
* 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。
|
|
6770
|
+
*/
|
|
6771
|
+
InstanceId: string;
|
|
6772
|
+
/**
|
|
6773
|
+
* 开始时间,如“2025-03-17T00:00:00+00:00”。0天 < 当前服务器时间 - 开始时间 <= 10天。
|
|
6774
|
+
*/
|
|
6775
|
+
StartTime: string;
|
|
6776
|
+
/**
|
|
6777
|
+
* 结束时间,如“2025-03-17T01:00:00+00:00”,0天 < 结束时间 - 开始时间 <= 10天。
|
|
6778
|
+
*/
|
|
6779
|
+
EndTime: string;
|
|
6780
|
+
/**
|
|
6781
|
+
* 服务产品类型,仅仅支持值 "redis" - 云数据库 Redis。
|
|
6782
|
+
*/
|
|
6783
|
+
Product: string;
|
|
6784
|
+
}
|
|
6462
6785
|
/**
|
|
6463
6786
|
* MySQL 系列产品空间对象项。库级查询时不包含 TableName/Engine 字段;表级查询时包含全部字段。
|
|
6464
6787
|
*/
|