Top Level Namespace
Defined in:
Constant Summary
-
INSTANCES =
{} of String => Instance
-
SORT_PROCS =
{"health" => ->(alias : String, instance : Instance) do
-(instance[:monitor]?.try do |__arg4|
__arg4["uptime"].as_f
end || 0.0)
end, "location" => ->(alias : String, instance : Instance) do
instance[:region]? || "ZZ"
end, "name" => ->(name : String, instance : Instance) do
name
end, "signup" => ->(alias : String, instance : Instance) do
instance[:stats]?.try do |__arg5|
__arg5["openRegistrations"]?.try do |bool|
bool.as_bool ? 0 : 1
end
end || 2
end, "type" => ->(alias : String, instance : Instance) do
instance[:type]
end, "cors" => ->(alias : String, instance : Instance) do
instance[:cors] == nil ? 2 : instance[:cors] ? 0 : 1
end, "api" => ->(alias : String, instance : Instance) do
instance[:api] == nil ? 2 : instance[:api] ? 0 : 1
end, "users" => ->(alias : String, instance : Instance) do
-(instance[:stats]?.try do |__arg6|
__arg6["usage"]?.try do |__arg7|
__arg7["users"]["total"].as_i
end
end || 0)
end, "version" => ->(alias : String, instance : Instance) do
instance[:stats]?.try do |__arg8|
__arg8["software"]?.try do |__arg9|
__arg9["version"].as_s.try do |__arg10|
((__arg10.split("-", 2))[0].split(".")).map do |a|
-a.to_i
end
end
end
end || [0, 0, 0]
end}
Method Summary
Macro Summary
Method Detail
def
sort_instances(instances, sort_by)
#
Macro Detail
macro
rendered(filename)
#