Class: Types::DataTransfer::ProjectDataTransferType

Inherits:
BaseType
  • Object
show all
Defined in:
app/graphql/types/data_transfer/project_data_transfer_type.rb

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#total_egress(parent:) ⇒ Object



14
15
16
17
18
# 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)

  object[:egress_nodes].sum('repository_egress + artifacts_egress + packages_egress + registry_egress')
end