public class InfluxDbNotifierConfig extends Object
Constructor and Description |
---|
InfluxDbNotifierConfig() |
Modifier and Type | Method and Description |
---|---|
static InfluxDbNotifierConfig |
fromGlobalConfig(String repoOwner,
String repoName,
String branchName)
Creates an influxdb notification config based on the global settings.
|
String |
getBranchName()
Gets the branch name.
|
com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials |
getCredentials()
Returns credentials for calling influxdb if they are configured.
|
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient()
Gets an http client that can be used to make requests.
|
String |
getInfluxDbDatabase()
Gets the influx db to write to.
|
String |
getInfluxDbRetentionPolicy()
Gets the optional retention policy.
|
String |
getInfluxDbUrlString()
Gets influx db url.
|
String |
getRepoName()
Gets the repo name.
|
String |
getRepoOwner()
Gets the repo owner.
|
Boolean |
influxDbIsReachable()
Determines if influx db url is reachable.
|
public String getRepoOwner()
public String getRepoName()
public String getBranchName()
public String getInfluxDbUrlString()
public Boolean influxDbIsReachable()
public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
public String getInfluxDbDatabase()
@CheckForNull public com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials getCredentials()
public String getInfluxDbRetentionPolicy()
public static InfluxDbNotifierConfig fromGlobalConfig(String repoOwner, String repoName, String branchName)
repoOwner
- repo owner.repoName
- repo name.branchName
- branch name.Copyright © 2016–2018. All rights reserved.