JSON metrics reporting.

This commit is contained in:
Moxie Marlinspike
2014-03-19 14:31:31 -07:00
parent 5667476780
commit aea3f299a0
5 changed files with 363 additions and 10 deletions

View File

@@ -0,0 +1,27 @@
package org.whispersystems.textsecuregcm.configuration;
import com.fasterxml.jackson.annotation.JsonProperty;
public class MetricsConfiguration {
@JsonProperty
private String token;
@JsonProperty
private String host;
@JsonProperty
private boolean enabled = false;
public String getHost() {
return host;
}
public String getToken() {
return token;
}
public boolean isEnabled() {
return enabled && token != null && host != null;
}
}