Class EurekaHealthCheckHandler
Computes the Eureka InstanceStatus from all of the Steeltoe Health contributors registered for the application.
When this handler is added to the container it registers with the DiscoveryClient as a IHealthCheckHandler.
The DiscoveryClient will then call it each time it is computing the InstanceStatus of the application.
Inheritance
System.Object
EurekaHealthCheckHandler
Assembly: Steeltoe.Discovery.Eureka.dll
Syntax
public class EurekaHealthCheckHandler : object, IHealthCheckHandler
Constructors
|
Edit this page
View Source
EurekaHealthCheckHandler(IEnumerable<IHealthContributor>, ILogger<EurekaHealthCheckHandler>)
Declaration
public EurekaHealthCheckHandler(IEnumerable<IHealthContributor> contributors, ILogger<EurekaHealthCheckHandler> logger = null)
Parameters
|
Edit this page
View Source
EurekaHealthCheckHandler(ILogger)
Declaration
public EurekaHealthCheckHandler(ILogger logger = null)
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
Fields
|
Edit this page
View Source
_contributors
Declaration
protected IList<IHealthContributor> _contributors
Field Value
Type |
Description |
IList<IHealthContributor> |
|
Methods
|
Edit this page
View Source
AggregateStatus(List<HealthCheckResult>)
Declaration
protected virtual HealthStatus AggregateStatus(List<HealthCheckResult> results)
Parameters
Type |
Name |
Description |
List<HealthCheckResult> |
results |
|
Returns
Type |
Description |
HealthStatus |
|
|
Edit this page
View Source
DoHealthChecks(IList<IHealthContributor>)
Declaration
protected virtual List<HealthCheckResult> DoHealthChecks(IList<IHealthContributor> contributors)
Parameters
Type |
Name |
Description |
IList<IHealthContributor> |
contributors |
|
Returns
Type |
Description |
List<HealthCheckResult> |
|
|
Edit this page
View Source
GetStatus(InstanceStatus)
Declaration
public virtual InstanceStatus GetStatus(InstanceStatus currentStatus)
Parameters
Returns
|
Edit this page
View Source
MapToInstanceStatus(HealthStatus)
Declaration
protected virtual InstanceStatus MapToInstanceStatus(HealthStatus status)
Parameters
Type |
Name |
Description |
HealthStatus |
status |
|
Returns
Implements