Class ResourceAlertGenerator
Generates alerts for resources that cross health thresholds.
public sealed class ResourceAlertGenerator
- Inheritance
-
ResourceAlertGenerator
- Inherited Members
Remarks
The generator uses architectural knowledge from FindRootCause(string, double) to trace back from symptomatic nodes to underlying causes. This helps operators understand the true source of problems rather than just symptoms.
Example scenario:
- Symptom: TransactionPool at 95% → commits are backing up
- Cause: WALRingBuffer at 98% → WAL writes are slow
- Root cause: WALSegments disk I/O saturated → physical disk limitation
Constructors
ResourceAlertGenerator(ObservabilityBridgeOptions)
Creates a new ResourceAlertGenerator.
public ResourceAlertGenerator(ObservabilityBridgeOptions options)
Parameters
optionsObservabilityBridgeOptionsConfiguration options containing thresholds.
Methods
GenerateAlert(ResourceSnapshot, string)
Generate an alert for a specific symptomatic resource.
public ResourceAlert GenerateAlert(ResourceSnapshot snapshot, string symptomPath)
Parameters
snapshotResourceSnapshotCurrent resource snapshot.
symptomPathstringPath of the resource showing symptoms.
Returns
- ResourceAlert
Alert with root cause analysis, or null if the resource is healthy.
GenerateAlerts(ResourceSnapshot)
Generate alerts for all resources above threshold.
public IEnumerable<ResourceAlert> GenerateAlerts(ResourceSnapshot snapshot)
Parameters
snapshotResourceSnapshotCurrent resource snapshot.
Returns
- IEnumerable<ResourceAlert>
Alerts for all unhealthy or degraded resources.