2021-04-07 00:09:26 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Clusters
|
|
|
|
class IntegrationPresenter < Gitlab::View::Presenter::Delegated
|
2021-09-21 09:12:21 +00:00
|
|
|
presents ::Clusters::Integrations::Prometheus, ::Clusters::Integrations::ElasticStack, as: :integration
|
2021-04-07 00:09:26 +00:00
|
|
|
|
|
|
|
def application_type
|
2021-04-15 12:09:05 +00:00
|
|
|
integration.class.name.demodulize.underscore
|
2021-04-07 00:09:26 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|