Sha256: d392a9a7cf4bba328b7fb0cdfc6bf2bb1810a84f51538fc49d2db64aa43cdf61

Contents?: true

Size: 357 Bytes

Versions: 32

Compression:

Stored size: 357 Bytes

Contents

class PurchasesController < ApplicationController
  def create
    Chillout::Metric.push(
      series: "purchases",
      tags: {
        country: "USA",
        terminal: "KATE-123",
      },
      timestamp: Time.now.utc,
      values: {
        number_of_products: 4,
        total_amount: 55.70,
        tax: 5.70,
      },
    )
    head :ok
  end
end

Version data entries

32 entries across 4 versions & 1 rubygems

Version Path
chillout-0.8.9 test/support/rails_4_0_0/app/controllers/purchases_controller.rb
chillout-0.8.9 test/support/rails_5_1_1/app/controllers/purchases_controller.rb
chillout-0.8.9 test/support/rails_5_0_3/app/controllers/purchases_controller.rb
chillout-0.8.9 test/support/rails_4_2_8/app/controllers/purchases_controller.rb
chillout-0.8.9 test/support/rails_4_2_0/app/controllers/purchases_controller.rb
chillout-0.8.9 test/support/rails_4_1_16/app/controllers/purchases_controller.rb
chillout-0.8.9 test/support/rails_4_1_0/app/controllers/purchases_controller.rb
chillout-0.8.9 test/support/rails_4_0_13/app/controllers/purchases_controller.rb
chillout-0.8.8 test/support/rails_4_0_0/app/controllers/purchases_controller.rb
chillout-0.8.8 test/support/rails_4_0_13/app/controllers/purchases_controller.rb
chillout-0.8.8 test/support/rails_4_1_0/app/controllers/purchases_controller.rb
chillout-0.8.8 test/support/rails_4_1_16/app/controllers/purchases_controller.rb
chillout-0.8.8 test/support/rails_4_2_0/app/controllers/purchases_controller.rb
chillout-0.8.8 test/support/rails_4_2_8/app/controllers/purchases_controller.rb
chillout-0.8.8 test/support/rails_5_0_3/app/controllers/purchases_controller.rb
chillout-0.8.8 test/support/rails_5_1_1/app/controllers/purchases_controller.rb
chillout-0.8.7 test/support/rails_5_1_1/app/controllers/purchases_controller.rb
chillout-0.8.7 test/support/rails_4_0_0/app/controllers/purchases_controller.rb
chillout-0.8.7 test/support/rails_4_0_13/app/controllers/purchases_controller.rb
chillout-0.8.7 test/support/rails_4_1_0/app/controllers/purchases_controller.rb