class LogStash::PluginMixins::Jdbc::TimeValueTracker

Public Instance Methods

set_initial() click to toggle source
# File lib/logstash/plugin_mixins/jdbc/value_tracking.rb, line 89
def set_initial
  common_set_initial(:to_time, Time.at(0).utc)
end
set_value(value) click to toggle source
# File lib/logstash/plugin_mixins/jdbc/value_tracking.rb, line 93
def set_value(value)
  if value.respond_to?(:to_time)
    @value = value.to_time
  else
    @value = DateTime.parse(value).to_time
  end
end