Package io.micronaut.health
Class HeartbeatEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.discovery.event.AbstractServiceInstanceEvent
io.micronaut.health.HeartbeatEvent
- All Implemented Interfaces:
- Serializable
A heartbeat event is an event fired periodically and configured by 
HeartbeatConfiguration.- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThis method will return theHealthStatusif the server is configured to calculate the status.Methods inherited from class io.micronaut.discovery.event.AbstractServiceInstanceEventgetSourceMethods inherited from class java.util.EventObjecttoString
- 
Constructor Details- 
HeartbeatEvent- Parameters:
- source- The service instance
- status- The status of health indicator
 
 
- 
- 
Method Details- 
getStatusThis method will return theHealthStatusif the server is configured to calculate the status.- Returns:
- The current health status
 
 
-