提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.api.logger.dto; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotNull; |
|
7 |
import java.time.LocalDateTime; |
|
8 |
|
|
9 |
@Schema(description = "RPC 服务 - API 错误日志创建 Request DTO") |
|
10 |
@Data |
|
11 |
public class ApiErrorLogCreateReqDTO { |
|
12 |
|
|
13 |
@Schema(description = "链路追踪编号", example = "89aca178-a370-411c-ae02-3f0d672be4ab") |
|
14 |
private String traceId; |
|
15 |
|
|
16 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
17 |
private Long userId; |
|
18 |
@Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
19 |
private Integer userType; |
|
20 |
@Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "system-server") |
|
21 |
@NotNull(message = "应用名不能为空") |
|
22 |
private String applicationName; |
|
23 |
|
|
24 |
@Schema(description = "请求方法名", requiredMode = Schema.RequiredMode.REQUIRED, example = "GET") |
|
25 |
@NotNull(message = "http 请求方法不能为空") |
|
26 |
private String requestMethod; |
|
27 |
@Schema(description = "请求地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "/xxx/yyy") |
|
28 |
@NotNull(message = "访问地址不能为空") |
|
29 |
private String requestUrl; |
|
30 |
@Schema(description = "请求参数", requiredMode = Schema.RequiredMode.REQUIRED) |
|
31 |
@NotNull(message = "请求参数不能为空") |
|
32 |
private String requestParams; |
|
33 |
@Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
|
34 |
@NotNull(message = "ip 不能为空") |
|
35 |
private String userIp; |
|
36 |
@Schema(description = "浏览器 UserAgent", requiredMode = Schema.RequiredMode.REQUIRED, example = "Mozilla/5.0") |
|
37 |
@NotNull(message = "User-Agent 不能为空") |
|
38 |
private String userAgent; |
|
39 |
|
|
40 |
@Schema(description = "异常时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
41 |
@NotNull(message = "异常时间不能为空") |
|
42 |
private LocalDateTime exceptionTime; |
|
43 |
@Schema(description = "异常名", requiredMode = Schema.RequiredMode.REQUIRED) |
|
44 |
@NotNull(message = "异常名不能为空") |
|
45 |
private String exceptionName; |
|
46 |
@Schema(description = "异常发生的类全名", requiredMode = Schema.RequiredMode.REQUIRED) |
|
47 |
@NotNull(message = "异常发生的类全名不能为空") |
|
48 |
private String exceptionClassName; |
|
49 |
@Schema(description = "异常发生的类文件", requiredMode = Schema.RequiredMode.REQUIRED) |
|
50 |
@NotNull(message = "异常发生的类文件不能为空") |
|
51 |
private String exceptionFileName; |
|
52 |
@Schema(description = "异常发生的方法名", requiredMode = Schema.RequiredMode.REQUIRED) |
|
53 |
@NotNull(message = "异常发生的方法名不能为空") |
|
54 |
private String exceptionMethodName; |
|
55 |
@Schema(description = "异常发生的方法所在行", requiredMode = Schema.RequiredMode.REQUIRED) |
|
56 |
@NotNull(message = "异常发生的方法所在行不能为空") |
|
57 |
private Integer exceptionLineNumber; |
|
58 |
@Schema(description = "异常的栈轨迹异常的栈轨迹", requiredMode = Schema.RequiredMode.REQUIRED) |
|
59 |
@NotNull(message = "异常的栈轨迹不能为空") |
|
60 |
private String exceptionStackTrace; |
|
61 |
@Schema(description = "异常导致的根消息", requiredMode = Schema.RequiredMode.REQUIRED) |
|
62 |
@NotNull(message = "异常导致的根消息不能为空") |
|
63 |
private String exceptionRootCauseMessage; |
|
64 |
@Schema(description = "异常导致的消息", requiredMode = Schema.RequiredMode.REQUIRED) |
|
65 |
@NotNull(message = "异常导致的消息不能为空") |
|
66 |
private String exceptionMessage; |
|
67 |
|
|
68 |
} |