@Extension public static class MetricsRootAction.Sampler extends PeriodicWork
Modifier and Type | Class and Description |
---|---|
static class |
MetricsRootAction.Sampler.Sample
A sample.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
DAY, HOUR, logger, MIN
Constructor and Description |
---|
Sampler()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doRun() |
static void |
dynamicInstallHack() |
long |
getRecurrencePeriod() |
static boolean |
isEnabled() |
Map<Date,Object> |
sample() |
Map<Date,Object> |
sample(String prefix,
String postfix) |
all, getInitialDelay, init
run
cancel, scheduledExecutionTime
public static boolean isEnabled()
public long getRecurrencePeriod()
getRecurrencePeriod
in class PeriodicWork
protected void doRun() throws Exception
doRun
in class SafeTimerTask
Exception
@Initializer(after=EXTENSIONS_AUGMENTED) @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public static void dynamicInstallHack()
Copyright © 2016–2019. All rights reserved.