Class: ErrorTracking::BaseService
- Inherits:
-
BaseProjectService
- Object
- BaseContainerService
- BaseProjectService
- ErrorTracking::BaseService
- Includes:
- Gitlab::Utils::UsageData
- Defined in:
- app/services/error_tracking/base_service.rb
Direct Known Subclasses
IssueDetailsService, IssueLatestEventService, IssueUpdateService, ListIssuesService, ListProjectsService
Constant Summary
Constants included from Gitlab::Utils::UsageData
Gitlab::Utils::UsageData::DISTRIBUTED_HLL_FALLBACK, Gitlab::Utils::UsageData::FALLBACK, Gitlab::Utils::UsageData::HISTOGRAM_FALLBACK, Gitlab::Utils::UsageData::MAX_BUCKET_SIZE
Instance Attribute Summary
Attributes inherited from BaseProjectService
Attributes inherited from BaseContainerService
#container, #current_user, #group, #params, #project
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project, user = nil, params = {}) ⇒ BaseService
constructor
A new instance of BaseService.
Methods included from Gitlab::Utils::UsageData
#add, #add_metric, #alt_usage_data, #average, #count, #distinct_count, #estimate_batch_distinct_count, #histogram, #maximum_id, #measure_duration, #minimum_id, #redis_usage_data, #sum, #track_usage_event, #with_finished_at, #with_metadata, #with_prometheus_client
Methods inherited from BaseContainerService
#group_container?, #namespace_container?, #project_container?, #project_group, #root_ancestor
Methods included from BaseServiceUtility
#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level
Methods included from Gitlab::Allowable
Constructor Details
#initialize(project, user = nil, params = {}) ⇒ BaseService
Returns a new instance of BaseService.
7 8 9 |
# File 'app/services/error_tracking/base_service.rb', line 7 def initialize(project, user = nil, params = {}) super(project: project, current_user: user, params: params.dup) end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 |
# File 'app/services/error_tracking/base_service.rb', line 11 def execute return if perform end |