Package io.vertigo.core.analytics.health
Class HealthCheck
- java.lang.Object
-
- io.vertigo.core.analytics.health.HealthCheck
-
public final class HealthCheck extends Object
Health check. example : dataStorePlugin.ping : Ping to a Database produces a specific health check with the actual measure of it {plugin/component}.{test} :- Author:
- mlaroche
-
-
Constructor Summary
Constructors Constructor Description HealthCheck(String name, String checker, String module, String feature, Instant checkInstant, HealthMeasure healthMeasure)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChecker()
Instant
getCheckInstant()
String
getFeature()
HealthMeasure
getMeasure()
String
getModule()
String
getName()
-
-
-
Constructor Detail
-
HealthCheck
public HealthCheck(String name, String checker, String module, String feature, Instant checkInstant, HealthMeasure healthMeasure)
Constructor.- Parameters:
name
- the health check namechecker
- who created the measuremodule
- the module (either technical or functional) the healthcheck is relative to (ex: commons, administration...)feature
- the feature (a semantic one) to link healthchecks that concern the same subject (ex: database, billing...)checkInstant
- when the check was performedhealthMeasure
- the measure
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the health check name
-
getChecker
public String getChecker()
- Returns:
- the checker
-
getModule
public String getModule()
-
getFeature
public String getFeature()
-
getCheckInstant
public Instant getCheckInstant()
- Returns:
- the instant when the check was performed
-
getMeasure
public HealthMeasure getMeasure()
- Returns:
- the measure
-
-