feat(redis): add slowlog panel and integrate with backend APIs

* feat(redis): add slowlog panel and integrate with backend APIs

* fix(redis):Slowlog Panel Compatibility Issues
This commit is contained in:
dalew authored and GitHub committed 2026-06-20 21:47:14 +08:00
1 parent dbb3915380
commit f71406c1c2
13 files changed
+558 -3

No files matched your search

+10
View File
@@ -49,6 +49,8 @@ import type {
RedisValue,
RedisScanResult,
RedisCommandResult,
RedisSlowlogEntry,
RedisNodeEndpoint,
KvValue,
KvListPrefixResponse,
KvGetResponse,
@@ -1444,6 +1446,14 @@ export async function redisPubSubPublish(connectionId: string, db: number, chann
return post("/api/redis/pubsub/publish", { connectionId, db, channel, message });
}
export async function redisSlowlogGet(connectionId: string, count: number, nodeHost?: string, nodePort?: number): Promise<RedisSlowlogEntry[]> {
return post("/api/redis/slowlog-get", { connectionId, count, nodeHost, nodePort });
}
export async function redisClusterMasterNodes(connectionId: string): Promise<RedisNodeEndpoint[]> {
return post("/api/redis/cluster-master-nodes", { connectionId });
}
// ---------------------------------------------------------------------------
// etcd
// ---------------------------------------------------------------------------