Class: LogStash::PluginMixins::Jdbc::NumericValueTracker
- Inherits:
-
ValueTracking
- Object
- ValueTracking
- LogStash::PluginMixins::Jdbc::NumericValueTracker
- Defined in:
- lib/logstash/plugin_mixins/jdbc/value_tracking.rb
Constant Summary
Constants inherited from ValueTracking
ValueTracking::YAML_PERMITTED_CLASSES
Instance Attribute Summary
Attributes inherited from ValueTracking
Instance Method Summary collapse
Methods inherited from ValueTracking
build_last_value_tracker, #initialize, load_yaml, #write
Constructor Details
This class inherits a constructor from LogStash::PluginMixins::Jdbc::ValueTracking
Instance Method Details
#set_initial ⇒ Object
74 75 76 |
# File 'lib/logstash/plugin_mixins/jdbc/value_tracking.rb', line 74 def set_initial common_set_initial(:abs, 0) end |
#set_value(value) ⇒ Object
78 79 80 81 |
# File 'lib/logstash/plugin_mixins/jdbc/value_tracking.rb', line 78 def set_value(value) return unless value.is_a?(Numeric) @value = value end |