Forráskód Böngészése

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

reghao 2 hónapja
szülő
commit
2921bfe2c2

+ 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;
     }