Class: Gitlab::Usage::Metrics::Aggregates::Sources::RedisHll
- Inherits:
-
Object
- Object
- Gitlab::Usage::Metrics::Aggregates::Sources::RedisHll
- Extended by:
- Calculations::Intersection
- Defined in:
- lib/gitlab/usage/metrics/aggregates/sources/redis_hll.rb
Class Method Summary collapse
Methods included from Calculations::Intersection
calculate_metrics_intersections
Class Method Details
.calculate_metrics_union(metric_names:, start_date:, end_date:, recorded_at: nil) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/gitlab/usage/metrics/aggregates/sources/redis_hll.rb', line 10 def self.calculate_metrics_union(metric_names:, start_date:, end_date:, recorded_at: nil) union = Gitlab::UsageDataCounters::HLLRedisCounter .calculate_events_union(event_names: metric_names, start_date: start_date, end_date: end_date) return union if union >= 0 raise UnionNotAvailable, "Union data not available for #{metric_names}" end |