Sha256: 3d2675e0cd4ce7f9571eaf7458c3d97bdbc4c9505bcf6f169feafdfeb2a88f7e

Contents?: true

Size: 436 Bytes

Versions: 16

Compression:

Stored size: 436 Bytes

Contents

# encoding: utf-8

module TingYun
  module Instrumentation
    module Support
      module EventFormatter
        def self.format(command_name, database_name, command)
          result = {
              :operation => command_name,
              :database => database_name,
              :collection => command.values.first,
              :term => command.values.last
          }
          result
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
tingyun_rpm-1.6.1 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.5.0 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.4.2 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.4.1 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.3.1 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.3.0 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.2.0 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.1.4.2 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.1.4.1 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.1.4 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.1.3 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.1.2 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.1.1 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.1.0 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.0.7 lib/ting_yun/instrumentation/support/event_formatter.rb
tingyun_rpm-1.0.6 lib/ting_yun/instrumentation/support/event_formatter.rb