summaryrefslogtreecommitdiff
path: root/app/graphql/resolvers/metrics
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/resolvers/metrics')
-rw-r--r--app/graphql/resolvers/metrics/dashboard_resolver.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/graphql/resolvers/metrics/dashboard_resolver.rb b/app/graphql/resolvers/metrics/dashboard_resolver.rb
index a82a4a95254..0669fececd5 100644
--- a/app/graphql/resolvers/metrics/dashboard_resolver.rb
+++ b/app/graphql/resolvers/metrics/dashboard_resolver.rb
@@ -8,15 +8,16 @@ module Resolvers
argument :path, GraphQL::STRING_TYPE,
required: true,
- description: "Path to a file which defines metrics dashboard " \
- "eg: 'config/prometheus/common_metrics.yml'."
+ description: <<~MD
+ Path to a file which defines a metrics dashboard eg: `"config/prometheus/common_metrics.yml"`.
+ MD
alias_method :environment, :object
- def resolve(**args)
+ def resolve(path:)
return unless environment
- ::PerformanceMonitoring::PrometheusDashboard.find_for(**args, **service_params)
+ ::PerformanceMonitoring::PrometheusDashboard.find_for(path: path, **service_params)
end
private