BatchRequestCounts Class
- java.
lang. Object - com.
azure. ai. openai. models. BatchRequestCounts
- com.
Implements
public final class BatchRequestCounts
implements JsonSerializable<BatchRequestCounts>
The BatchRequestCounts model.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
Integer |
getCompleted()
Get the completed property: Number of requests that have been completed successfully. |
Integer |
getFailed()
Get the failed property: Number of requests that have failed. |
Integer |
getTotal()
Get the total property: Total number of requests in the batch. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static BatchRequestCounts fromJson(JsonReader jsonReader)
Reads an instance of BatchRequestCounts from the JsonReader.
Parameters:
Returns:
Throws:
getCompleted
public Integer getCompleted()
Get the completed property: Number of requests that have been completed successfully.
Returns:
getFailed
public Integer getFailed()
Get the failed property: Number of requests that have failed.
Returns:
getTotal
public Integer getTotal()
Get the total property: Total number of requests in the batch.
Returns:
toJson
Applies to
Azure SDK for Java