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 Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method will return theHealthStatus
if the server is configured to calculate the status.Methods inherited from class io.micronaut.discovery.event.AbstractServiceInstanceEvent
getSource
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
HeartbeatEvent
- Parameters:
source
- The service instancestatus
- The status of health indicator
-
-
Method Details
-
getStatus
This method will return theHealthStatus
if the server is configured to calculate the status.- Returns:
- The current health status
-