We need to use a class other than Probe for the indirector because the Indirection class might declare some probes, and this would be a huge unbreakable dependency cycle.
# File lib/puppet/util/instrumentation/indirection_probe.rb, line 18 def to_data_hash { :name => probe_name } end
# File lib/puppet/util/instrumentation/indirection_probe.rb, line 29 def to_pson(*args) to_pson_data_hash.to_pson(*args) end
# File lib/puppet/util/instrumentation/indirection_probe.rb, line 22 def to_pson_data_hash { :document_type => "Puppet::Util::Instrumentation::IndirectionProbe", :data => to_data_hash, } end
# File lib/puppet/util/instrumentation/indirection_probe.rb, line 33 def self.from_data_hash(data) self.new(data["name"]) end
# File lib/puppet/util/instrumentation/indirection_probe.rb, line 37 def self.from_pson(data) Puppet.deprecation_warning("from_pson is being removed in favour of from_data_hash.") self.from_data_hash(data) end
# File lib/puppet/util/instrumentation/indirection_probe.rb, line 14 def initialize(probe_name) @probe_name = probe_name end