Skip to content

Commit

Permalink
feat: Add an option to get hits by user agent in analytics dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
aelamrani authored and brasseld committed Mar 1, 2019
1 parent 2f1718e commit 7561d63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/io/gravitee/reporter/api/http/Metrics.java
Expand Up @@ -49,6 +49,7 @@ public final class Metrics extends AbstractMetrics {
private Log log;
private String path;
private String mappedPath;
private String userAgent;

private Metrics(long timestamp) {
super(timestamp);
Expand Down Expand Up @@ -238,6 +239,14 @@ public void setHost(String host) {
this.host = host;
}

public String getUserAgent() {
return userAgent;
}

public void setUserAgent(String userAgent) {
this.userAgent = userAgent;
}

public static Builder on(long timestamp) {
return new Builder(timestamp);
}
Expand Down

0 comments on commit 7561d63

Please sign in to comment.