OptionalcacheThe cache duration for the check result in seconds
The name of the disk space check
The disk path to check for space usage
Specify the duration for which the check should be cached for
The cache duration as a string (e.g., '5s', '1m') or number in seconds
Define the percentage threshold after which a warning should be created
The percentage threshold for warnings
Define the percentage threshold after which an error should be created
The percentage threshold for errors
Define a custom callback to compute the disk space. Defaults to using "check-disk-space" package
Function that returns disk space information
Executes the disk space usage check
Checks for the disk space and report warning or error after a certain threshold is exceeded.
Example