File: root_storage_statistics.rb

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (27 lines) | stat: -rw-r--r-- 1,659 bytes parent folder | download
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
# frozen_string_literal: true

module API
  module Entities
    class Namespace
      class RootStorageStatistics < Grape::Entity
        expose  :build_artifacts_size, documentation: { type: 'integer', desc: 'CI artifacts size in bytes.' }
        expose  :container_registry_size, documentation: { type: 'integer', desc: 'Container Registry size in bytes.' }
        expose  :registry_size_estimated,
          as: :container_registry_size_is_estimated,
          documentation: { type: 'boolean',
                           desc: 'Indicates whether the deduplicated Container Registry size for ' \
                             'the namespace is an estimated value or not.' }
        expose  :dependency_proxy_size, documentation: { type: 'integer', desc: 'Dependency Proxy sizes in bytes.' }
        expose  :lfs_objects_size, documentation: { type: 'integer', desc: 'LFS objects size in bytes.' }
        expose  :packages_size, documentation: { type: 'integer', desc: 'Packages size in bytes.' }
        expose  :pipeline_artifacts_size,
          documentation: { type: 'integer', desc: 'CI pipeline artifacts size in bytes.' }
        expose  :repository_size, documentation: { type: 'integer', desc: 'Git repository size in bytes.' }
        expose  :snippets_size, documentation: { type: 'integer', desc: 'Snippets size in bytes.' }
        expose  :storage_size, documentation: { type: 'integer', desc: 'Total storage in bytes.' }
        expose  :uploads_size, documentation: { type: 'integer', desc: 'Uploads size in bytes.' }
        expose  :wiki_size, documentation: { type: 'integer', desc: 'Wiki size in bytes.' }
      end
    end
  end
end