DiskSpaceProbe constructor
Creates a new DiskSpaceProbe.
public DiskSpaceProbe(string name, string[] tags, string? path = null, double criticalPercent = 5m,
double warnPercent = 10m, ILogger? logger = null)
| parameter | description |
| name | Probe name (e.g., “disk”). |
| tags | Probe tags (e.g., [“live”], [“ready”]). |
| path | Directory path whose containing drive should be measured. Defaults to AppContext.BaseDirectory. |
| criticalPercent | Below this free percentage the probe is Unhealthy. Default 5. |
| warnPercent | Below this free percentage (but above critical) the probe is Degraded. Default 10. |
| logger | Optional logger; if null a context logger is created. |
Exceptions
| exception | condition |
| ArgumentException | Thrown when thresholds are invalid. |
See Also