Class DiskSpaceIndicator
java.lang.Object
io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>
io.micronaut.management.health.indicator.diskspace.DiskSpaceIndicator
- All Implemented Interfaces:
io.micronaut.core.order.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
- See Also:
-
Field Summary
FieldsFields inherited from class 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 AbstractHealthIndicator
getHealthResult, getResult, setExecutorServiceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
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.
-