7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'app/graphql/types/analytics/cycle_analytics/flow_metrics.rb', line 7
def self.[](context = :project)
Class.new(BaseObject) do
graphql_name "#{context.capitalize}ValueStreamAnalyticsFlowMetrics"
description 'Exposes aggregated value stream flow metrics'
field :issue_count,
Types::Analytics::CycleAnalytics::MetricType,
null: true,
description: 'Number of issues opened in the given period.',
resolver: Resolvers::Analytics::CycleAnalytics::IssueCountResolver[context]
field :deployment_count,
Types::Analytics::CycleAnalytics::MetricType,
null: true,
description: 'Number of production deployments in the given period.',
resolver: Resolvers::Analytics::CycleAnalytics::DeploymentCountResolver[context]
end
end
|