class Logtail::Events::SQLQuery

@private

Attributes

duration_ms[R]
message[R]
sql[R]

Public Class Methods

new(attributes) click to toggle source
# File lib/logtail/events/sql_query.rb, line 10
def initialize(attributes)
  @sql = attributes[:sql]
  @duration_ms = attributes[:duration_ms]
  @message = attributes[:message]
end

Public Instance Methods

to_hash() click to toggle source
# File lib/logtail/events/sql_query.rb, line 16
def to_hash
  {
    sql_query_executed: Util::NonNilHashBuilder.build do |h|
      h.add(:sql, sql)
      h.add(:duration_ms, duration_ms)
    end
  }
end