Skip to content

Commit 94bdf3f

Browse files
algolia-botkai687shortcuts
committed
fix(specs): usage api (generated)
algolia/api-clients-automation#3624 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 3ff24d1 commit 94bdf3f

File tree

3 files changed

+40
-49
lines changed

3 files changed

+40
-49
lines changed

algoliasearch/src/main/java/com/algolia/api/InsightsClient.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,7 @@ public CompletableFuture<Object> customPutAsync(@Nonnull String path) throws Alg
479479
/**
480480
* Deletes all events related to the specified user token from events metrics and analytics. The
481481
* deletion is asynchronous, and processed within 48 hours. To delete a personalization user
482-
* profile, see [Delete a user
483-
* profile](/specs/personalization#tag/profiles/operation/deleteUserProfile).
482+
* profile, see `Delete a user profile` in the Personalization API.
484483
*
485484
* @param userToken User token for which to delete all associated events. (required)
486485
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -495,8 +494,7 @@ public void deleteUserToken(@Nonnull String userToken, RequestOptions requestOpt
495494
/**
496495
* Deletes all events related to the specified user token from events metrics and analytics. The
497496
* deletion is asynchronous, and processed within 48 hours. To delete a personalization user
498-
* profile, see [Delete a user
499-
* profile](/specs/personalization#tag/profiles/operation/deleteUserProfile).
497+
* profile, see `Delete a user profile` in the Personalization API.
500498
*
501499
* @param userToken User token for which to delete all associated events. (required)
502500
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -508,8 +506,7 @@ public void deleteUserToken(@Nonnull String userToken) throws AlgoliaRuntimeExce
508506
/**
509507
* (asynchronously) Deletes all events related to the specified user token from events metrics and
510508
* analytics. The deletion is asynchronous, and processed within 48 hours. To delete a
511-
* personalization user profile, see [Delete a user
512-
* profile](/specs/personalization#tag/profiles/operation/deleteUserProfile).
509+
* personalization user profile, see `Delete a user profile` in the Personalization API.
513510
*
514511
* @param userToken User token for which to delete all associated events. (required)
515512
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -527,8 +524,7 @@ public CompletableFuture<Void> deleteUserTokenAsync(@Nonnull String userToken, R
527524
/**
528525
* (asynchronously) Deletes all events related to the specified user token from events metrics and
529526
* analytics. The deletion is asynchronous, and processed within 48 hours. To delete a
530-
* personalization user profile, see [Delete a user
531-
* profile](/specs/personalization#tag/profiles/operation/deleteUserProfile).
527+
* personalization user profile, see `Delete a user profile` in the Personalization API.
532528
*
533529
* @param userToken User token for which to delete all associated events. (required)
534530
* @throws AlgoliaRuntimeException If it fails to process the API call

algoliasearch/src/main/java/com/algolia/api/QuerySuggestionsClient.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,7 @@ public CompletableFuture<Object> customPutAsync(@Nonnull String path) throws Alg
527527
/**
528528
* Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops
529529
* updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the
530-
* Search API and the [Delete an index](/specs/search#tag/Indices/operation/deleteIndex)
531-
* operation.
530+
* Search API and the `Delete an index` operation.
532531
*
533532
* @param indexName Query Suggestions index name. (required)
534533
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -542,8 +541,7 @@ public BaseResponse deleteConfig(@Nonnull String indexName, RequestOptions reque
542541
/**
543542
* Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops
544543
* updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the
545-
* Search API and the [Delete an index](/specs/search#tag/Indices/operation/deleteIndex)
546-
* operation.
544+
* Search API and the `Delete an index` operation.
547545
*
548546
* @param indexName Query Suggestions index name. (required)
549547
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -555,8 +553,7 @@ public BaseResponse deleteConfig(@Nonnull String indexName) throws AlgoliaRuntim
555553
/**
556554
* (asynchronously) Deletes a Query Suggestions configuration. Deleting only removes the
557555
* configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions
558-
* index itself, use the Search API and the [Delete an
559-
* index](/specs/search#tag/Indices/operation/deleteIndex) operation.
556+
* index itself, use the Search API and the `Delete an index` operation.
560557
*
561558
* @param indexName Query Suggestions index name. (required)
562559
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -574,8 +571,7 @@ public CompletableFuture<BaseResponse> deleteConfigAsync(@Nonnull String indexNa
574571
/**
575572
* (asynchronously) Deletes a Query Suggestions configuration. Deleting only removes the
576573
* configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions
577-
* index itself, use the Search API and the [Delete an
578-
* index](/specs/search#tag/Indices/operation/deleteIndex) operation.
574+
* index itself, use the Search API and the `Delete an index` operation.
579575
*
580576
* @param indexName Query Suggestions index name. (required)
581577
* @throws AlgoliaRuntimeException If it fails to process the API call

algoliasearch/src/main/java/com/algolia/api/UsageClient.java

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public UsageClient(String appId, String apiKey, ClientOptions options) {
3030
private static List<Host> getDefaultHosts() {
3131
List<Host> hosts = new ArrayList<>();
3232
hosts.add(new Host("usage.algolia.com", EnumSet.of(CallType.READ, CallType.WRITE)));
33-
hosts.add(new Host("usage-dev.algolia.com", EnumSet.of(CallType.READ, CallType.WRITE)));
3433
return hosts;
3534
}
3635

@@ -573,8 +572,8 @@ public CompletableFuture<Object> customPutAsync(@Nonnull String path) throws Alg
573572
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
574573
* `max_capacity` degraded queries. (required)
575574
* @param indexName Name of the index on which to perform the operation. (required)
576-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
577-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
575+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
576+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
578577
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
579578
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
580579
* days. (optional, default to daily)
@@ -716,8 +715,8 @@ public IndexUsage getIndexUsage(
716715
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
717716
* `max_capacity` degraded queries. (required)
718717
* @param indexName Name of the index on which to perform the operation. (required)
719-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
720-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
718+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
719+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
721720
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
722721
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
723722
* days. (optional, default to daily)
@@ -856,8 +855,8 @@ public IndexUsage getIndexUsage(
856855
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
857856
* `max_capacity` degraded queries. (required)
858857
* @param indexName Name of the index on which to perform the operation. (required)
859-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
860-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
858+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
859+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
861860
* @param requestOptions The requestOptions to send along with the query, they will be merged with
862861
* the transporter requestOptions.
863862
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -995,8 +994,8 @@ public IndexUsage getIndexUsage(
995994
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
996995
* `max_capacity` degraded queries. (required)
997996
* @param indexName Name of the index on which to perform the operation. (required)
998-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
999-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
997+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
998+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
1000999
* @throws AlgoliaRuntimeException If it fails to process the API call
10011000
*/
10021001
public IndexUsage getIndexUsage(
@@ -1131,8 +1130,8 @@ public IndexUsage getIndexUsage(
11311130
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
11321131
* `max_capacity` degraded queries. (required)
11331132
* @param indexName Name of the index on which to perform the operation. (required)
1134-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
1135-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
1133+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
1134+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
11361135
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
11371136
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
11381137
* days. (optional, default to daily)
@@ -1289,8 +1288,8 @@ public CompletableFuture<IndexUsage> getIndexUsageAsync(
12891288
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
12901289
* `max_capacity` degraded queries. (required)
12911290
* @param indexName Name of the index on which to perform the operation. (required)
1292-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
1293-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
1291+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
1292+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
12941293
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
12951294
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
12961295
* days. (optional, default to daily)
@@ -1429,8 +1428,8 @@ public CompletableFuture<IndexUsage> getIndexUsageAsync(
14291428
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
14301429
* `max_capacity` degraded queries. (required)
14311430
* @param indexName Name of the index on which to perform the operation. (required)
1432-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
1433-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
1431+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
1432+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
14341433
* @param requestOptions The requestOptions to send along with the query, they will be merged with
14351434
* the transporter requestOptions.
14361435
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -1568,8 +1567,8 @@ public CompletableFuture<IndexUsage> getIndexUsageAsync(
15681567
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
15691568
* `max_capacity` degraded queries. (required)
15701569
* @param indexName Name of the index on which to perform the operation. (required)
1571-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
1572-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
1570+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
1571+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
15731572
* @throws AlgoliaRuntimeException If it fails to process the API call
15741573
*/
15751574
public CompletableFuture<IndexUsage> getIndexUsageAsync(
@@ -1703,8 +1702,8 @@ public CompletableFuture<IndexUsage> getIndexUsageAsync(
17031702
* degraded queries due to all search threads being used. -
17041703
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
17051704
* `max_capacity` degraded queries. (required)
1706-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
1707-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
1705+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
1706+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
17081707
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
17091708
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
17101709
* days. (optional, default to daily)
@@ -1844,8 +1843,8 @@ public IndexUsage getUsage(
18441843
* degraded queries due to all search threads being used. -
18451844
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
18461845
* `max_capacity` degraded queries. (required)
1847-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
1848-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
1846+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
1847+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
18491848
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
18501849
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
18511850
* days. (optional, default to daily)
@@ -1978,8 +1977,8 @@ public IndexUsage getUsage(@Nonnull Statistic statistic, @Nonnull String startDa
19781977
* degraded queries due to all search threads being used. -
19791978
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
19801979
* `max_capacity` degraded queries. (required)
1981-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
1982-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
1980+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
1981+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
19831982
* @param requestOptions The requestOptions to send along with the query, they will be merged with
19841983
* the transporter requestOptions.
19851984
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -2115,8 +2114,8 @@ public IndexUsage getUsage(
21152114
* degraded queries due to all search threads being used. -
21162115
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
21172116
* `max_capacity` degraded queries. (required)
2118-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
2119-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
2117+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
2118+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
21202119
* @throws AlgoliaRuntimeException If it fails to process the API call
21212120
*/
21222121
public IndexUsage getUsage(@Nonnull Statistic statistic, @Nonnull String startDate, @Nonnull String endDate)
@@ -2246,8 +2245,8 @@ public IndexUsage getUsage(@Nonnull Statistic statistic, @Nonnull String startDa
22462245
* degraded queries due to all search threads being used. -
22472246
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
22482247
* `max_capacity` degraded queries. (required)
2249-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
2250-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
2248+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
2249+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
22512250
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
22522251
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
22532252
* days. (optional, default to daily)
@@ -2400,8 +2399,8 @@ public CompletableFuture<IndexUsage> getUsageAsync(
24002399
* degraded queries due to all search threads being used. -
24012400
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
24022401
* `max_capacity` degraded queries. (required)
2403-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
2404-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
2402+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
2403+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
24052404
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
24062405
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
24072406
* days. (optional, default to daily)
@@ -2538,8 +2537,8 @@ public CompletableFuture<IndexUsage> getUsageAsync(
25382537
* degraded queries due to all search threads being used. -
25392538
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
25402539
* `max_capacity` degraded queries. (required)
2541-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
2542-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
2540+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
2541+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
25432542
* @param requestOptions The requestOptions to send along with the query, they will be merged with
25442543
* the transporter requestOptions.
25452544
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -2675,8 +2674,8 @@ public CompletableFuture<IndexUsage> getUsageAsync(
26752674
* degraded queries due to all search threads being used. -
26762675
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
26772676
* `max_capacity` degraded queries. (required)
2678-
* @param startDate Start date of the period to analyze, in `YYYY-MM-DD` format. (required)
2679-
* @param endDate End date of the period to analyze, in `YYYY-MM-DD` format. (required)
2677+
* @param startDate Start date of the period to analyze, in RFC 3339 format. (required)
2678+
* @param endDate End date of the period to analyze, in RFC 3339 format. (required)
26802679
* @throws AlgoliaRuntimeException If it fails to process the API call
26812680
*/
26822681
public CompletableFuture<IndexUsage> getUsageAsync(@Nonnull Statistic statistic, @Nonnull String startDate, @Nonnull String endDate)

0 commit comments

Comments
 (0)