Class: Gitlab::Prometheus::Queries::MatchedMetricQuery

Inherits:
BaseQuery
  • Object
show all
Defined in:
lib/gitlab/prometheus/queries/matched_metric_query.rb

Constant Summary collapse

MAX_QUERY_ITEMS =
40

Instance Attribute Summary

Attributes inherited from BaseQuery

#client

Instance Method Summary collapse

Methods inherited from BaseQuery

#initialize, #raw_cpu_usage_query, #raw_memory_usage_query, transform_reactive_result

Constructor Details

This class inherits a constructor from Gitlab::Prometheus::Queries::BaseQuery

Instance Method Details

#queryObject


9
10
11
12
13
14
15
16
17
18
# File 'lib/gitlab/prometheus/queries/matched_metric_query.rb', line 9

def query
  groups_data.map do |group, data|
    {
      group: group.name,
      priority: group.priority,
      active_metrics: data[:active_metrics],
      metrics_missing_requirements: data[:metrics_missing_requirements]
    }
  end
end