Class DefaultHealthAggregator

java.lang.Object
io.micronaut.management.health.aggregator.DefaultHealthAggregator
All Implemented Interfaces:
HealthAggregator<HealthResult>

@Singleton @Requires(beans=HealthEndpoint.class) public class DefaultHealthAggregator extends Object implements HealthAggregator<HealthResult>

Default implementation of HealthAggregator that creates a {status: , description: (optional) , details: } response. The top level object represents the most severe status found in the provided health results, or HealthStatus.UNKNOWN if none found. All registered indicators have their own {status: , description: (optional , details: } object, keyed by the name of the HealthResult defined inside of the details of the top level object.

Example: [status: "UP, details: [diskSpace: [status: UP, details: [:]], cpuUsage: ...]]

Since:
1.0
Author:
James Kleeh, Graeme Rocher