DiskSpaceHealthIndicator class
A health indicator that checks if the disk usage of a specified path is below a certain threshold.
- Inheritance
-
- Object
- HealthIndicator
- DiskSpaceHealthIndicator
Constructors
- DiskSpaceHealthIndicator(String _name, {String path = '/', double thresholdPercent = 0.90})
- Creates a disk space indicator.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
no setteroverride
- path → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thresholdPercent → double
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pingCheck(
RequestContext _) → Future< HealthIndicatorCheck> -
Returns a map with the status of the specific component.
Throws an exception if the component is critically failing.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited