ExCEP.Common.AlarmEvent (ex_cep v0.1.1)

Copy Markdown

Standard Alarm Event codes defined in CSG CEP TS2.2:

  • Table 46: Device resource alarms (1001..1005)
  • Table 47: Device fault alarms (2001..2003, 3004)
  • Table 65: Container alarms (4001..4007)
  • Table 91: Application alarms (5001..5005)

Summary

Types

severity()

@type severity() :: :normal | :critical

t()

@type t() :: atom() | {:custom, String.t()}

Functions

all()

@spec all() :: map()

decode(code)

@spec decode(String.t() | integer()) ::
  {:ok,
   %{
     code: String.t(),
     event: atom(),
     severity: severity(),
     description: String.t()
   }}
  | {:error, :unknown_alarm_code}

encode(atom)

@spec encode(t() | integer() | String.t()) :: String.t()