Module: ScoutApm::BucketNameSplitter

Included in:
MetricMeta, SlowTransaction
Defined in:
lib/scout_apm/bucket_name_splitter.rb

Instance Method Summary collapse

Instance Method Details

#bucket_nameObject



7
8
9
# File 'lib/scout_apm/bucket_name_splitter.rb', line 7

def bucket_name
  split_metric_name(metric_name).last
end

#bucket_typeObject



3
4
5
# File 'lib/scout_apm/bucket_name_splitter.rb', line 3

def bucket_type
  split_metric_name(metric_name).first
end

#keyObject



11
12
13
# File 'lib/scout_apm/bucket_name_splitter.rb', line 11

def key
  {:bucket => bucket_type, :name => bucket_name}
end