Struct HealthThresholds
Thresholds for determining health status based on utilization.
public readonly struct HealthThresholds : IEquatable<HealthThresholds>
- Implements
- Inherited Members
Constructors
HealthThresholds(double, double)
Thresholds for determining health status based on utilization.
public HealthThresholds(double DegradedThreshold, double UnhealthyThreshold)
Parameters
DegradedThresholddoubleUtilization (0.0–1.0) above which status is Degraded.
UnhealthyThresholddoubleUtilization (0.0–1.0) above which status is Unhealthy.
Properties
Critical
Stricter thresholds for critical resources: 60% degraded, 80% unhealthy.
public static HealthThresholds Critical { get; }
Property Value
Default
Default thresholds: 80% degraded, 95% unhealthy.
public static HealthThresholds Default { get; }
Property Value
DegradedThreshold
Utilization (0.0–1.0) above which status is Degraded.
public double DegradedThreshold { get; init; }
Property Value
UnhealthyThreshold
Utilization (0.0–1.0) above which status is Unhealthy.
public double UnhealthyThreshold { get; init; }
Property Value
Methods
Deconstruct(out double, out double)
public void Deconstruct(out double DegradedThreshold, out double UnhealthyThreshold)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(HealthThresholds)
public bool Equals(HealthThresholds other)
Parameters
otherHealthThresholds
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(HealthThresholds, HealthThresholds)
public static bool operator ==(HealthThresholds left, HealthThresholds right)
Parameters
leftHealthThresholdsrightHealthThresholds
Returns
operator !=(HealthThresholds, HealthThresholds)
public static bool operator !=(HealthThresholds left, HealthThresholds right)
Parameters
leftHealthThresholdsrightHealthThresholds