Class DatadogComputerPublisher
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
org.datadog.jenkins.plugins.datadog.publishers.DatadogComputerPublisher
- All Implemented Interfaces:
ExtensionPoint,Runnable
This class registers a
PeriodicWork with Jenkins to run periodically in order to enable
us to compute metrics related to nodes and executors.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, MIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoRun()longstatic voidpublishMetrics(DatadogClient client) Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
DatadogComputerPublisher
public DatadogComputerPublisher()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classPeriodicWork
-
doRun
- Specified by:
doRunin classSafeTimerTask- Throws:
Exception
-
publishMetrics
-