summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-07-27 12:36:55 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-07-27 15:54:29 +0200
commit0393a82d2628f7d4e75f317ea7013a9f4772e840 (patch)
treed942d554485780ed0d45ec8b65541d3c654e6677 /lib/api
parent802ca4ff65f04f8741565288fbc1e89bb29db572 (diff)
downloadgitlab-ce-0393a82d2628f7d4e75f317ea7013a9f4772e840.tar.gz
Add instance statistics settings to API
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/settings.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/settings.rb b/lib/api/settings.rb
index 1ca7d23203b..19d5e66c77e 100644
--- a/lib/api/settings.rb
+++ b/lib/api/settings.rb
@@ -130,6 +130,7 @@ module API
optional :gitaly_timeout_medium, type: Integer, desc: 'Medium Gitaly timeout, in seconds. Set to 0 to disable timeouts.'
optional :gitaly_timeout_fast, type: Integer, desc: 'Gitaly fast operation timeout, in seconds. Set to 0 to disable timeouts.'
optional :usage_ping_enabled, type: Boolean, desc: 'Every week GitLab will report license usage back to GitLab, Inc.'
+ optional :instance_statistics_visibility_private, type: Boolean, desc: 'When set to `true` Instance statistics will only be available to admins'
ApplicationSetting::SUPPORTED_KEY_TYPES.each do |type|
optional :"#{type}_key_restriction",