Sha256: b8fd9a35560d682d2d781502f8208dbaef0cc7be33b1bc3463ef8033f2f8bd99

Contents?: true

Size: 506 Bytes

Versions: 303

Compression:

Stored size: 506 Bytes

Contents

require 'json'
require 'msgpack'

def gen_tsv(time)
  "#{time}\ttag1\tok"
end

def gen_json(time)
  {'tag' => 'tag1', 'time' => time, 'k1' => 'ok'}.to_json
end

def gen_msgpack(time)
  {'tagger' => 'tag1', 'datetime' => time, 'k1' => 'ok'}.to_msgpack
end

def gen_raw_string(time)
  "#{time} hello"
end

time = ARGV.first
time = Integer(time) rescue time

case ARGV.last.to_i
when 0
  puts gen_tsv(time)
when 1
  puts gen_json(time)
when 2
  print gen_msgpack(time)
when 3
  print gen_raw_string(time)
end

Version data entries

303 entries across 303 versions & 8 rubygems

Version Path
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/fluentd-1.17.0-x64-mingw-ucrt/test/scripts/exec_script.rb
fluentd-1.16.6-x86-mingw32 test/scripts/exec_script.rb
fluentd-1.16.6-x64-mingw32 test/scripts/exec_script.rb
fluentd-1.16.6-x64-mingw-ucrt test/scripts/exec_script.rb
fluentd-1.16.6 test/scripts/exec_script.rb
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/fluentd-1.17.0-x64-mingw-ucrt/test/scripts/exec_script.rb
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/fluentd-1.17.0-x64-mingw-ucrt/test/scripts/exec_script.rb
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/fluentd-1.17.0-x64-mingw-ucrt/test/scripts/exec_script.rb
fluentd-1.17.0-x86-mingw32 test/scripts/exec_script.rb
fluentd-1.17.0-x64-mingw-ucrt test/scripts/exec_script.rb
fluentd-1.17.0-x64-mingw32 test/scripts/exec_script.rb
fluentd-1.17.0 test/scripts/exec_script.rb
fluentd-1.16.5-x64-mingw-ucrt test/scripts/exec_script.rb
fluentd-1.16.5-x86-mingw32 test/scripts/exec_script.rb
fluentd-1.16.5-x64-mingw32 test/scripts/exec_script.rb
fluentd-1.16.5 test/scripts/exec_script.rb
fluentd-1.16.4-x64-mingw-ucrt test/scripts/exec_script.rb
fluentd-1.16.4-x86-mingw32 test/scripts/exec_script.rb
fluentd-1.16.4-x64-mingw32 test/scripts/exec_script.rb
fluentd-1.16.4 test/scripts/exec_script.rb