Sha256: c87fe8a1ded258c96b67176b2968b8c1f162606a067201463e6cd3b45acb5dc5

Contents?: true

Size: 441 Bytes

Versions: 28

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

28 entries across 28 versions & 1 rubygems

Version Path
skylight-6.1.0.beta lib/skylight/normalizers/couch_potato/query.rb
skylight-6.0.4 lib/skylight/normalizers/couch_potato/query.rb
skylight-6.0.3 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.3.5 lib/skylight/normalizers/couch_potato/query.rb
skylight-6.0.2 lib/skylight/normalizers/couch_potato/query.rb
skylight-6.0.1 lib/skylight/normalizers/couch_potato/query.rb
skylight-6.0.0 lib/skylight/normalizers/couch_potato/query.rb
skylight-6.0.0.beta2 lib/skylight/normalizers/couch_potato/query.rb
skylight-6.0.0.beta lib/skylight/normalizers/couch_potato/query.rb
skylight-5.3.4 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.3.3 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.3.2 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.3.1 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.3.0 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.2.0 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.2.0.beta2 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.2.0.beta lib/skylight/normalizers/couch_potato/query.rb
skylight-5.1.1 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.1.0.beta3 lib/skylight/normalizers/couch_potato/query.rb
skylight-5.1.0.beta2 lib/skylight/normalizers/couch_potato/query.rb