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
@Extension public class DatadogComputerPublisher extends PeriodicWork
This class registers aPeriodicWork
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.ExceptionRunnable
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, MIN
-
-
Constructor Summary
Constructors Constructor Description DatadogComputerPublisher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRun()
long
getRecurrencePeriod()
static void
publishMetrics(DatadogClient client)
-
Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, init
-
Methods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, run
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
getRecurrencePeriod
public long getRecurrencePeriod()
- Specified by:
getRecurrencePeriod
in classPeriodicWork
-
doRun
protected void doRun() throws Exception
- Specified by:
doRun
in classSafeTimerTask
- Throws:
Exception
-
publishMetrics
public static void publishMetrics(DatadogClient client)
-
-