Sha256: 7e05996cea9761543c377286e4a01e7260d21e60aee5d2558133391d042ef8ee

Contents?: true

Size: 449 Bytes

Versions: 26

Compression:

Stored size: 449 Bytes

Contents

module Harness
  class Job
    def log(measurement)
      logger.debug "[Harness] Processing Measurement: #{measurement.inspect}"

      case measurement.class.to_s.demodulize.underscore.to_sym
      when :gauge
        adapter.log_gauge measurement
      when :counter
        adapter.log_counter measurement
      end
    end

    private
    def logger
      Harness.logger
    end

    def adapter
      Harness.config.adapter
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
harness-0.9.1 lib/harness/job.rb
harness-0.9.0 lib/harness/job.rb
harness-0.8.1 lib/harness/job.rb
harness-0.8.0 lib/harness/job.rb
harness-0.7.0 lib/harness/job.rb
harness-0.6.0 lib/harness/job.rb
harness-0.5.0 lib/harness/job.rb
harness-0.4.0 lib/harness/job.rb
harness-0.3.0 lib/harness/job.rb
harness-0.2.16 lib/harness/job.rb
harness-0.2.15 lib/harness/job.rb
harness-0.2.14 lib/harness/job.rb
harness-0.2.13 lib/harness/job.rb
harness-0.2.12 lib/harness/job.rb
harness-0.2.11 lib/harness/job.rb
harness-0.2.10 lib/harness/job.rb
harness-0.2.9 lib/harness/job.rb
harness-0.2.8 lib/harness/job.rb
harness-0.2.7 lib/harness/job.rb
harness-0.2.6 lib/harness/job.rb