roger_ui v0.1.9 RogerUI.Queues
Normalizes nodes data structures from Roger.Info.running_jobs() function in order to obtain queues:
Given a nested data structure, where each element contents nested items: input = [
"server@127.0.0.1": %{
running: %{
"roger_test_partition_1" => %{
default: %{consumer_count: 1, max_workers: 10, message_count: 740, paused: false},
fast: %{consumer_count: 1, max_workers: 10, message_count: 740, paused: false},
other: %{consumer_count: 1, max_workers: 2, message_count: 0, paused: false}
}]
return a sorted Map with the following keys: [ %{“partition_name” => “roger_partition_demo”, “queue_name” => “roger_test_partition_1”, “qualified_queue_name” => “roger_test_partition_1-default”} }]
Link to this section Summary
Functions
Takes a Keyword list that contains the nodes, status and partitions with queues, like this
Verifies if queue_name is an atom, if not, transforms it into one
Link to this section Functions
Takes a Keyword list that contains the nodes, status and partitions with queues, like this:
[ “server@127.0.0.1”: %{
running: %{
"roger_test_partition_1" => %{
default: %{consumer_count: 1, max_workers: 10, message_count: 740, paused: false},
fast: %{consumer_count: 1, max_workers: 10, message_count: 740, paused: false},
other: %{consumer_count: 1, max_workers: 2, message_count: 0, paused: false}
}
},...
]
and transforms it into a list of queues
Verifies if queue_name is an atom, if not, transforms it into one