Class: Gitlab::Database::Aggregation::ActiveRecord::Engine

Inherits:
Engine
  • Object
show all
Extended by:
Utils::Override
Defined in:
lib/gitlab/database/aggregation/active_record/engine.rb

Constant Summary collapse

COLUMN_PREFIX =
'aeq_'

Instance Attribute Summary

Attributes inherited from Engine

#context

Class Method Summary collapse

Methods included from Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Methods inherited from Engine

build, dimensions, #execute, filters, #initialize, metrics, name, #request_valid?

Constructor Details

This class inherits a constructor from Gitlab::Database::Aggregation::Engine

Class Method Details

.dimensions_mappingObject



22
23
24
25
26
27
# File 'lib/gitlab/database/aggregation/active_record/engine.rb', line 22

def self.dimensions_mapping
  {
    column: Column,
    date_bucket: DateBucketDimension
  }
end

.filters_mappingObject



30
31
32
33
34
# File 'lib/gitlab/database/aggregation/active_record/engine.rb', line 30

def self.filters_mapping
  {
    exact_match: ExactMatchFilter
  }
end

.metrics_mappingObject



14
15
16
17
18
19
# File 'lib/gitlab/database/aggregation/active_record/engine.rb', line 14

def self.metrics_mapping
  {
    count: Count,
    mean: Mean
  }
end