DatabaseHealthIndicator class
A HealthIndicator that reports database connectivity by running a
trivial query. Register it as a provider (@Component) and it is picked
up by Diana's /actuator/health endpoint like any other indicator.
@Component()
class DbHealth extends DatabaseHealthIndicator {
DbHealth(super.db);
}
Constructors
Properties
Methods
-
health(
) → Future< HealthStatus> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited