debian-mirror-gitlab/lib/gitlab/usage_data_non_sql_metrics.rb

43 lines
1 KiB
Ruby
Raw Normal View History

2021-04-29 21:17:54 +05:30
# frozen_string_literal: true
module Gitlab
class UsageDataNonSqlMetrics < UsageData
SQL_METRIC_DEFAULT = -3
class << self
def count(relation, column = nil, batch: true, batch_size: nil, start: nil, finish: nil)
SQL_METRIC_DEFAULT
end
def distinct_count(relation, column = nil, batch: true, batch_size: nil, start: nil, finish: nil)
SQL_METRIC_DEFAULT
end
def estimate_batch_distinct_count(relation, column = nil, batch_size: nil, start: nil, finish: nil)
SQL_METRIC_DEFAULT
end
def sum(relation, column, batch_size: nil, start: nil, finish: nil)
SQL_METRIC_DEFAULT
end
def histogram(relation, column, buckets:, bucket_size: buckets.size)
SQL_METRIC_DEFAULT
end
2021-06-08 01:23:25 +05:30
def maximum_id(model, column = nil)
2021-04-29 21:17:54 +05:30
end
2021-06-08 01:23:25 +05:30
def minimum_id(model, column = nil)
end
def jira_service_data
{
projects_jira_server_active: 0,
projects_jira_cloud_active: 0
}
2021-04-29 21:17:54 +05:30
end
end
end
end