Class: Types::DataTransfer::ProjectDataTransferType
- Inherits:
-
BaseType
- Object
- GraphQL::Schema::Object
- BaseObject
- BaseType
- Types::DataTransfer::ProjectDataTransferType
- Defined in:
- app/graphql/types/data_transfer/project_data_transfer_type.rb
Instance Method Summary collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#total_egress(parent:) ⇒ Object
14 15 16 17 18 19 |
# File 'app/graphql/types/data_transfer/project_data_transfer_type.rb', line 14 def total_egress(parent:) return unless Feature.enabled?(:data_transfer_monitoring, parent.group) return 40_000_000 if Feature.enabled?(:data_transfer_monitoring_mock_data, parent.group) object[:egress_nodes].sum('repository_egress + artifacts_egress + packages_egress + registry_egress') end |