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
FieldsFields inherited from class io.micronaut.management.health.indicator.AbstractHealthIndicator
executorService, healthStatusFields 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:AbstractHealthIndicatorUsed to populate theHealthResult. Provides a key to go along with the health information.- Specified by:
getNamein classAbstractHealthIndicator<Map<String,Object>> - Returns:
- The name of the indicator
-
getHealthInformation
Description copied from class:AbstractHealthIndicatorProvides information (typically a Map) to be returned. Set theAbstractHealthIndicator.healthStatusfield during execution, otherwiseHealthStatus.UNKNOWNwill be used.- Specified by:
getHealthInformationin classAbstractHealthIndicator<Map<String,Object>> - Returns:
- Any details to be included in the response.
-