Vibe.SystemAlarms.Alert (vibe v0.2.1)

Copy Markdown View Source

Runtime alert surfaced by Vibe system services.

Alerts describe operational state such as BEAM memory pressure or low disk space. They carry semantic runtime state only.

Summary

Types

severity()

@type severity() :: :info | :warning | :error

t()

@type t() :: %Vibe.SystemAlarms.Alert{
  at: DateTime.t(),
  context: map(),
  detail: String.t() | nil,
  id: String.t(),
  severity: severity(),
  source: atom(),
  type: atom()
}

Functions

from_alarm(action, alarm_id, description, opts \\ [])

@spec from_alarm(:set | :clear, term(), term(), keyword()) :: t()