@page @model Status.Pages.Admin.AlertRulesModel @{ ViewData["Title"] = "Alert Rules"; ViewData["Page"] = "admin-alerts"; } @if (!string.IsNullOrEmpty(Model.Message)) {
| Monitor | Condition | Threshold | Webhook | Cooldown | Last Fired | Enabled | Actions |
|---|---|---|---|---|---|---|---|
| @(r.Monitor?.Name ?? "All Monitors") | @r.Condition | @(r.ThresholdValue?.ToString() ?? "-") | @(string.IsNullOrEmpty(r.WebhookUrl) ? "-" : "✓ configured") | @r.CooldownMinutes min | @(r.LastFiredAt?.ToString("yyyy-MM-dd HH:mm") ?? "never") | ||
| No alert rules configured. | |||||||