Module: OpenObserve::Api::Models::AggregationFunc
- Defined in:
- lib/openobserve-api/models/aggregation_func.rb
Constant Summary collapse
- COUNT =
'count'- COUNT_DISTINCT =
'count-distinct'- HISTOGRAM =
'histogram'- SUM =
'sum'- MIN =
'min'- MAX =
'max'- AVG =
'avg'- MEDIAN =
'median'- P50 =
'p50'- P90 =
'p90'- P95 =
'p95'- P99 =
'p99'
Class Method Summary collapse
Class Method Details
.all ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/openobserve-api/models/aggregation_func.rb', line 25 def self.all @all ||= [ COUNT, COUNT_DISTINCT, HISTOGRAM, SUM, MIN, MAX, AVG, MEDIAN, P50, P90, P95, P99, ].freeze end |
.valid?(value) ⇒ Boolean
42 43 44 |
# File 'lib/openobserve-api/models/aggregation_func.rb', line 42 def self.valid?(value) all.include?(value) end |