Package io.dropwizard.metrics5.jvm
Class JvmAttributeGaugeSet
- java.lang.Object
-
- io.dropwizard.metrics5.jvm.JvmAttributeGaugeSet
-
- All Implemented Interfaces:
io.dropwizard.metrics5.Metric
,io.dropwizard.metrics5.MetricSet
public class JvmAttributeGaugeSet extends Object implements io.dropwizard.metrics5.MetricSet
A set of gauges for the JVM name, vendor, and uptime.
-
-
Constructor Summary
Constructors Constructor Description JvmAttributeGaugeSet()
Creates a new set of gauges.JvmAttributeGaugeSet(RuntimeMXBean runtime)
Creates a new set of gauges with the givenRuntimeMXBean
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Metric>
getMetrics()
-
-
-
Constructor Detail
-
JvmAttributeGaugeSet
public JvmAttributeGaugeSet()
Creates a new set of gauges.
-
JvmAttributeGaugeSet
public JvmAttributeGaugeSet(RuntimeMXBean runtime)
Creates a new set of gauges with the givenRuntimeMXBean
.- Parameters:
runtime
- JVM management interface with access to system properties
-
-
Method Detail
-
getMetrics
public Map<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Metric> getMetrics()
- Specified by:
getMetrics
in interfaceio.dropwizard.metrics5.MetricSet
-
-