Class SearchServiceStatistics

java.lang.Object
com.azure.search.documents.indexes.models.SearchServiceStatistics
All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchServiceStatistics>

public final class SearchServiceStatistics extends Object implements com.azure.json.JsonSerializable<SearchServiceStatistics>
Response from a get service statistics request. If successful, it includes service level counters and limits.
  • Constructor Details

    • SearchServiceStatistics

      public SearchServiceStatistics(SearchServiceCounters counters, SearchServiceLimits limits)
      Creates an instance of SearchServiceStatistics class.
      Parameters:
      counters - the counters value to set.
      limits - the limits value to set.
  • Method Details

    • getCounters

      public SearchServiceCounters getCounters()
      Get the counters property: Service level resource counters.
      Returns:
      the counters value.
    • getLimits

      public SearchServiceLimits getLimits()
      Get the limits property: Service level general limits.
      Returns:
      the limits value.
    • toJson

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

      public static SearchServiceStatistics fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SearchServiceStatistics from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SearchServiceStatistics if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the SearchServiceStatistics.