Class InfluxDbNotifier
java.lang.Object
org.jenkinsci.plugins.githubautostatus.notifiers.BuildNotifier
org.jenkinsci.plugins.githubautostatus.notifiers.InfluxDbNotifier
- All Implemented Interfaces:
ExtensionPoint
Writes job and stage measurements to an InfluxDB REST API.
- Author:
- Jeff Pearce (GitHub jeffpearce)
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected InfluxDbNotifierConfigprotected Stringprotected Stringprotected StringFields inherited from class org.jenkinsci.plugins.githubautostatus.notifiers.BuildNotifier
DEFAULT_LONG, DEFAULT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether this notifier is enabled.voidnotifyBuildStageStatus(String jobName, BuildStage stageItem) Sends a state change to InfluxDB.voidnotifyFinalBuildStatus(BuildStage.State buildState, Map<String, Object> parameters) Sends the final build status to InfluxDB.booleanGet whether the notifier wants to know about errors that happen outside of a stage.Methods inherited from class org.jenkinsci.plugins.githubautostatus.notifiers.BuildNotifier
all, getLong
-
Field Details
-
repoOwner
-
repoName
-
branchName
-
influxDbUrlString
-
config
-
authorization
-
-
Constructor Details
-
InfluxDbNotifier
Constructor- Parameters:
config- InfluxDB configuration info
-
-
Method Details
-
isEnabled
public boolean isEnabled()Determines whether this notifier is enabled.- Specified by:
isEnabledin classBuildNotifier- Returns:
- true if enabled; false otherwise
-
wantsOutOfStageErrors
public boolean wantsOutOfStageErrors()Get whether the notifier wants to know about errors that happen outside of a stage.- Overrides:
wantsOutOfStageErrorsin classBuildNotifier- Returns:
- true; since this notifier reports these errors.
-
notifyBuildStageStatus
Sends a state change to InfluxDB.- Specified by:
notifyBuildStageStatusin classBuildNotifier- Parameters:
jobName- the name of the jobstageItem- stage item describing the new state
-
notifyFinalBuildStatus
Sends the final build status to InfluxDB.- Specified by:
notifyFinalBuildStatusin classBuildNotifier- Parameters:
buildState- the new stateparameters- build parameters
-