Ops.Live

Observability

Live Ops dashboard channel. Join Monitor for a snapshot; receive Replaced / EventArrived downs. Mount via Ops.Plugin.

Types

Topic

type Topic = Monitor

Up

type Up = Refresh

Down

type Down
= Replaced Snapshot
| EventArrived Event

Reply

type alias Reply =
Snapshot

JobCount

type alias JobCount =
{ state : String
, count : Int
}

JobRow

type alias JobRow =
{ id : Int
, queue : String
, worker : String
, state : String
, attempt : Int
, maxAttempts : Int
, scheduledAt : Int
, errors : String
}

Event

type alias Event =
{ event : List String
, measurements : List (String, String)
, metadata : List (String, String)
, atMs : Int
}

Snapshot

type alias Snapshot =
{ node : String
, peers : List String
, jobCounts : List JobCount
, events : List Event
, recent : List JobRow
}

Values

channel

channel : Channel Topic Up Down Reply State Msg