From 5c6f40ab6e825e8d31e3bfc362e9bcce80a14dba Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Fri, 8 Sep 2017 19:38:02 +0200 Subject: Add usage ping for Auto DevOps Fixes gitlab-org/gitlab-ce#37648 --- changelogs/unreleased/zj-usage-data-auto-devops.yml | 5 +++++ lib/gitlab/usage_data.rb | 2 ++ spec/lib/gitlab/usage_data_spec.rb | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 changelogs/unreleased/zj-usage-data-auto-devops.yml diff --git a/changelogs/unreleased/zj-usage-data-auto-devops.yml b/changelogs/unreleased/zj-usage-data-auto-devops.yml new file mode 100644 index 00000000000..9b5ec894042 --- /dev/null +++ b/changelogs/unreleased/zj-usage-data-auto-devops.yml @@ -0,0 +1,5 @@ +--- +title: Add usage data for Auto DevOps +merge_request: +author: +type: other diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index 3cf26625108..47b0be5835f 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -22,6 +22,8 @@ module Gitlab ci_builds: ::Ci::Build.count, ci_internal_pipelines: ::Ci::Pipeline.internal.count, ci_external_pipelines: ::Ci::Pipeline.external.count, + ci_pipeline_config_auto_devops: ::Ci::Pipeline.auto_devops_source.count, + ci_pipeline_config_repository: ::Ci::Pipeline.repository_source.count, ci_runners: ::Ci::Runner.count, ci_triggers: ::Ci::Trigger.count, ci_pipeline_schedules: ::Ci::PipelineSchedule.count, diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index 68429d792f2..daca5c73415 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -40,6 +40,8 @@ describe Gitlab::UsageData do ci_builds ci_internal_pipelines ci_external_pipelines + ci_pipeline_config_auto_devops + ci_pipeline_config_repository ci_runners ci_triggers ci_pipeline_schedules -- cgit v1.2.1