Class: Bosh::Monitor::Plugins::Base
- Inherits:
-
Object
- Object
- Bosh::Monitor::Plugins::Base
- Defined in:
- lib/bosh/monitor/plugins/base.rb
Direct Known Subclasses
CloudWatch, ConsulEventForwarder, DataDog, Dummy, Email, Graphite, Logger, Nats, Pagerduty, Resurrector, SyslogEventForwarder, Tsdb
Instance Attribute Summary collapse
-
#event_kinds ⇒ Object
readonly
Returns the value of attribute event_kinds.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #process(event) ⇒ Object
- #run ⇒ Object
- #validate_options ⇒ Object
Constructor Details
Instance Attribute Details
#event_kinds ⇒ Object (readonly)
Returns the value of attribute event_kinds.
6 7 8 |
# File 'lib/bosh/monitor/plugins/base.rb', line 6 def event_kinds @event_kinds end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
4 5 6 |
# File 'lib/bosh/monitor/plugins/base.rb', line 4 def logger @logger end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/bosh/monitor/plugins/base.rb', line 5 def @options end |
Instance Method Details
#process(event) ⇒ Object
22 23 24 |
# File 'lib/bosh/monitor/plugins/base.rb', line 22 def process(event) raise FatalError, "'process' method is not implemented in '#{self.class}'" end |
#run ⇒ Object
18 19 20 |
# File 'lib/bosh/monitor/plugins/base.rb', line 18 def run raise FatalError, "'run' method is not implemented in '#{self.class}'" end |
#validate_options ⇒ Object
14 15 16 |
# File 'lib/bosh/monitor/plugins/base.rb', line 14 def true end |