Class: Chronicle::ApiLogsController
- Inherits:
-
ResourceController
- Object
- ActionController::API
- ApplicationController
- ResourceController
- Chronicle::ApiLogsController
- Defined in:
- app/controllers/chronicle/api_logs_controller.rb
Constant Summary collapse
- FILTER_DEFINITION =
{ user_id: :exact, request_id: :exact, device_os: :exact, device_id: :exact, device_type: :exact, ip_address: :exact, http_method: :exact, api_endpoint: :like, http_status_code: :exact, brand: :exact, device_model_name: :like, os_version: :exact, backend_version: :exact, client_version: :exact, time_zone: :exact, start_date: :date_range, end_date: :date_range, }.freeze
Constants included from Pagination
Pagination::DEFAULT_LIMIT, Pagination::MAX_LIMIT
Instance Method Summary collapse
Methods inherited from ResourceController
Methods included from Filterable
Methods included from Pagination
Instance Method Details
#distribution_metrics ⇒ Object
32 33 34 |
# File 'app/controllers/chronicle/api_logs_controller.rb', line 32 def distribution_metrics render json: ApiLogs::Metrics.distribution_metrics(filters: metrics_filters), status: :ok end |