You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The collectd plugin 'aggregation' uses a sub-configurations on how to aggregate data from other plugins. In addition, the 'network' plugin uses multiple attributes in sub-configuration element.
Example:
This can be accomplished by modifying Line:63 of plugin_config.rb to:
elsif value.kind_of?(Hash) # rubocop:disable Style/ClassCheck
id = value.delete('id')
if !id.nil?
if id.is_a?(Array) # handle case where id is an array of attributes
id = id.map { |s| "\"#{s}\"" }.join(' ')
else
id = "\"#{id}\""
end
[%(#{tabs}<#{key} #{id}>),
write_elements(value, indent.next),
%(#{tabs}</#{key}>)
].join("\n")
else # add sub-configuration elements
[%(#{tabs}<#{key}>),
write_elements(value, indent.next),
%(#{tabs}</#{key}>)
].join("\n")
end
The collectd plugin 'aggregation' uses a sub-configurations on how to aggregate data from other plugins. In addition, the 'network' plugin uses multiple attributes in sub-configuration element.
Example:
This can be accomplished by modifying Line:63 of plugin_config.rb to:
And attributes using:
The text was updated successfully, but these errors were encountered: