2019-08-22 22:08:28 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
class RootStorageStatisticsType < BaseObject
|
|
|
|
graphql_name 'RootStorageStatistics'
|
|
|
|
|
|
|
|
authorize :read_statistics
|
|
|
|
|
2020-03-30 09:07:58 +00:00
|
|
|
field :storage_size, GraphQL::FLOAT_TYPE, null: false, description: 'The total storage in bytes'
|
|
|
|
field :repository_size, GraphQL::FLOAT_TYPE, null: false, description: 'The Git repository size in bytes'
|
|
|
|
field :lfs_objects_size, GraphQL::FLOAT_TYPE, null: false, description: 'The LFS objects size in bytes'
|
|
|
|
field :build_artifacts_size, GraphQL::FLOAT_TYPE, null: false, description: 'The CI artifacts size in bytes'
|
|
|
|
field :packages_size, GraphQL::FLOAT_TYPE, null: false, description: 'The packages size in bytes'
|
|
|
|
field :wiki_size, GraphQL::FLOAT_TYPE, null: false, description: 'The wiki size in bytes'
|
2019-08-22 22:08:28 +00:00
|
|
|
end
|
|
|
|
end
|