Class: Monitoring::MonitoringRegistryFactory
- Inherits:
-
Object
- Object
- Monitoring::MonitoringRegistryFactory
- Defined in:
- lib/fluent/plugin/monitoring.rb
Overview
Factory that is used to create a monitoring registry based on the monitoring solution name.
Class Method Summary collapse
- .create(name, project_id, monitored_resource, gcm_service_address) ⇒ Object
- .supports_monitoring_type(name) ⇒ Object
Class Method Details
.create(name, project_id, monitored_resource, gcm_service_address) ⇒ Object
225 226 227 228 |
# File 'lib/fluent/plugin/monitoring.rb', line 225 def self.create(name, project_id, monitored_resource, gcm_service_address) registry = @known_registry_types[name] || BaseMonitoringRegistry registry.new(project_id, monitored_resource, gcm_service_address) end |
.supports_monitoring_type(name) ⇒ Object
221 222 223 |
# File 'lib/fluent/plugin/monitoring.rb', line 221 def self.supports_monitoring_type(name) @known_registry_types.key?(name) end |