Class: Clusters::Applications::PrometheusConfigService
- Inherits:
-
Object
- Object
- Clusters::Applications::PrometheusConfigService
- Defined in:
- app/services/clusters/applications/prometheus_config_service.rb
Instance Method Summary collapse
- #execute(config = {}) ⇒ Object
-
#initialize(project, cluster, app) ⇒ PrometheusConfigService
constructor
A new instance of PrometheusConfigService.
Constructor Details
#initialize(project, cluster, app) ⇒ PrometheusConfigService
Returns a new instance of PrometheusConfigService.
6 7 8 9 10 |
# File 'app/services/clusters/applications/prometheus_config_service.rb', line 6 def initialize(project, cluster, app) @project = project @cluster = cluster @app = app end |
Instance Method Details
#execute(config = {}) ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/services/clusters/applications/prometheus_config_service.rb', line 12 def execute(config = {}) if has_alerts? generate_alert_manager(config) else reset_alert_manager(config) end end |