package com.emilburzo.hnjobs.shared.rpc;

public class SearchLogRPC {

    public String query;
    public int results;
    public long durationMs;

    public SearchLogRPC() {
    }

    public SearchLogRPC(String query, int results, long durationMs) {
        this.query = query;
        this.results = results;
        this.durationMs = durationMs;
    }
}

@@ -35,16 +35,40 @@
 d.rpc;%0A%0A
+import java.util.Date;%0A%0A
 public c
@@ -164,16 +164,66 @@
 ationMs;
+%0A    public long timestamp = new Date().getTime();
 %0A%0A    pu

add temporal context to logged searches