Given an instance of ruby‘s Time class, this method converts it to a String that conforms to PuppetDB‘s wire format for representing a date/time.
Profile a block of code and log the time it took to execute.
This outputs logs entries to the Puppet masters logging destination providing the time it took, a message describing the profiled code and a leaf location marking where the profile method was called in the profiled hierachy.
@param message [String] A description of the profiled event @param metric_id [Array] A list of strings making up the ID of a metric to profile @param block [Block] The segment of code to profile @api public
Submit a command to PuppetDB.
@param certname [String] hostname name of puppetdb instance @param payload [String] payload @param command_name [String] name of command @param version [Number] version number of command @return [Hash <String, String>]