Class DiskSpaceIndicator
java.lang.Object
io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>
io.micronaut.management.health.indicator.diskspace.DiskSpaceIndicator
- All Implemented Interfaces:
Ordered
,HealthIndicator
@Singleton
@Requires(property="endpoints.health.disk-space.enabled",notEquals="false") @Requires(beans=HealthEndpoint.class)
public class DiskSpaceIndicator
extends AbstractHealthIndicator<Map<String,Object>>
A HealthIndicator
used to display information about the disk
space of the server. Returns HealthStatus.DOWN
if the free space is less than the configured threshold.
- Since:
- 1.0
- Author:
- James Kleeh
- See Also:
-
DiskSpaceIndicatorConfiguration.threshold
-
Field Summary
Fields inherited from class io.micronaut.management.health.indicator.AbstractHealthIndicator
executorService, healthStatus
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionProvides information (typically a Map) to be returned.getName()
Used to populate theHealthResult
.Methods inherited from class io.micronaut.management.health.indicator.AbstractHealthIndicator
getHealthResult, getResult, setExecutorService
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getName
Description copied from class:AbstractHealthIndicator
Used to populate theHealthResult
. Provides a key to go along with the health information.- Specified by:
getName
in classAbstractHealthIndicator<Map<String,
Object>> - Returns:
- The name of the indicator
-
getHealthInformation
Description copied from class:AbstractHealthIndicator
Provides information (typically a Map) to be returned. Set theAbstractHealthIndicator.healthStatus
field during execution, otherwiseHealthStatus.UNKNOWN
will be used.- Specified by:
getHealthInformation
in classAbstractHealthIndicator<Map<String,
Object>> - Returns:
- Any details to be included in the response.
-