module TingYun::Instrumentation::Support::EventFormatter
Public Class Methods
format(command_name, database_name, command,host="localhost",port="27017", nosql="")
click to toggle source
# File lib/ting_yun/instrumentation/support/event_formatter.rb, line 7 def self.format(command_name, database_name, command,host="localhost",port="27017", nosql="") result = { :operation => command_name, :database => database_name, :collection => command.values.first, :term => command.values.last, :product => "Mongo", :type=>"Mongo", :host => host, :port => port, :nosql => nosql } result end