
com.capitalone.dashboard.collector.GitHubSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of github-scm-collector Show documentation
Show all versions of github-scm-collector Show documentation
Github Collector Microservice collecting stats from Github
The newest version!
package com.capitalone.dashboard.collector;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* Bean to hold settings specific to the GitHub collector.
*/
@Component
@ConfigurationProperties(prefix = "github")
public class GitHubSettings {
private String proxy;
private String proxyPort;
private String proxyUser;
private String proxyPassword;
private String cron;
private String host;
private String key;
@Value("${github.firstRunHistoryDays:14}")
private int firstRunHistoryDays;
private List notBuiltCommits;
@Value("${github.errorThreshold:2}")
private int errorThreshold;
@Value("${github.rateLimitThreshold:10}")
private int rateLimitThreshold;
private String personalAccessToken;
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public String getCron() {
return cron;
}
public void setCron(String cron) {
this.cron = cron;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public int getFirstRunHistoryDays() {
return firstRunHistoryDays;
}
public void setFirstRunHistoryDays(int firstRunHistoryDays) {
this.firstRunHistoryDays = firstRunHistoryDays;
}
public List getNotBuiltCommits() {
return notBuiltCommits;
}
public void setNotBuiltCommits(List notBuiltCommits) {
this.notBuiltCommits = notBuiltCommits;
}
public int getErrorThreshold() {
return errorThreshold;
}
public void setErrorThreshold(int errorThreshold) {
this.errorThreshold = errorThreshold;
}
public int getRateLimitThreshold() {
return rateLimitThreshold;
}
public void setRateLimitThreshold(int rateLimitThreshold) {
this.rateLimitThreshold = rateLimitThreshold;
}
public String getPersonalAccessToken() {
return personalAccessToken;
}
public void setPersonalAccessToken(String personalAccessToken) {
this.personalAccessToken = personalAccessToken;
}
public String getProxyUser(){ //getters and setters
return proxyUser;
}
public void setProxyUser(String proxyUser){
this.proxyUser=proxyUser;
}
public String getProxyPassword(){
return proxyPassword;
}
public void setProxyPassword(String proxyPassword){
this.proxyPassword=proxyPassword;
}
public String getProxyPort() {
return proxyPort;
}
public void setProxyPort(String proxyPort){
this.proxyPort=proxyPort;
}
public String getProxy() {
return proxy;
}
public void setProxy(String proxy) {
this.proxy = proxy;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy