Class: Types::Ci::DurationStatisticsType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/ci/duration_statistics_type.rb

Overview

rubocop: disable Graphql/AuthorizeTypes – this represents a hash, from the computed percentiles query

Constant Summary collapse

PERCENTILES =
::Ci::CollectPipelineAnalyticsServiceBase::ALLOWED_PERCENTILES

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

#meanObject



26
27
28
# File 'app/graphql/types/ci/duration_statistics_type.rb', line 26

def mean
  object[:mean] || object[:mean_duration]
end