BurnRateWindow
public readonly record struct BurnRateWindow(string Name, TimeSpan LongWindow, TimeSpan ShortWindow, decimal BurnRateThreshold, ErrorBudgetAction SeverityAction)Represents a Google SRE multi-window burn-rate alerting rule paired with an `SloDescriptor`.
Miembros (6)
- constructorBurnRateWindow
public BurnRateWindow(string Name, TimeSpan LongWindow, TimeSpan ShortWindow, decimal BurnRateThreshold, ErrorBudgetAction SeverityAction)Initializes a new instance of BurnRateWindow.
- Name: string
- Identifier of the burn window (e.g., `"fast-1h-5m"`).
- LongWindow: TimeSpan
- Primary observation window (e.g., 1 hour or 6 hours).
- ShortWindow: TimeSpan
- Confirmation short window (typically 1/12th of `LongWindow`).
- BurnRateThreshold: decimal
- Dimensionless burn-rate multiplier (e.g., `14.4m`, `6.0m`, `1.0m`).
- SeverityAction: ErrorBudgetAction
- Action triggered when both windows exceed `BurnRateThreshold`.
- propertyBurnRateThreshold
public decimal BurnRateThreshold { get; init; }Dimensionless burn-rate multiplier (e.g., `14.4m`, `6.0m`, `1.0m`).
- propertyLongWindow
public TimeSpan LongWindow { get; init; }Primary observation window (e.g., 1 hour or 6 hours).
- propertyName
public string Name { get; init; }Identifier of the burn window (e.g., `"fast-1h-5m"`).
- propertySeverityAction
public ErrorBudgetAction SeverityAction { get; init; }Action triggered when both windows exceed `BurnRateThreshold`.
- propertyShortWindow
public TimeSpan ShortWindow { get; init; }Confirmation short window (typically 1/12th of `LongWindow`).