Class HealthCheckGauge
- java.lang.Object
-
- fish.payara.microprofile.metrics.healthcheck.HealthCheckGauge
-
- All Implemented Interfaces:
HealthCheckStatsProvider,org.eclipse.microprofile.metrics.Gauge<Number>,org.eclipse.microprofile.metrics.Metric
public class HealthCheckGauge extends Object implements org.eclipse.microprofile.metrics.Gauge<Number>, HealthCheckStatsProvider
Implementation of a gauge based off an HealthCheck.
-
-
Constructor Summary
Constructors Constructor Description HealthCheckGauge(HealthCheckStatsProvider healthCheck, ServiceExpression expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getAttributes()Set<String>getSubAttributes()NumbergetValue()<T> TgetValue(Class<T> type, String attribute, String subAttribute)booleanisEnabled()
-
-
-
Constructor Detail
-
HealthCheckGauge
public HealthCheckGauge(HealthCheckStatsProvider healthCheck, ServiceExpression expression)
-
-
Method Detail
-
getValue
public Number getValue()
- Specified by:
getValuein interfaceorg.eclipse.microprofile.metrics.Gauge<Number>
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceHealthCheckStatsProvider
-
getValue
public <T> T getValue(Class<T> type, String attribute, String subAttribute)
- Specified by:
getValuein interfaceHealthCheckStatsProvider
-
getAttributes
public Set<String> getAttributes()
- Specified by:
getAttributesin interfaceHealthCheckStatsProvider
-
getSubAttributes
public Set<String> getSubAttributes()
- Specified by:
getSubAttributesin interfaceHealthCheckStatsProvider
-
-