lib/rulestead/runtime/diagnostics.ex
defmodule Rulestead.Runtime.Diagnostics do
@moduledoc false
alias Rulestead.Runtime.Cache
alias Rulestead.Runtime.Health
@spec current(keyword()) :: map()
def current(opts \\ []) do
%{
node: node(),
environments: Cache.diagnostics(),
infrastructure_health: Health.current(opts)
}
end
end