|
@@ -2,57 +2,41 @@ package com.fdkankan.gateway.log;
|
|
|
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
import org.springframework.data.annotation.Id;
|
|
import org.springframework.data.annotation.Id;
|
|
-import org.springframework.data.mongodb.core.mapping.Document;
|
|
|
|
-import org.springframework.data.mongodb.core.mapping.Field;
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
|
|
@Data
|
|
@Data
|
|
-@Document("GatewayLog")
|
|
|
|
public class GatewayLog {
|
|
public class GatewayLog {
|
|
|
|
|
|
@Id
|
|
@Id
|
|
private String id;
|
|
private String id;
|
|
/**访问实例*/
|
|
/**访问实例*/
|
|
- @Field("targetServer")
|
|
|
|
private String targetServer;
|
|
private String targetServer;
|
|
/**请求路径*/
|
|
/**请求路径*/
|
|
- @Field("requestPath")
|
|
|
|
private String requestPath;
|
|
private String requestPath;
|
|
/**请求方法*/
|
|
/**请求方法*/
|
|
- @Field("requestMethod")
|
|
|
|
private String requestMethod;
|
|
private String requestMethod;
|
|
/**协议 */
|
|
/**协议 */
|
|
- @Field("schema")
|
|
|
|
private String schema;
|
|
private String schema;
|
|
/**请求体*/
|
|
/**请求体*/
|
|
- @Field("requestBody")
|
|
|
|
private String requestBody;
|
|
private String requestBody;
|
|
/**响应码*/
|
|
/**响应码*/
|
|
- @Field("code")
|
|
|
|
private int code;
|
|
private int code;
|
|
/**相应提示*/
|
|
/**相应提示*/
|
|
- @Field("message")
|
|
|
|
private String message;
|
|
private String message;
|
|
/**响应体*/
|
|
/**响应体*/
|
|
- @Field("responseData")
|
|
|
|
private String responseData;
|
|
private String responseData;
|
|
/**请求ip*/
|
|
/**请求ip*/
|
|
- @Field("ip")
|
|
|
|
private String ip;
|
|
private String ip;
|
|
/**请求时间*/
|
|
/**请求时间*/
|
|
- @Field("requestTime")
|
|
|
|
private Date requestTime;
|
|
private Date requestTime;
|
|
/**响应时间*/
|
|
/**响应时间*/
|
|
- @Field("responseTime")
|
|
|
|
private Date responseTime;
|
|
private Date responseTime;
|
|
/**执行时间*/
|
|
/**执行时间*/
|
|
- @Field("executeTime")
|
|
|
|
private long executeTime;
|
|
private long executeTime;
|
|
/**
|
|
/**
|
|
* tlog日志id
|
|
* tlog日志id
|
|
*/
|
|
*/
|
|
- @Field("traceId")
|
|
|
|
private String traceId;
|
|
private String traceId;
|
|
|
|
|
|
}
|
|
}
|