watchtower v0.1.0 Watchtower.Beacon.Condition View Source

When a beacon is asked to signal, this struct carries information regarding the current state of the beacon such as the last time it was called, the previous return state, and number of consecutive returns with that state.

Link to this section Summary

Types

t()

Tracks condition of the beacon

Link to this section Types

Specs

t() :: %Watchtower.Beacon.Condition{
  count: non_neg_integer(),
  curr_signal: DateTime.t(),
  meta: any(),
  module: atom(),
  prev_signal: DateTime.t(),
  sequence: non_neg_integer(),
  severity: Watchtower.Beacon.severity(),
  status: Watchtower.Beacon.status()
}

Tracks condition of the beacon