public class InfluxDbNotifier extends Object implements BuildNotifier
| Modifier and Type | Field and Description |
|---|---|
protected String |
authorization |
protected String |
branchName |
protected InfluxDbNotifierConfig |
config |
protected String |
DEFAULT_STRING |
protected String |
influxDbUrlString |
protected String |
repoName |
protected String |
repoOwner |
| Constructor and Description |
|---|
InfluxDbNotifier(InfluxDbNotifierConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
escapeTagValue(String tagValue) |
boolean |
isEnabled()
Determine whether notifier is enabled
|
void |
notifyBuildStageStatus(String jobName,
String nodeName,
BuildState buildState,
long timingInfo)
Send a state change to influx
|
void |
notifyBuildState(String jobName,
String nodeName,
BuildState buildState)
Send stage status notification to influx
|
void |
notifyFinalBuildStatus(String jobName,
BuildState buildState,
long buildDuration,
long blockedDuration)
Send final build status to influx
|
void |
sendNonStageError(String jobName,
String nodeName)
Sends a notification for an error regardless of whether initial pending
status was sent.
|
protected final String DEFAULT_STRING
protected String repoOwner
protected String repoName
protected String branchName
protected String influxDbUrlString
protected InfluxDbNotifierConfig config
protected transient String authorization
public InfluxDbNotifier(InfluxDbNotifierConfig config)
public boolean isEnabled()
isEnabled in interface BuildNotifierpublic void notifyBuildState(String jobName, String nodeName, BuildState buildState)
notifyBuildState in interface BuildNotifiernodeName - the node that has changedbuildState - the new statejobName - the name of the job.public void notifyBuildStageStatus(String jobName, String nodeName, BuildState buildState, long timingInfo)
notifyBuildStageStatus in interface BuildNotifierjobName - the name of the jobnodeName - the node that has changedbuildState - the new statetimingInfo - timingInfopublic void notifyFinalBuildStatus(String jobName, BuildState buildState, long buildDuration, long blockedDuration)
notifyFinalBuildStatus in interface BuildNotifierjobName - the name of the jobbuildState - the new statebuildDuration - overall build timeblockedDuration - time build was blocked before runningpublic void sendNonStageError(String jobName, String nodeName)
BuildNotifiersendNonStageError in interface BuildNotifierjobName - the name of the jobnodeName - the name of the node that failedCopyright © 2016–2018. All rights reserved.