solana-resilience-kit - v1.0.0
Demo
GitHub
Preparing search index...
src
HealthMonitor
Class HealthMonitor
Index
Constructors
constructor
Methods
is
Healthy
rank
By
Freshness
record
Failure
record
Success
snapshot
Constructors
constructor
new
HealthMonitor
(
config
:
HealthMonitorConfig
)
:
HealthMonitor
Parameters
config
:
HealthMonitorConfig
Returns
HealthMonitor
Methods
is
Healthy
isHealthy
(
endpoint
:
string
)
:
boolean
Parameters
endpoint
:
string
Returns
boolean
rank
By
Freshness
rankByFreshness
()
:
string
[]
Healthy endpoints ordered best-first (freshest slot, then lowest latency).
Returns
string
[]
record
Failure
recordFailure
(
endpoint
:
string
,
error
:
unknown
)
:
void
Parameters
endpoint
:
string
error
:
unknown
Returns
void
record
Success
recordSuccess
(
endpoint
:
string
,
latencyMs
:
number
,
slot
?:
bigint
)
:
void
Parameters
endpoint
:
string
latencyMs
:
number
Optional
slot
:
bigint
Returns
void
snapshot
snapshot
()
:
EndpointHealth
[]
Returns
EndpointHealth
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
is
Healthy
rank
By
Freshness
record
Failure
record
Success
snapshot
Demo
GitHub
solana-resilience-kit - v1.0.0
Loading...
Healthy endpoints ordered best-first (freshest slot, then lowest latency).