diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-03-26 21:54:13 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-03-26 21:54:13 +0200 |
commit | 4478103d99534344e929b62e8244e7b4dd4805bd (patch) | |
tree | edc1dae4f2566ed7a8dc6e2c75cf31241c9d161b | |
parent | e46950f2849880bb7b84e40eaa925f5665c58c36 (diff) | |
download | gitlab-ce-4478103d99534344e929b62e8244e7b4dd4805bd.tar.gz |
Rename cluster datapoint names to be more specific
-rw-r--r-- | lib/gitlab/usage_data.rb | 12 | ||||
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index c28dc5cea1a..e75297b1d99 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -51,12 +51,12 @@ module Gitlab clusters: ::Clusters::Cluster.count, clusters_enabled: ::Clusters::Cluster.enabled.count, clusters_disabled: ::Clusters::Cluster.disabled.count, - clusters_gke: ::Clusters::Cluster.where(provider_type: ::Clusters::Cluster.provider_types[:gcp]).count, - clusters_user: ::Clusters::Cluster.where(provider_type: ::Clusters::Cluster.provider_types[:user]).count, - clusters_helm: ::Clusters::Applications::Helm.count, - clusters_ingress: ::Clusters::Applications::Ingress.count, - clusters_prometheus: ::Clusters::Applications::Prometheus.count, - clusters_runner: ::Clusters::Applications::Runner.count, + clusters_platforms_gke: ::Clusters::Cluster.where(provider_type: ::Clusters::Cluster.provider_types[:gcp]).count, + clusters_platforms_user: ::Clusters::Cluster.where(provider_type: ::Clusters::Cluster.provider_types[:user]).count, + clusters_applications_helm: ::Clusters::Applications::Helm.count, + clusters_applications_ingress: ::Clusters::Applications::Ingress.count, + clusters_applications_prometheus: ::Clusters::Applications::Prometheus.count, + clusters_applications_runner: ::Clusters::Applications::Runner.count, in_review_folder: ::Environment.in_review_folder.count, groups: Group.count, issues: Issue.count, diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index e50ac72d042..d39668a6caf 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -64,12 +64,12 @@ describe Gitlab::UsageData do clusters clusters_enabled clusters_disabled - clusters_gke - clusters_user - clusters_helm - clusters_ingress - clusters_prometheus - clusters_runner + clusters_platforms_gke + clusters_platforms_user + clusters_applications_helm + clusters_applications_ingress + clusters_applications_prometheus + clusters_applications_runner in_review_folder groups issues |