public class StatsdNotifier extends BuildNotifier
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
protected StatsdNotifierConfig |
config |
DEFAULT_LONG, DEFAULT_STRING| Constructor and Description |
|---|
StatsdNotifier(StatsdNotifierConfig config) |
StatsdNotifier(StatsdWrapper client,
StatsdNotifierConfig config) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBranchPath()
Returns the statsd including the global prefix up to the branch bucket
|
boolean |
isEnabled()
Determine whether notifier is enabled
|
void |
notifyBuildStageStatus(String jobName,
BuildStageModel stageItem)
Sends duration metric to statsd by doing a timer metric
|
void |
notifyFinalBuildStatus(BuildState buildState,
Map<String,Object> parameters)
Sends final build status metric by doing a timer metric for blocked and unblocked job time
|
String |
sanitizeAll(String key)
Applies all sanitizations to a key, folders are expanded into seperate statsd buckets.
|
void |
sendNonStageError(String jobName,
String nodeName)
Sends build status metric to statsd by doing an increment on the buildState categories
|
all, getLongprotected StatsdNotifierConfig config
public StatsdNotifier(StatsdWrapper client, StatsdNotifierConfig config)
public StatsdNotifier(StatsdNotifierConfig config)
public boolean isEnabled()
isEnabled in class BuildNotifierpublic String getBranchPath()
public void notifyBuildStageStatus(String jobName, BuildStageModel stageItem)
notifyBuildStageStatus in class BuildNotifierjobName - the name of the jobstageItem - stage item describing the new statepublic void notifyFinalBuildStatus(BuildState buildState, Map<String,Object> parameters)
notifyFinalBuildStatus in class BuildNotifierbuildState - the reported stateparameters - build parameterspublic void sendNonStageError(String jobName, String nodeName)
jobName - name of the jobnodeName - the stage of the status on which to report onpublic String sanitizeAll(String key)
key - key to sanitizeCopyright © 2016–2019. All rights reserved.