[SDK reference](../../index.md) / [Models](../index.md) / [Observability](index.md)

# AlertRule

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Observability`  

A tenant metric alert rule evaluated in-cell by vmalert / ObservabilityReconciler (ADR-0802, ADR-0803, W152).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Observability.AlertRule_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `Comparison` | `Models.Observability.AlertComparison?` | `comparison` | Comparison operator against the threshold: the rule's own (GREATER_THAN when a rule omits it), and on an incident the one the rule had when it fired. One text on every use, so the generated SDK names the type the same way each run. |
| `CooldownSeconds` | `int?` | `cooldownSeconds` | Minimum seconds between consecutive firing notifications for this rule (0..86400, default 0; W152). |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Enabled` | `bool?` | `enabled` | Whether evaluation is enabled (default true). |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `FiringState` | `Models.Observability.AlertFiringState?` | `firingState` | Current firing evaluation state (OK, PENDING, FIRING). |
| `ForDurationSeconds` | `int?` | `forDurationSeconds` | Sustained evaluation duration in seconds before transitioning from PENDING to FIRING (default 60). |
| `Labels` | `Models.Observability.AlertRule_labels?` | `labels` | At most 64. |
| `LastEvaluatedTime` | `DateTimeOffset?` | `lastEvaluatedTime` | Most recent evaluation timestamp. |
| `LastFiredTime` | `DateTimeOffset?` | `lastFiredTime` | Most recent firing transition timestamp. |
| `LastNotifiedTime` | `DateTimeOffset?` | `lastNotifiedTime` | Most recent firing notification dispatch timestamp (W152). |
| `LastObservedValue` | `double?` | `lastObservedValue` | Most recent observed metric value. |
| `LastTestResults` | `List<Models.Observability.AlertChannelDeliveryResult>?` | `lastTestResults` | Per-channel outcomes of the most recent test notification (W152). |
| `LastTestTime` | `DateTimeOffset?` | `lastTestTime` | Most recent test notification completion timestamp (W152). |
| `Metric` | `string?` | `metric` | Metric name, PromQL / MetricsQL selector, web-app preset (webapp:requests\|error_rate\|latency_p95\|cpu\|memory), or spend source (spend:monthly_eur\|spend:monthly_micros) scoped to the tenant project. |
| `MuteReason` | `string?` | `muteReason` | Why the rule was muted. |
| `MutedBy` | `string?` | `mutedBy` | Who muted the rule. |
| `MutedUntil` | `DateTimeOffset?` | `mutedUntil` | While in the future, firing and resolved notifications of this rule are muted; evaluation and the incident history go on (IP-12). |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `NotificationChannels` | `List<string>?` | `notificationChannels` | Notification channel targets (email, webhookEndpoints/{id}, ntfy+, slack+, teams+, discord+, https://, sms:, whatsapp:; emails never carry approve links per ADR-0906). |
| `NotifyOnResolve` | `bool?` | `notifyOnResolve` | Whether to notify configured channels when a firing alert resolves back to OK (default true; W152). |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `Severity` | `Models.Observability.AlertSeverity?` | `severity` | Alert severity (INFO, WARNING, CRITICAL; default WARNING). |
| `Simulated` | `bool?` | `simulated` | True when evaluated against a simulated in-memory telemetry driver. |
| `State` | `Models.Observability.AlertRuleState?` | `state` | Current lifecycle state. |
| `SuspendReason` | `string?` | `suspendReason` | Reason the alert rule is paused (for example spend-cap or user). |
| `Threshold` | `double?` | `threshold` | Numeric threshold triggering the alert. |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
