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 Type
    Method
    Description
    fromJson(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.
    Get the total property: Total number of requests in the batch.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • getTotal

      public Integer getTotal()
      Get the total property: Total number of requests in the batch.
      Returns:
      the total value.
    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchRequestCounts>
      Throws:
      IOException
    • fromJson

      public static BatchRequestCounts fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.