public class InfluxDbNotifier extends BuildNotifier
Modifier and Type | Field and Description |
---|---|
protected String |
authorization |
protected String |
branchName |
protected InfluxDbNotifierConfig |
config |
protected String |
influxDbUrlString |
protected String |
repoName |
protected String |
repoOwner |
DEFAULT_LONG, DEFAULT_STRING
Constructor and Description |
---|
InfluxDbNotifier(InfluxDbNotifierConfig config)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled()
Determines whether this notifier is enabled.
|
void |
notifyBuildStageStatus(String jobName,
BuildStage stageItem)
Sends a state change to InfluxDB.
|
void |
notifyFinalBuildStatus(BuildStage.State buildState,
Map<String,Object> parameters)
Sends the final build status to InfluxDB.
|
boolean |
wantsOutOfStageErrors()
Get whether the notifier wants to know about errors that happen outside of a stage.
|
all, getLong
protected String repoOwner
protected String repoName
protected String branchName
protected String influxDbUrlString
protected InfluxDbNotifierConfig config
protected transient String authorization
public InfluxDbNotifier(InfluxDbNotifierConfig config)
config
- InfluxDB configuration infopublic boolean isEnabled()
isEnabled
in class BuildNotifier
public boolean wantsOutOfStageErrors()
wantsOutOfStageErrors
in class BuildNotifier
public void notifyBuildStageStatus(String jobName, BuildStage stageItem)
notifyBuildStageStatus
in class BuildNotifier
jobName
- the name of the jobstageItem
- stage item describing the new statepublic void notifyFinalBuildStatus(BuildStage.State buildState, Map<String,Object> parameters)
notifyFinalBuildStatus
in class BuildNotifier
buildState
- the new stateparameters
- build parametersCopyright © 2016–2020. All rights reserved.