Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
363 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/org/whispersystems/textsecuregcm/configuration/MetricsConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
Oops, something went wrong.
aea3f29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! BitHub has sent payment of $42.13USD for this commit.