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

agent_activity_event_type.rb « clusters « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 79a9fd70505e0b7f468d1c5ac00c7b65cc571e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# frozen_string_literal: true

module Types
  module Clusters
    class AgentActivityEventType < BaseObject
      graphql_name 'ClusterAgentActivityEvent'

      authorize :admin_cluster

      connection_type_class(Types::CountableConnectionType)

      field :recorded_at,
            Types::TimeType,
            null: true,
            description: 'Timestamp the event was recorded.'

      field :kind,
            GraphQL::Types::String,
            null: true,
            description: 'Type of event.'

      field :level,
            GraphQL::Types::String,
            null: true,
            description: 'Severity of the event.'

      field :user,
            Types::UserType,
            null: true,
            description: 'User associated with the event.'

      field :agent_token,
            Types::Clusters::AgentTokenType,
            null: true,
            description: 'Agent token associated with the event.'
    end
  end
end