Package com.azure.ai.openai.models
Class BatchRequestCounts
java.lang.Object
com.azure.ai.openai.models.BatchRequestCounts
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchRequestCounts>
public final class BatchRequestCounts
extends Object
implements com.azure.json.JsonSerializable<BatchRequestCounts>
The BatchRequestCounts model.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchRequestCountsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchRequestCounts from the JsonReader.Get the completed property: Number of requests that have been completed successfully.Get the failed property: Number of requests that have failed.getTotal()Get the total property: Total number of requests in the batch.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getTotal
Get the total property: Total number of requests in the batch.- Returns:
- the total value.
-
getCompleted
Get the completed property: Number of requests that have been completed successfully.- Returns:
- the completed value.
-
getFailed
Get the failed property: Number of requests that have failed.- Returns:
- the failed value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchRequestCounts>- Throws:
IOException
-
fromJson
Reads an instance of BatchRequestCounts from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BatchRequestCounts if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the BatchRequestCounts.
-