SDK reference / Models / Observability

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

NameTypeJSON nameDescription
AnnotationsModels.Observability.AlertRule_annotations?annotationsAt most 256 KiB in all; never policy input.
ComparisonModels.Observability.AlertComparison?comparisonComparison 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.
CooldownSecondsint?cooldownSecondsMinimum seconds between consecutive firing notifications for this rule (0..86400, default 0; W152).
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
Enabledbool?enabledWhether evaluation is enabled (default true).
Etagstring?etag"{generation}"; send it back in If-Match.
FiringStateModels.Observability.AlertFiringState?firingStateCurrent firing evaluation state (OK, PENDING, FIRING).
ForDurationSecondsint?forDurationSecondsSustained evaluation duration in seconds before transitioning from PENDING to FIRING (default 60).
LabelsModels.Observability.AlertRule_labels?labelsAt most 64.
LastEvaluatedTimeDateTimeOffset?lastEvaluatedTimeMost recent evaluation timestamp.
LastFiredTimeDateTimeOffset?lastFiredTimeMost recent firing transition timestamp.
LastNotifiedTimeDateTimeOffset?lastNotifiedTimeMost recent firing notification dispatch timestamp (W152).
LastObservedValuedouble?lastObservedValueMost recent observed metric value.
LastTestResultsList<Models.Observability.AlertChannelDeliveryResult>?lastTestResultsPer-channel outcomes of the most recent test notification (W152).
LastTestTimeDateTimeOffset?lastTestTimeMost recent test notification completion timestamp (W152).
Metricstring?metricMetric 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.
MuteReasonstring?muteReasonWhy the rule was muted.
MutedBystring?mutedByWho muted the rule.
MutedUntilDateTimeOffset?mutedUntilWhile in the future, firing and resolved notifications of this rule are muted; evaluation and the incident history go on (IP-12).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
NotificationChannelsList<string>?notificationChannelsNotification channel targets (email, webhookEndpoints/{id}, ntfy+, slack+, teams+, discord+, https://, sms:, whatsapp:; emails never carry approve links per ADR-0906).
NotifyOnResolvebool?notifyOnResolveWhether to notify configured channels when a firing alert resolves back to OK (default true; W152).
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
SeverityModels.Observability.AlertSeverity?severityAlert severity (INFO, WARNING, CRITICAL; default WARNING).
Simulatedbool?simulatedTrue when evaluated against a simulated in-memory telemetry driver.
StateModels.Observability.AlertRuleState?stateCurrent lifecycle state.
SuspendReasonstring?suspendReasonReason the alert rule is paused (for example spend-cap or user).
Thresholddouble?thresholdNumeric threshold triggering the alert.
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property