class Fluent::ExceptionDetectorConfig::RuleTarget
Rule for a state transition: if pattern matches go to the given state.
Attributes
pattern[RW]
to_state[RW]
Public Class Methods
new(p, s)
click to toggle source
# File lib/fluent/plugin/exception_detector.rb, line 24 def initialize(p, s) @pattern = p @to_state = s end
Public Instance Methods
==(other)
click to toggle source
# File lib/fluent/plugin/exception_detector.rb, line 29 def ==(other) other.class == self.class && other.state == state end
Also aliased as: eql?
hash()
click to toggle source
# File lib/fluent/plugin/exception_detector.rb, line 35 def hash state.hash end
state()
click to toggle source
# File lib/fluent/plugin/exception_detector.rb, line 39 def state [@pattern, @to_state] end