SDK reference / Models / Observability

AlertRuleMergePatchUpdate

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
AnnotationsUntypedNode?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.
CooldownSecondsModels.Observability.AlertRuleMergePatchUpdate.AlertRuleMergePatchUpdate_cooldownSeconds?cooldownSecondsMinimum seconds between consecutive firing notifications for this rule (0..86400, default 0; W152).
DisplayNameModels.Observability.AlertRuleMergePatchUpdate.AlertRuleMergePatchUpdate_displayName?displayNameUp to 63 characters.
EnabledModels.Observability.AlertRuleMergePatchUpdate.AlertRuleMergePatchUpdate_enabled?enabledWhether evaluation is enabled (default true).
ForDurationSecondsModels.Observability.AlertRuleMergePatchUpdate.AlertRuleMergePatchUpdate_forDurationSeconds?forDurationSecondsSustained evaluation duration in seconds before transitioning from PENDING to FIRING (default 60).
LabelsUntypedNode?labelsAt most 64.
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.
NotificationChannelsModels.Observability.AlertRuleMergePatchUpdate.AlertRuleMergePatchUpdate_notificationChannels?notificationChannelsNotification channel targets (email, webhookEndpoints/{id}, ntfy+, slack+, teams+, discord+, https://, sms:, whatsapp:; emails never carry approve links per ADR-0906).
NotifyOnResolveModels.Observability.AlertRuleMergePatchUpdate.AlertRuleMergePatchUpdate_notifyOnResolve?notifyOnResolveWhether to notify configured channels when a firing alert resolves back to OK (default true; W152).
SeverityModels.Observability.AlertSeverity?severityAlert severity (INFO, WARNING, CRITICAL; default WARNING).
Thresholddouble?thresholdNumeric threshold triggering the alert.