Class: UffizziCore::LogsService
- Inherits:
-
Object
- Object
- UffizziCore::LogsService
- Defined in:
- app/services/uffizzi_core/logs_service.rb
Constant Summary collapse
- NOT_ALLOWED_SYMBOLS_IN_NAME_REGEX =
/[^a-zA-Z0-9-]/.freeze
- DEFAULT_LOGS_LIMIT =
1000
Class Method Summary collapse
Class Method Details
.fetch_container_logs(container, query = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/services/uffizzi_core/logs_service.rb', line 8 def fetch_container_logs(container, query = {}) response = request_logs(container, query).result || {} response = Hashie::Mash.new(response) logs = response.logs || [] { logs: format_logs(logs), } end |