[PLT-5465/APIV4] GET /system/health - Improve ping health check to have limits (#6331)

* implement PLT-5465 - Improve ping health check to have limits

* update /ping and delete /health

* remove permission check
Этот коммит содержится в:
Carlos Tadeu Panato Junior
2017-05-31 06:47:27 +02:00
коммит произвёл Corey Hulen
родитель 0e4add96ae
Коммит ddc996f33f
6 изменённых файлов: 53 добавлений и 13 удалений

Просмотреть файл

@@ -126,6 +126,7 @@ type ServiceSettings struct {
ReadTimeout *int
WriteTimeout *int
MaximumLoginAttempts int
GoroutineHealthThreshold *int
GoogleDeveloperKey string
EnableOAuthServiceProvider bool
EnableIncomingWebhooks bool
@@ -1170,6 +1171,11 @@ func (o *Config) SetDefaults() {
*o.RateLimitSettings.Enable = false
}
if o.ServiceSettings.GoroutineHealthThreshold == nil {
o.ServiceSettings.GoroutineHealthThreshold = new(int)
*o.ServiceSettings.GoroutineHealthThreshold = -1
}
if o.RateLimitSettings.MaxBurst == nil {
o.RateLimitSettings.MaxBurst = new(int)
*o.RateLimitSettings.MaxBurst = 100