diff options
Diffstat (limited to 'app/graphql/resolvers/alert_management')
-rw-r--r-- | app/graphql/resolvers/alert_management/alert_resolver.rb | 2 | ||||
-rw-r--r-- | app/graphql/resolvers/alert_management/integrations_resolver.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/graphql/resolvers/alert_management/alert_resolver.rb b/app/graphql/resolvers/alert_management/alert_resolver.rb index 008641ed88a..62744e719da 100644 --- a/app/graphql/resolvers/alert_management/alert_resolver.rb +++ b/app/graphql/resolvers/alert_management/alert_resolver.rb @@ -12,7 +12,7 @@ module Resolvers argument :statuses, [Types::AlertManagement::StatusEnum], as: :status, required: false, - description: 'Alerts with the specified statues. For example, [TRIGGERED].' + description: 'Alerts with the specified statues. For example, `[TRIGGERED]`.' argument :sort, Types::AlertManagement::AlertSortEnum, description: 'Sort alerts by this criteria.', diff --git a/app/graphql/resolvers/alert_management/integrations_resolver.rb b/app/graphql/resolvers/alert_management/integrations_resolver.rb index cb7e73c2d1a..a97650e95d9 100644 --- a/app/graphql/resolvers/alert_management/integrations_resolver.rb +++ b/app/graphql/resolvers/alert_management/integrations_resolver.rb @@ -34,7 +34,7 @@ module Resolvers def prometheus_integrations return [] unless prometheus_integrations_allowed? - Array(project.prometheus_service) + Array(project.prometheus_integration) end def http_integrations @@ -54,7 +54,7 @@ module Resolvers def expected_integration_types [].tap do |types| types << ::AlertManagement::HttpIntegration if http_integrations_allowed? - types << ::PrometheusService if prometheus_integrations_allowed? + types << ::Integrations::Prometheus if prometheus_integrations_allowed? end end end |