Documentation
¶
Overview ¶
Package notify 提供无人值守告警通道。
合宪定位(architecture.md §2.3):纯观察层动作——告警永不介入控制流 (不重试、不改派、不停机),只是把 TUI 内已有的事件"喊"到屏幕之外。 Send 异步执行、永不阻塞 Host、失败只记 slog。
Index ¶
Constants ¶
View Source
const ( KindRunEnd = "run_end" KindBudget = "budget" KindAdvanceGate = "advance_gate" KindStopGuard = "stop_guard" KindPlanStart = "plan_start" KindDeadlock = "deadlock" KindWorkerFailure = "worker_failure" )
Variables ¶
This section is empty.
Functions ¶
func IsKnownKind ¶ added in v0.7.0
Types ¶
type Notification ¶
type Notification struct {
Kind string `json:"kind"` // Kinds 返回的稳定事件名
Level string `json:"level"` // info / warn / error
Title string `json:"title"`
Body string `json:"body"`
}
Notification 一条告警的全部事实。
Click to show internal directories.
Click to hide internal directories.