Table of Contents

Struct HealthThresholds

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

DegradedThreshold double

Utilization (0.0–1.0) above which status is Degraded.

UnhealthyThreshold double

Utilization (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

HealthThresholds

Default

Default thresholds: 80% degraded, 95% unhealthy.

public static HealthThresholds Default { get; }

Property Value

HealthThresholds

DegradedThreshold

Utilization (0.0–1.0) above which status is Degraded.

public double DegradedThreshold { get; init; }

Property Value

double

UnhealthyThreshold

Utilization (0.0–1.0) above which status is Unhealthy.

public double UnhealthyThreshold { get; init; }

Property Value

double

Methods

Deconstruct(out double, out double)

public void Deconstruct(out double DegradedThreshold, out double UnhealthyThreshold)

Parameters

DegradedThreshold double
UnhealthyThreshold double

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(HealthThresholds)

public bool Equals(HealthThresholds other)

Parameters

other HealthThresholds

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(HealthThresholds, HealthThresholds)

public static bool operator ==(HealthThresholds left, HealthThresholds right)

Parameters

left HealthThresholds
right HealthThresholds

Returns

bool

operator !=(HealthThresholds, HealthThresholds)

public static bool operator !=(HealthThresholds left, HealthThresholds right)

Parameters

left HealthThresholds
right HealthThresholds

Returns

bool