Class: Karafka::Web::Pro::Ui::Controllers::ClusterController
- Inherits:
-
Ui::Controllers::ClusterController
- Object
- Ui::Controllers::BaseController
- Ui::Controllers::ClusterController
- Karafka::Web::Pro::Ui::Controllers::ClusterController
- Defined in:
- lib/karafka/web/pro/ui/controllers/cluster_controller.rb
Overview
Cluster details controller
Constant Summary
Constants inherited from Ui::Controllers::BaseController
Ui::Controllers::BaseController::Models
Instance Attribute Summary
Attributes inherited from Ui::Controllers::BaseController
Instance Method Summary collapse
-
#index ⇒ Object
Lists available brokers in the cluster.
-
#show(broker_id) ⇒ Object
Displays selected broker configuration.
Methods inherited from Ui::Controllers::ClusterController
Methods inherited from Ui::Controllers::BaseController
Methods included from Ui::Controllers::Requests::Hookable
included, #run_after_hooks, #run_before_hooks
Constructor Details
This class inherits a constructor from Karafka::Web::Ui::Controllers::BaseController
Instance Method Details
#index ⇒ Object
Lists available brokers in the cluster
25 26 27 28 29 |
# File 'lib/karafka/web/pro/ui/controllers/cluster_controller.rb', line 25 def index @brokers = refine(Models::Broker.all) render end |
#show(broker_id) ⇒ Object
Displays selected broker configuration
34 35 36 37 38 39 40 |
# File 'lib/karafka/web/pro/ui/controllers/cluster_controller.rb', line 34 def show(broker_id) @broker = Models::Broker.find(broker_id) @configs = refine(@broker.configs) render end |