Sha256: 4fa7a69d09febaed2b28ef8472be1aec37ada56a74ab419926446efa888095b1
Contents?: true
Size: 413 Bytes
Versions: 10
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true module RailsAutoscaleAgent class Measurement < Struct.new(:time, :value, :queue_name, :metric) # No queue_name is assumed to be a web request measurement # Metrics: qt = queue time (default), qd = queue depth (needed for Resque support) def initialize(time, value, queue_name = nil, metric = nil) super time.utc, value.to_i, queue_name, metric end end end
Version data entries
10 entries across 10 versions & 1 rubygems