提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.redis.vo; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.AllArgsConstructor; |
|
5 |
import lombok.Builder; |
|
6 |
import lombok.Data; |
|
7 |
|
|
8 |
import java.util.List; |
|
9 |
import java.util.Properties; |
|
10 |
|
|
11 |
@Schema(description = "管理后台 - Redis 监控信息 Response VO") |
|
12 |
@Data |
|
13 |
@Builder |
|
14 |
@AllArgsConstructor |
|
15 |
public class RedisMonitorRespVO { |
|
16 |
|
|
17 |
@Schema(description = "Redis info 指令结果,具体字段,查看 Redis 文档", requiredMode = Schema.RequiredMode.REQUIRED) |
|
18 |
private Properties info; |
|
19 |
|
|
20 |
@Schema(description = "Redis key 数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
21 |
private Long dbSize; |
|
22 |
|
|
23 |
@Schema(description = "CommandStat 数组", requiredMode = Schema.RequiredMode.REQUIRED) |
|
24 |
private List<CommandStat> commandStats; |
|
25 |
|
|
26 |
@Schema(description = "Redis 命令统计结果") |
|
27 |
@Data |
|
28 |
@Builder |
|
29 |
@AllArgsConstructor |
|
30 |
public static class CommandStat { |
|
31 |
|
|
32 |
@Schema(description = "Redis 命令", requiredMode = Schema.RequiredMode.REQUIRED, example = "get") |
|
33 |
private String command; |
|
34 |
|
|
35 |
@Schema(description = "调用次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
36 |
private Long calls; |
|
37 |
|
|
38 |
@Schema(description = "消耗 CPU 秒数", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
|
39 |
private Long usec; |
|
40 |
|
|
41 |
} |
|
42 |
|
|
43 |
} |