mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
39 lines
581 B
Ruby
39 lines
581 B
Ruby
class Fluentd
|
|
module Setting
|
|
class InMonitorAgent
|
|
include ActiveModel::Model
|
|
include Common
|
|
|
|
KEYS = [
|
|
:bind, :port
|
|
].freeze
|
|
|
|
attr_accessor(*KEYS)
|
|
|
|
validates :bind, presence: true
|
|
validates :port, presence: true
|
|
|
|
def self.initial_params
|
|
{
|
|
bind: "0.0.0.0",
|
|
port: 24220,
|
|
}
|
|
end
|
|
|
|
def common_options
|
|
[
|
|
:bind, :port
|
|
]
|
|
end
|
|
|
|
def advanced_options
|
|
[]
|
|
end
|
|
|
|
def plugin_name
|
|
"monitor_agent"
|
|
end
|
|
end
|
|
end
|
|
end
|