소스 검색

NginxLog 添加一个 requestTimestamp 字段表示 ms 时间戳

reghao 2 달 전
부모
커밋
2921bfe2c2
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      jdk/src/main/java/cn/reghao/jutil/jdk/web/log/NginxLog.java

+ 9 - 0
jdk/src/main/java/cn/reghao/jutil/jdk/web/log/NginxLog.java

@@ -13,6 +13,7 @@ public class NginxLog implements Serializable {
 
     private String id;
     @SerializedName("time_iso8601") private String timeIso8601;
+    private Long requestTimestamp;
     @SerializedName("remote_addr") private String remoteAddr;
     private String request;
     private Integer status;
@@ -40,6 +41,14 @@ public class NginxLog implements Serializable {
         return timeIso8601;
     }
 
+    public void setRequestTimestamp(Long requestTimestamp) {
+        this.requestTimestamp = requestTimestamp;
+    }
+
+    public Long getRequestTimestamp() {
+        return requestTimestamp;
+    }
+
     public String getRemoteAddr() {
         return remoteAddr;
     }