public class InfluxDbNotifierConfig extends AbstractNotifierConfig
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 the credentials for calling InfluxDB if they are configured.
|
Integer |
getDbVersion() |
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient()
Gets an HTTP client that can be used to make requests.
|
boolean |
getIgnoreSendingTestCoverageToInflux()
Gets whether to ignore sending test coverage to InfluxDB.
|
boolean |
getIgnoreSendingTestResultsToInflux()
Gets whether to ignore sending test results to InfluxDB.
|
String |
getInfluxDbDatabase()
Gets the InfluxDB database to write to.
|
String |
getInfluxDbRetentionPolicy()
Gets the optional retention policy.
|
String |
getInfluxDbUrlString()
Gets the InfluxDB URL.
|
String |
getRepoName()
Gets the repo name.
|
String |
getRepoOwner()
Gets the repo owner.
|
InfluxDbNotifierSchemas.SchemaInfo |
getSchema() |
Boolean |
influxDbIsReachable()
Determines if InfluxDB is reachable.
|
getHttpClient
public String getRepoOwner()
public String getRepoName()
public String getBranchName()
public String getInfluxDbUrlString()
public Integer getDbVersion()
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 InfluxDbNotifierSchemas.SchemaInfo getSchema()
public boolean getIgnoreSendingTestCoverageToInflux()
public boolean getIgnoreSendingTestResultsToInflux()
public static InfluxDbNotifierConfig fromGlobalConfig(String repoOwner, String repoName, String branchName)
repoOwner
- repo ownerrepoName
- repo namebranchName
- branch nameCopyright © 2016–2020. All rights reserved.