Skip to content

Commit

Permalink
fix(specs): extend Analytics descriptions (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4360

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: gazconroy <gazconroyster@gmail.com>
Co-authored-by: Gary Conroy <gary.conroy@LON-M3P-GConroy.local>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
  • Loading branch information
4 people committed Jan 16, 2025
1 parent df54298 commit 44082c3
Show file tree
Hide file tree
Showing 21 changed files with 74 additions and 74 deletions.
84 changes: 42 additions & 42 deletions lib/algolia/api/analytics_client.rb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/daily_add_to_cart_rates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class DailyAddToCartRates
# Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Add-to-cart rate: calculated as the number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/daily_click_through_rates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class DailyClickThroughRates
# Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Click-through rate: calculated as the number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :rate

# Number of clicks associated with this search.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/daily_conversion_rates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class DailyConversionRates
# Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Conversion rate: calculated as the number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/daily_no_click_rates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class DailyNoClickRates
# No click rate, calculated as number of tracked searches without any click divided by the number of tracked searches.
# No click rate: calculated as the number of tracked searches without clicks divided by the number of tracked searches.
attr_accessor :rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/daily_no_results_rates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DailyNoResultsRates
# Number of searches.
attr_accessor :count

# No results rate, calculated as number of searches with zero results divided by the total number of searches.
# No results rate: calculated as the number of searches with zero results divided by the total number of searches.
attr_accessor :rate

# Attribute mapping from ruby-style variable name to JSON key.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/daily_purchase_rates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class DailyPurchaseRates
# Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Purchase rate: calculated as the number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/daily_revenue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class DailyRevenue
# Revenue associated with this search, broken-down by currencies.
# Revenue associated with this search: broken down by currency.
attr_accessor :currencies

# Date in the format YYYY-MM-DD.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class GetAddToCartRateResponse
# Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Add-to-cart rate: calculated as the number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class GetClickThroughRateResponse
# Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Click-through rate: calculated as the number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :rate

# Number of clicks associated with this search.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class GetConversionRateResponse
# Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Conversion rate: calculated as the number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/get_no_click_rate_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class GetNoClickRateResponse
# No click rate, calculated as number of tracked searches without any click divided by the number of tracked searches.
# No click rate: calculated as the number of tracked searches without clicks divided by the number of tracked searches.
attr_accessor :rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class GetNoResultsRateResponse
# No results rate, calculated as number of searches with zero results divided by the total number of searches.
# No results rate: calculated as the number of searches with zero results divided by the total number of searches.
attr_accessor :rate

# Number of searches.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/get_purchase_rate_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class GetPurchaseRateResponse
# Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Purchase rate: calculated as the number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/get_revenue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class GetRevenue
# Revenue associated with this search, broken-down by currencies.
# Revenue associated with this search: broken down by currency.
attr_accessor :currencies

# Daily revenue.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class GetTopFiltersNoResultsResponse
# Filters for searches without any results. If null, the search term specified with the `search` parameter is not a search without results, or the `search` parameter is absent from the request.
# Filters for searches without any results. If null, the search term specified with the `search` parameter isn't a search without results, or the `search` parameter is absent from the request.
attr_accessor :values

# Attribute mapping from ruby-style variable name to JSON key.
Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/top_hit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
class TopHit
# Object ID of a record that's returned as a search result.
# Object ID of a record returned as a search result.
attr_accessor :hit

# Number of occurrences.
Expand Down
6 changes: 3 additions & 3 deletions lib/algolia/models/analytics/top_hit_with_analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
module Algolia
module Analytics
class TopHitWithAnalytics
# Object ID of a record that's returned as a search result.
# Object ID of a record returned as a search result.
attr_accessor :hit

# Number of occurrences.
attr_accessor :count

# Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Click-through rate: calculated as the number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :click_through_rate

# Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Conversion rate: calculated as the number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :conversion_rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
12 changes: 6 additions & 6 deletions lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
module Algolia
module Analytics
class TopHitWithRevenueAnalytics
# Object ID of a record that's returned as a search result.
# Object ID of a record returned as a search result.
attr_accessor :hit

# Number of occurrences.
attr_accessor :count

# Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Click-through rate: calculated as the number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :click_through_rate

# Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Conversion rate: calculated as the number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :conversion_rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand All @@ -27,19 +27,19 @@ class TopHitWithRevenueAnalytics
# Number of conversions from this search.
attr_accessor :conversion_count

# Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Add-to-cart rate: calculated as the number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :add_to_cart_rate

# Number of add-to-cart events from this search.
attr_accessor :add_to_cart_count

# Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Purchase rate: calculated as the number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :purchase_rate

# Number of purchase events from this search.
attr_accessor :purchase_count

# Revenue associated with this search, broken-down by currencies.
# Revenue associated with this search: broken down by currency.
attr_accessor :currencies

# Attribute mapping from ruby-style variable name to JSON key.
Expand Down
4 changes: 2 additions & 2 deletions lib/algolia/models/analytics/top_search_with_analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TopSearchWithAnalytics
# Number of searches.
attr_accessor :count

# Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Click-through rate: calculated as the number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :click_through_rate

# Average position of a clicked search result in the list of search results. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
Expand All @@ -21,7 +21,7 @@ class TopSearchWithAnalytics
# List of positions in the search results and clicks associated with this search.
attr_accessor :click_positions

# Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Conversion rate: calculated as the number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :conversion_rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TopSearchWithRevenueAnalytics
# Number of searches.
attr_accessor :count

# Click-through rate, calculated as number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Click-through rate: calculated as the number of tracked searches with at least one click event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :click_through_rate

# Average position of a clicked search result in the list of search results. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
Expand All @@ -21,7 +21,7 @@ class TopSearchWithRevenueAnalytics
# List of positions in the search results and clicks associated with this search.
attr_accessor :click_positions

# Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Conversion rate: calculated as the number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :conversion_rate

# Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
Expand All @@ -36,16 +36,16 @@ class TopSearchWithRevenueAnalytics
# Number of results (hits).
attr_accessor :nb_hits

# Revenue associated with this search, broken-down by currencies.
# Revenue associated with this search: broken down by currency.
attr_accessor :currencies

# Add-to-cart rate, calculated as number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Add-to-cart rate: calculated as the number of tracked searches with at least one add-to-cart event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :add_to_cart_rate

# Number of add-to-cart events from this search.
attr_accessor :add_to_cart_count

# Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
# Purchase rate: calculated as the number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
attr_accessor :purchase_rate

# Number of purchase events from this search.
Expand Down

0 comments on commit 44082c3

Please sign in to comment.