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:
1 parent
dbb3915380
commit
f71406c1c2
13 files changed
+558
-3
No files matched your search
@@ -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
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user