Class DiskSpaceIndicator
- java.lang.Object
-
- io.micronaut.management.health.indicator.AbstractHealthIndicator<java.util.Map<java.lang.String,java.lang.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<java.util.Map<java.lang.String,java.lang.Object>>
A
HealthIndicatorused to display information about the disk space of the server. ReturnsHealthStatus.DOWNif the free space is less than the configured threshold.- Since:
- 1.0
- See Also:
DiskSpaceIndicatorConfiguration.threshold
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringNAME-
Fields inherited from class io.micronaut.management.health.indicator.AbstractHealthIndicator
executorService, healthStatus
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.Object>getHealthInformation()Provides information (typically a Map) to be returned.java.lang.StringgetName()Used to populate theHealthResult.-
Methods inherited from class io.micronaut.management.health.indicator.AbstractHealthIndicator
getHealthResult, getResult, setExecutorService
-
-
-
-
Field Detail
-
NAME
protected static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:AbstractHealthIndicatorUsed to populate theHealthResult. Provides a key to go along with the health information.- Specified by:
getNamein classAbstractHealthIndicator<java.util.Map<java.lang.String,java.lang.Object>>- Returns:
- The name of the indicator
-
getHealthInformation
protected java.util.Map<java.lang.String,java.lang.Object> 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<java.util.Map<java.lang.String,java.lang.Object>>- Returns:
- Any details to be included in the response.
-
-