Class: Namespace::RootStorageStatistics
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Namespace::RootStorageStatistics
- Defined in:
- app/models/namespace/root_storage_statistics.rb
Constant Summary collapse
- SNIPPETS_SIZE_STAT_NAME =
'snippets_size'
- STATISTICS_ATTRIBUTES =
%W[ storage_size repository_size wiki_size lfs_objects_size build_artifacts_size packages_size #{SNIPPETS_SIZE_STAT_NAME} pipeline_artifacts_size uploads_size ].freeze
Constants inherited from ApplicationRecord
Constants included from ResetOnUnionError
ResetOnUnionError::MAX_RESET_PERIOD
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ApplicationRecord
cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
Methods included from SensitiveSerializableHash
Class Method Details
.namespace_statistics_attributes ⇒ Object
38 39 40 |
# File 'app/models/namespace/root_storage_statistics.rb', line 38 def self.namespace_statistics_attributes %w[storage_size dependency_proxy_size] end |
Instance Method Details
#recalculate! ⇒ Object
34 35 36 |
# File 'app/models/namespace/root_storage_statistics.rb', line 34 def recalculate! update!(merged_attributes) end |