Class: Resolvers::Metrics::DashboardResolver

Inherits:
BaseResolver
  • Object
show all
Defined in:
app/graphql/resolvers/metrics/dashboard_resolver.rb

Instance Method Summary collapse

Methods inherited from BaseResolver

complexity, complexity_multiplier, #current_user, last, #object, resolver_complexity, #select_result, single, #single?, #synchronized_object

Methods included from Gitlab::Utils::Override

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

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Instance Method Details

#resolve(**args) ⇒ Object


14
15
16
17
18
19
# File 'app/graphql/resolvers/metrics/dashboard_resolver.rb', line 14

def resolve(**args)
  return unless environment

  ::PerformanceMonitoring::PrometheusDashboard
    .find_for(project: environment.project, user: context[:current_user], path: args[:path], options: { environment: environment })
end