blob: f385aa20a7e2f0cf36af1ed877f64b24f31b57e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
module Types
module DataTransfer
class ProjectDataTransferType < BaseType
graphql_name 'ProjectDataTransfer'
authorize
field :total_egress, GraphQL::Types::BigInt,
description: 'Total egress for that project in that period of time.',
null: true # disallow null once data_transfer_monitoring feature flag is rolled-out!
def total_egress(**_)
return unless Feature.enabled?(:data_transfer_monitoring)
40_000_000
end
end
end
end
|