Package jenkins.metrics.impl
Class VMMetricProviderImpl
- java.lang.Object
-
- jenkins.metrics.api.MetricProvider
-
- jenkins.metrics.impl.VMMetricProviderImpl
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class VMMetricProviderImpl extends MetricProvider
- Author:
- Stephen Connolly
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description VMMetricProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.MetricSet
getMetricSet()
Returns the set of metrics to register.com.codahale.metrics.Gauge<Double>
getSystemCpuLoad()
Returns a gauge that reports the current system CPU load ornull
if that metric is unavailable.com.codahale.metrics.Gauge<Double>
getVmCpuLoad()
Returns a gauge that reports the current JVM CPU load ornull
if that metric is unavailable.-
Methods inherited from class jenkins.metrics.api.MetricProvider
metric, metrics, metrics
-
-
-
-
Method Detail
-
getSystemCpuLoad
@CheckForNull public com.codahale.metrics.Gauge<Double> getSystemCpuLoad()
Returns a gauge that reports the current system CPU load ornull
if that metric is unavailable.- Returns:
- a gauge that reports the current system CPU load or
null
if that metric is unavailable.
-
getVmCpuLoad
@CheckForNull public com.codahale.metrics.Gauge<Double> getVmCpuLoad()
Returns a gauge that reports the current JVM CPU load ornull
if that metric is unavailable.- Returns:
- a gauge that reports the current JVM CPU load or
null
if that metric is unavailable.
-
getMetricSet
@NonNull public com.codahale.metrics.MetricSet getMetricSet()
Description copied from class:MetricProvider
Returns the set of metrics to register.- Specified by:
getMetricSet
in classMetricProvider
- Returns:
- the set of metrics to register.
-
-