lib/elasticsearch/api/actions/indices/data_streams_stats.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/indices/data_streams_stats.rb in elasticsearch-api-8.1.0

- old
+ new

@@ -22,16 +22,17 @@ # Provides statistics on operations happening in a data stream. # # @option arguments [List] :name A comma-separated list of data stream names; use `_all` or empty string to perform the operation on all data streams # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/data-streams.html # def data_streams_stats(arguments = {}) - arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil + + arguments = arguments.clone _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_GET path = if _name