DiskSpaceProbe class
Probe that reports free disk space for a target drive / mount point.
public sealed class DiskSpaceProbe : IProbe
Public Members
| name | description |
|---|---|
| DiskSpaceProbe(…) | Creates a new DiskSpaceProbe. |
| Logger { get; set; } | |
| Name { get; } | Probe name. |
| Tags { get; } | Probe tags used for filtering. |
| CheckAsync(…) | Executes the disk space check. |
Remarks
By default it inspects the drive containing the current process executable (AppContext.BaseDirectory). Status mapping (unless overridden): Healthy: free percent greater-or-equal to warn threshold (default 10%) Degraded: free percent between critical and warn thresholds (default 5% - 10%) Unhealthy: free percent below critical threshold (default under 5%) On error (e.g., drive missing) the probe returns Unhealthy with the exception message.
See Also
- interface IProbe
- namespace Kestrun.Health