{{ template "base.html" .Base }}

Machine {{ .Machine.ID }}

{{ $sessions := .Sessions }}
Machine ID {{ .Machine.ID }}
Created {{ .Machine.Created }}
Active Backoffs {{ len .Machine.ActiveBackoffs }}
Active Work {{ len .Machine.Work }}

Tags

{{ range $name, $tag := .Machine.Tags }} {{ range $tag.Fields }} {{ end }}
{{ template "fragment_tag.html" $tag }}
{{ .Type.NativeName }}: {{ .HumanValue }}
{{ else }} No tags. {{ end }}

Work

{{ range $name, $work := .Machine.Work }} {{ $sessionOrErr := index $sessions $name }} {{ if ne $sessionOrErr.Error "" }} {{ else }} {{ $session := $sessionOrErr.Session }} {{ end }}
{{ $work.Process }}
Process: {{ $work.Process }}
Could not retrieve session information: {{ $sessionOrErr.Error }}
Session ID: {{ $session.SessionID }}
Component: {{ $session.SessionComponentName }}
Runtime: {{ $session.SessionRuntimeInfo }}
Created At: {{ $session.SessionCreatedAt }}
Liveness: Interval {{ $session.SessionIntervalSeconds }}s, deadline {{ $session.SessionDeadline }}
{{ else }} No active work. {{ end }}

Backoffs

Active

{{ range $name, $backoff := .Machine.ActiveBackoffs }}
{{ $backoff.Process }}
Process: {{ $backoff.Process }}
Until: {{ $backoff.Until }}
Cause: {{ $backoff.Cause }}
{{ else }} No active backoffs. {{ end }}

Expired

{{ range $name, $backoff := .Machine.ExpiredBackoffs }}
{{ $backoff.Process }}
Process: {{ $backoff.Process }}
Until: {{ $backoff.Until }}
Cause: {{ $backoff.Cause }}
{{ else }} No expired backoffs. {{ end }}

Work History

{{ if ne .HistoryError "" }} Unavailable: {{ .HistoryError }} {{ else }} Note: reverse chronological order. {{ range .History }} {{ if eq .Event "Failed" }} {{ else }} {{ end }} {{ end }}
Time Process Event
{{ .Timestamp }} {{ .Process }}{{ .Event }}: {{ .FailedCause.String }}{{ .Event }}
{{ end }}