Class: Monitoring::MonitoringRegistryFactory

Inherits:
Object
  • Object
show all
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

Class Method Details

.create(name, project_id, monitored_resource, gcm_service_address) ⇒ Object



196
197
198
199
# File 'lib/fluent/plugin/monitoring.rb', line 196

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



192
193
194
# File 'lib/fluent/plugin/monitoring.rb', line 192

def self.supports_monitoring_type(name)
  @known_registry_types.key?(name)
end