Sha256: eb191ef98b84937508ff93127b23f062310e2757934acb5f6c4cc555265e9b41

Contents?: true

Size: 441 Bytes

Versions: 16

Compression:

Stored size: 441 Bytes

Contents

require "json"

module Skylight
  module Normalizers
    module CouchPotato
      class Query < Normalizer
        register "couch_potato.load"
        register "couch_potato.view"

        CAT = "db.couch_db.query".freeze

        def normalize(trace, name, payload)
          description = payload[:name] if payload
          _name = name.sub('couch_potato.', '')
          [CAT, _name, description]
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
skylight-1.7.2 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.7.1 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.7.0 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.6.1 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.6.0 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.5.1 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.5.0 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.4.4 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.4.3 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.4.2 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.4.1 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.4.0 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.4.0.beta.2 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.4.0.beta lib/skylight/normalizers/couch_potato/query.rb
skylight-1.3.1 lib/skylight/normalizers/couch_potato/query.rb
skylight-1.3.0 lib/skylight/normalizers/couch_potato/query.rb