HealthCheckService class
The HealthCheckService is responsible for executing all registered health indicators and compiling their results into a comprehensive health report. It also handles error logging based on the specified style when any health check fails.
Constructors
-
HealthCheckService(List<
HealthIndicator> _indicators, ErrorLogStyle errorLogStyle) - Creates a HealthCheckService with the provided list of indicators and error logging style.
Properties
- errorLogStyle → ErrorLogStyle
-
Style of error logging for health check failures.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
RequestContext context) → Future< Map< String, dynamic> > - Performs health checks for all registered indicators and returns a comprehensive report. The report includes the overall status, individual indicator statuses, and any relevant details or errors
-
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