File¶
The file
health check can verify that either a file exists or doesn't exist.
Configuration Keys¶
The following configuration options apply to the file health check method:
Key | Type | Default |
---|---|---|
path |
String | undef |
exists |
Bool | True |
Path¶
The path to the file to test for.
Exists¶
If exists
is set to True
(the default), the file path must exist for the health check to return success. If set to False
, the file path must not exist for the health check to return success.
Examples¶
These are some configuration examples for the file health check:
To verify that a file exists: