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

module Types
  class RootStorageStatisticsType < BaseObject
    graphql_name 'RootStorageStatistics'

    authorize :read_statistics

    field :storage_size, GraphQL::INT_TYPE, null: false, description: 'The total storage in bytes'
    field :repository_size, GraphQL::INT_TYPE, null: false, description: 'The git repository size in bytes'
    field :lfs_objects_size, GraphQL::INT_TYPE, null: false, description: 'The LFS objects size in bytes'
    field :build_artifacts_size, GraphQL::INT_TYPE, null: false, description: 'The CI artifacts size in bytes'
    field :packages_size, GraphQL::INT_TYPE, null: false, description: 'The packages size in bytes'
    field :wiki_size, GraphQL::INT_TYPE, null: false, description: 'The wiki size in bytes'
  end
end