lib/elasticsearch/api/actions/nodes/usage.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/nodes/usage.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -24,16 +24,17 @@
# @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
# @option arguments [List] :metric Limit the information returned to the specified metrics (options: _all, rest_actions)
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/cluster-nodes-usage.html
#
def usage(arguments = {})
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
+
+ arguments = arguments.clone
_node_id = arguments.delete(:node_id)
_metric = arguments.delete(:metric)