A single parsed log line from the Fly Machines log API.
The raw Fly API payload is deeply nested; this struct flattens it into a simple shape that's easy to render and filter.
Summary
Functions
Builds a LogEntry from a decoded Fly log JSON object.
Types
Functions
Builds a LogEntry from a decoded Fly log JSON object.
Expected input shape:
%{
"timestamp" => "2024-01-01T00:00:00Z",
"fly" => %{
"app" => %{"instance" => "abc123", "name" => "myapp"},
"region" => "cdg"
},
"log" => %{"level" => "info"},
"message" => "Hello world"
}