lib/elastic/app-search/api/count_analytics.rb in elastic-enterprise-search-7.17.1 vs lib/elastic/app-search/api/count_analytics.rb in elastic-enterprise-search-8.0.0.pre

- old
+ new

@@ -22,24 +22,24 @@ module AppSearch module Actions # Analytics - Query for analytics counts data # Returns the number of clicks and total number of queries over a period # - # @param engine_name [String] Name of the engine (*Required*) - # @param arguments [Hash] endpoint arguments + # @param [String] engine_name Name of the engine (*Required*) + # @param [Hash] arguments endpoint arguments # @option arguments [Hash] :body - # @option body :filters Analytics filters - # @option body [String] :interval You can define an interval along with your date range. Can be either hour or day + # @option body :filters + # @option body [string] :interval # @option arguments [Hash] :headers optional HTTP headers to send with the request # # @see https://www.elastic.co/guide/en/app-search/current/counts.html # def count_analytics(engine_name, arguments = {}) raise ArgumentError, "Required parameter 'engine_name' missing" unless engine_name body = arguments.delete(:body) || {} - headers = arguments.delete(:headers) || {} + headers = arguments.delete(:headers) || {} request( :post, "api/as/v1/engines/#{engine_name}/analytics/counts/", arguments, body,