BatchRequestCounts Class

  • java.lang.Object
    • com.azure.ai.openai.models.BatchRequestCounts

Implements

public final class BatchRequestCounts
implements JsonSerializable<BatchRequestCounts>

The BatchRequestCounts model.

Method Summary

Modifier and Type Method and Description
static BatchRequestCounts fromJson(JsonReader jsonReader)

Reads an instance of BatchRequestCounts from the JsonReader.

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.

JsonWriter 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:

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.

getCompleted

public Integer getCompleted()

Get the completed property: Number of requests that have been completed successfully.

Returns:

the completed value.

getFailed

public Integer getFailed()

Get the failed property: Number of requests that have failed.

Returns:

the failed value.

getTotal

public Integer getTotal()

Get the total property: Total number of requests in the batch.

Returns:

the total value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to