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

measurement_type.rb « usage_trends « analytics « admin « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c54c938402df85007e388375f93ec6854d3d4cca (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
# frozen_string_literal: true

module Types
  module Admin
    module Analytics
      module UsageTrends
        class MeasurementType < BaseObject
          include Gitlab::Graphql::Authorize::AuthorizeResource
          graphql_name 'UsageTrendsMeasurement'
          description 'Represents a recorded measurement (object count) for the Admins'

          authorize :read_usage_trends_measurement

          field :recorded_at, Types::TimeType, null: true,
                description: 'The time the measurement was recorded.'

          field :count, GraphQL::Types::Int, null: false,
                description: 'Object count.'

          field :identifier, Types::Admin::Analytics::UsageTrends::MeasurementIdentifierEnum, null: false,
                description: 'The type of objects being measured.'
        end
      end
    end
  end
end