Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/alert_management')
-rw-r--r--app/graphql/types/alert_management/alert_type.rb14
-rw-r--r--app/graphql/types/alert_management/http_integration_type.rb2
-rw-r--r--app/graphql/types/alert_management/prometheus_integration_type.rb2
3 files changed, 14 insertions, 4 deletions
diff --git a/app/graphql/types/alert_management/alert_type.rb b/app/graphql/types/alert_management/alert_type.rb
index c17406b3e56..e85d0213613 100644
--- a/app/graphql/types/alert_management/alert_type.rb
+++ b/app/graphql/types/alert_management/alert_type.rb
@@ -8,8 +8,8 @@ module Types
present_using ::AlertManagement::AlertPresenter
- implements(Types::Notes::NoteableInterface)
- implements(Types::TodoableInterface)
+ implements Types::Notes::NoteableInterface
+ implements Types::TodoableInterface
authorize :read_alert_management_alert
@@ -111,6 +111,12 @@ module Types
null: true,
description: 'Assignees of the alert.'
+ field :metrics_dashboard_url,
+ GraphQL::Types::String,
+ null: true,
+ description: 'URL for metrics embed for the alert.',
+ deprecated: { reason: 'Returns no data. Underlying feature was removed in 16.0',
+ milestone: '16.0' }
field :runbook,
GraphQL::Types::String,
null: true,
@@ -136,6 +142,10 @@ module Types
method: :details_url,
null: false,
description: 'URL of the alert.'
+
+ def metrics_dashboard_url
+ nil
+ end
end
end
end
diff --git a/app/graphql/types/alert_management/http_integration_type.rb b/app/graphql/types/alert_management/http_integration_type.rb
index bba9cb1bbfc..7c026be86a3 100644
--- a/app/graphql/types/alert_management/http_integration_type.rb
+++ b/app/graphql/types/alert_management/http_integration_type.rb
@@ -6,7 +6,7 @@ module Types
graphql_name 'AlertManagementHttpIntegration'
description 'An endpoint and credentials used to accept alerts for a project'
- implements(Types::AlertManagement::IntegrationType)
+ implements Types::AlertManagement::IntegrationType
authorize :admin_operations
diff --git a/app/graphql/types/alert_management/prometheus_integration_type.rb b/app/graphql/types/alert_management/prometheus_integration_type.rb
index 9a2ef78eca7..0f61eeaa177 100644
--- a/app/graphql/types/alert_management/prometheus_integration_type.rb
+++ b/app/graphql/types/alert_management/prometheus_integration_type.rb
@@ -8,7 +8,7 @@ module Types
include ::Gitlab::Routing
- implements(Types::AlertManagement::IntegrationType)
+ implements Types::AlertManagement::IntegrationType
authorize :admin_project