summaryrefslogtreecommitdiff
path: root/app/graphql/types/grafana_integration_type.rb
blob: 2bbc0d34db66f08e14b93ce136a55aa279f6a67a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Types
  class GrafanaIntegrationType < ::Types::BaseObject
    graphql_name 'GrafanaIntegration'

    authorize :admin_operations

    field :created_at, Types::TimeType, null: false,
          description: 'Timestamp of the issue\'s creation.'
    field :enabled, GraphQL::Types::Boolean, null: false,
      description: 'Indicates whether Grafana integration is enabled.'
    field :grafana_url, GraphQL::Types::String, null: false,
      description: 'URL for the Grafana host for the Grafana integration.'
    field :id, GraphQL::Types::ID, null: false,
      description: 'Internal ID of the Grafana integration.'
    field :updated_at, Types::TimeType, null: false,
          description: 'Timestamp of the issue\'s last activity.'
  end
end