Class: AlertManagement::HttpIntegrationsFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/alert_management/http_integrations_finder.rb

Constant Summary collapse

TYPE_IDENTIFIERS =
::AlertManagement::HttpIntegration.type_identifiers

Instance Method Summary collapse

Constructor Details

#initialize(project, params = {}) ⇒ HttpIntegrationsFinder

Returns a new instance of HttpIntegrationsFinder.



7
8
9
10
# File 'app/finders/alert_management/http_integrations_finder.rb', line 7

def initialize(project, params = {})
  @project = project
  @params = params
end

Instance Method Details

#executeObject



12
13
14
15
16
17
18
19
20
21
# File 'app/finders/alert_management/http_integrations_finder.rb', line 12

def execute
  @collection = project.alert_management_http_integrations

  filter_by_availability
  filter_by_endpoint_identifier
  filter_by_active
  filter_by_type

  collection
end