Package jenkins.metrics.impl
Class VMMetricProviderImpl
java.lang.Object
jenkins.metrics.api.MetricProvider
jenkins.metrics.impl.VMMetricProviderImpl
- All Implemented Interfaces:
ExtensionPoint
- Author:
- Stephen Connolly
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.codahale.metrics.MetricSet
Returns the set of metrics to register.com.codahale.metrics.Gauge<Double>
Returns a gauge that reports the current system CPU load ornull
if that metric is unavailable.com.codahale.metrics.Gauge<Double>
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
-
Constructor Details
-
VMMetricProviderImpl
public VMMetricProviderImpl()
-
-
Method Details
-
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
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.
-