RedisHealthIndicator class

Built-in health indicator that checks Redis connectivity.

This indicator sends a PING command to Redis and expects a PONG response to verify that Redis is reachable and responding.

Inheritance

Constructors

RedisHealthIndicator(Serverpod _pod)
Creates a Redis health indicator.
const

Properties

componentId String?
Unique identifier for the component instance.
no setterinherited
componentType String
Type of the component.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String
Human-readable name for this indicator.
no setteroverride
observedUnit String
Unit of the observed value, e.g., ms, percent, bytes.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
Maximum time to wait for this check before considering it failed.
no setteroverride

Methods

check() Future<HealthCheckResult>
Perform the health check and return the result.
override
fail({double? observedValue, String? output, DateTime? time}) HealthCheckResult
Creates a failing health check result for this indicator.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pass({double? observedValue, String? output, DateTime? time}) HealthCheckResult
Creates a passing health check result for this indicator.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited