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



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