diff options
Diffstat (limited to 'app/graphql/types/root_storage_statistics_type.rb')
-rw-r--r-- | app/graphql/types/root_storage_statistics_type.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/app/graphql/types/root_storage_statistics_type.rb b/app/graphql/types/root_storage_statistics_type.rb index 67ee0589882..dbed51ac71a 100644 --- a/app/graphql/types/root_storage_statistics_type.rb +++ b/app/graphql/types/root_storage_statistics_type.rb @@ -8,11 +8,19 @@ module Types field :build_artifacts_size, GraphQL::Types::Float, null: false, description: 'CI artifacts size in bytes.' field :container_registry_size, GraphQL::Types::Float, null: false, description: 'Container Registry size in bytes.' + field :container_registry_size_is_estimated, GraphQL::Types::Boolean, method: :registry_size_estimated, null: false, + description: 'Indicates whether the deduplicated Container Registry size for ' \ + 'the namespace is an estimated value or not.' field :dependency_proxy_size, GraphQL::Types::Float, null: false, description: 'Dependency Proxy sizes in bytes.' field :lfs_objects_size, GraphQL::Types::Float, null: false, description: 'LFS objects size in bytes.' field :packages_size, GraphQL::Types::Float, null: false, description: 'Packages size in bytes.' - field :pipeline_artifacts_size, GraphQL::Types::Float, null: false, description: 'CI pipeline artifacts size in bytes.' - field :registry_size_estimated, GraphQL::Types::Boolean, null: false, description: 'Indicates whether the deduplicated Container Registry size for the namespace is an estimated value or not.' + field :pipeline_artifacts_size, GraphQL::Types::Float, null: false, + description: 'CI pipeline artifacts size in bytes.' + field :registry_size_estimated, GraphQL::Types::Boolean, + null: false, + deprecated: { reason: 'Use `container_registry_size_is_estimated`', milestone: '16.2' }, + description: 'Indicates whether the deduplicated Container Registry size for ' \ + 'the namespace is an estimated value or not.' field :repository_size, GraphQL::Types::Float, null: false, description: 'Git repository size in bytes.' field :snippets_size, GraphQL::Types::Float, null: false, description: 'Snippets size in bytes.' field :storage_size, GraphQL::Types::Float, null: false, description: 'Total storage in bytes.' @@ -20,3 +28,5 @@ module Types field :wiki_size, GraphQL::Types::Float, null: false, description: 'Wiki size in bytes.' end end + +Types::RootStorageStatisticsType.prepend_mod_with('Types::RootStorageStatisticsType') |