@@ -30,7 +30,6 @@ public UsageClient(String appId, String apiKey, ClientOptions options) {
30
30
private static List <Host > getDefaultHosts () {
31
31
List <Host > hosts = new ArrayList <>();
32
32
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 )));
34
33
return hosts ;
35
34
}
36
35
@@ -573,8 +572,8 @@ public CompletableFuture<Object> customPutAsync(@Nonnull String path) throws Alg
573
572
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
574
573
* `max_capacity` degraded queries. (required)
575
574
* @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)
578
577
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
579
578
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
580
579
* days. (optional, default to daily)
@@ -716,8 +715,8 @@ public IndexUsage getIndexUsage(
716
715
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
717
716
* `max_capacity` degraded queries. (required)
718
717
* @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)
721
720
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
722
721
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
723
722
* days. (optional, default to daily)
@@ -856,8 +855,8 @@ public IndexUsage getIndexUsage(
856
855
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
857
856
* `max_capacity` degraded queries. (required)
858
857
* @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)
861
860
* @param requestOptions The requestOptions to send along with the query, they will be merged with
862
861
* the transporter requestOptions.
863
862
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -995,8 +994,8 @@ public IndexUsage getIndexUsage(
995
994
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
996
995
* `max_capacity` degraded queries. (required)
997
996
* @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)
1000
999
* @throws AlgoliaRuntimeException If it fails to process the API call
1001
1000
*/
1002
1001
public IndexUsage getIndexUsage (
@@ -1131,8 +1130,8 @@ public IndexUsage getIndexUsage(
1131
1130
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
1132
1131
* `max_capacity` degraded queries. (required)
1133
1132
* @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)
1136
1135
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
1137
1136
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
1138
1137
* days. (optional, default to daily)
@@ -1289,8 +1288,8 @@ public CompletableFuture<IndexUsage> getIndexUsageAsync(
1289
1288
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
1290
1289
* `max_capacity` degraded queries. (required)
1291
1290
* @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)
1294
1293
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
1295
1294
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
1296
1295
* days. (optional, default to daily)
@@ -1429,8 +1428,8 @@ public CompletableFuture<IndexUsage> getIndexUsageAsync(
1429
1428
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
1430
1429
* `max_capacity` degraded queries. (required)
1431
1430
* @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)
1434
1433
* @param requestOptions The requestOptions to send along with the query, they will be merged with
1435
1434
* the transporter requestOptions.
1436
1435
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -1568,8 +1567,8 @@ public CompletableFuture<IndexUsage> getIndexUsageAsync(
1568
1567
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
1569
1568
* `max_capacity` degraded queries. (required)
1570
1569
* @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)
1573
1572
* @throws AlgoliaRuntimeException If it fails to process the API call
1574
1573
*/
1575
1574
public CompletableFuture <IndexUsage > getIndexUsageAsync (
@@ -1703,8 +1702,8 @@ public CompletableFuture<IndexUsage> getIndexUsageAsync(
1703
1702
* degraded queries due to all search threads being used. -
1704
1703
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
1705
1704
* `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)
1708
1707
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
1709
1708
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
1710
1709
* days. (optional, default to daily)
@@ -1844,8 +1843,8 @@ public IndexUsage getUsage(
1844
1843
* degraded queries due to all search threads being used. -
1845
1844
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
1846
1845
* `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)
1849
1848
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
1850
1849
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
1851
1850
* days. (optional, default to daily)
@@ -1978,8 +1977,8 @@ public IndexUsage getUsage(@Nonnull Statistic statistic, @Nonnull String startDa
1978
1977
* degraded queries due to all search threads being used. -
1979
1978
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
1980
1979
* `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)
1983
1982
* @param requestOptions The requestOptions to send along with the query, they will be merged with
1984
1983
* the transporter requestOptions.
1985
1984
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -2115,8 +2114,8 @@ public IndexUsage getUsage(
2115
2114
* degraded queries due to all search threads being used. -
2116
2115
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
2117
2116
* `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)
2120
2119
* @throws AlgoliaRuntimeException If it fails to process the API call
2121
2120
*/
2122
2121
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
2246
2245
* degraded queries due to all search threads being used. -
2247
2246
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
2248
2247
* `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)
2251
2250
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
2252
2251
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
2253
2252
* days. (optional, default to daily)
@@ -2400,8 +2399,8 @@ public CompletableFuture<IndexUsage> getUsageAsync(
2400
2399
* degraded queries due to all search threads being used. -
2401
2400
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
2402
2401
* `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)
2405
2404
* @param granularity Granularity of the aggregated metrics. - `hourly`: the maximum time range
2406
2405
* for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365
2407
2406
* days. (optional, default to daily)
@@ -2538,8 +2537,8 @@ public CompletableFuture<IndexUsage> getUsageAsync(
2538
2537
* degraded queries due to all search threads being used. -
2539
2538
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
2540
2539
* `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)
2543
2542
* @param requestOptions The requestOptions to send along with the query, they will be merged with
2544
2543
* the transporter requestOptions.
2545
2544
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -2675,8 +2674,8 @@ public CompletableFuture<IndexUsage> getUsageAsync(
2675
2674
* degraded queries due to all search threads being used. -
2676
2675
* `degraded_queries_max_capacity_seconds_impacted`. Percentage of seconds affected by
2677
2676
* `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)
2680
2679
* @throws AlgoliaRuntimeException If it fails to process the API call
2681
2680
*/
2682
2681
public CompletableFuture <IndexUsage > getUsageAsync (@ Nonnull Statistic statistic , @ Nonnull String startDate , @ Nonnull String endDate )
0 commit comments