Skip to content

Commit 82e6698

Browse files
fix(specs): nb_api_calls in getLogs response is optional (generated)
algolia/api-clients-automation#4142 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 2a29df2 commit 82e6698

File tree

1 file changed

+4
-4
lines changed
  • client/src/commonMain/kotlin/com/algolia/client/model/search

1 file changed

+4
-4
lines changed

client/src/commonMain/kotlin/com/algolia/client/model/search/Log.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import kotlinx.serialization.json.*
1616
* @param ip IP address of the client that performed the request.
1717
* @param queryHeaders Request headers (API keys are obfuscated).
1818
* @param sha1 SHA1 signature of the log entry.
19-
* @param nbApiCalls Number of API requests.
2019
* @param processingTimeMs Processing time for the query in milliseconds. This doesn't include latency due to the network.
20+
* @param nbApiCalls Number of API requests.
2121
* @param index Index targeted by the query.
2222
* @param queryParams Query parameters sent with the request.
2323
* @param queryNbHits Number of search results (hits) returned for the query.
@@ -53,12 +53,12 @@ public data class Log(
5353
/** SHA1 signature of the log entry. */
5454
@SerialName(value = "sha1") val sha1: String,
5555

56-
/** Number of API requests. */
57-
@SerialName(value = "nb_api_calls") val nbApiCalls: String,
58-
5956
/** Processing time for the query in milliseconds. This doesn't include latency due to the network. */
6057
@SerialName(value = "processing_time_ms") val processingTimeMs: String,
6158

59+
/** Number of API requests. */
60+
@SerialName(value = "nb_api_calls") val nbApiCalls: String? = null,
61+
6262
/** Index targeted by the query. */
6363
@SerialName(value = "index") val index: String? = null,
6464

0 commit comments

Comments
 (0)