summaryrefslogtreecommitdiff
path: root/app/graphql/types/grafana_integration_type.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 21:07:50 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 21:07:50 +0000
commitd203316c80aa27cf747aa29df9f7c2d374965b5f (patch)
treeaab5cde76fbf19a2639f6f9f3cb4f2acdc95f803 /app/graphql/types/grafana_integration_type.rb
parent8dafc3b65aeb8f50fdfc38fb98d96c3db9e2f607 (diff)
downloadgitlab-ce-d203316c80aa27cf747aa29df9f7c2d374965b5f.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/types/grafana_integration_type.rb')
-rw-r--r--app/graphql/types/grafana_integration_type.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/graphql/types/grafana_integration_type.rb b/app/graphql/types/grafana_integration_type.rb
new file mode 100644
index 00000000000..e6c865fea53
--- /dev/null
+++ b/app/graphql/types/grafana_integration_type.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+
+module Types
+ class GrafanaIntegrationType < ::Types::BaseObject
+ graphql_name 'GrafanaIntegration'
+
+ authorize :admin_operations
+
+ field :id, GraphQL::ID_TYPE, null: false,
+ description: 'Internal ID of the Grafana integration'
+ field :grafana_url, GraphQL::STRING_TYPE, null: false,
+ description: 'Url for the Grafana host for the Grafana integration'
+ field :token, GraphQL::STRING_TYPE, null: false,
+ description: 'API token for the Grafana integration'
+ field :enabled, GraphQL::BOOLEAN_TYPE, null: false,
+ description: 'Indicates whether Grafana integration is enabled'
+
+ field :created_at, Types::TimeType, null: false,
+ description: 'Timestamp of the issue\'s creation'
+ field :updated_at, Types::TimeType, null: false,
+ description: 'Timestamp of the issue\'s last activity'
+ end
+end