diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-24 00:09:24 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-24 00:09:24 +0000 |
commit | 2711c26beaca6c3a5a3be4b65e01557faf0185b6 (patch) | |
tree | 25d0c2ddb47e87712044884f558a9104c686805f /app/services/pod_logs | |
parent | 8a7aaf86831d2a556578ae558a4fcab8bb659b20 (diff) | |
download | gitlab-ce-2711c26beaca6c3a5a3be4b65e01557faf0185b6.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/pod_logs')
-rw-r--r-- | app/services/pod_logs/elasticsearch_service.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/services/pod_logs/elasticsearch_service.rb b/app/services/pod_logs/elasticsearch_service.rb index 11862de4ade..0a5185999ab 100644 --- a/app/services/pod_logs/elasticsearch_service.rb +++ b/app/services/pod_logs/elasticsearch_service.rb @@ -16,7 +16,7 @@ module PodLogs private def valid_params - super + %w(search start end cursor) + super + %w(search start_time end_time cursor) end def success_return_keys @@ -24,8 +24,8 @@ module PodLogs end def check_times(result) - result[:start] = params['start'] if params.key?('start') && Time.iso8601(params['start']) - result[:end] = params['end'] if params.key?('end') && Time.iso8601(params['end']) + result[:start_time] = params['start_time'] if params.key?('start_time') && Time.iso8601(params['start_time']) + result[:end_time] = params['end_time'] if params.key?('end_time') && Time.iso8601(params['end_time']) success(result) rescue ArgumentError @@ -53,8 +53,8 @@ module PodLogs pod_name: result[:pod_name], container_name: result[:container_name], search: result[:search], - start_time: result[:start], - end_time: result[:end], + start_time: result[:start_time], + end_time: result[:end_time], cursor: result[:cursor] ) |