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 Summary
ConstructorsConstructorDescriptionSearchServiceStatistics(SearchServiceCounters counters, SearchServiceLimits limits) Creates an instance of SearchServiceStatistics class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchServiceStatisticsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchServiceStatistics from the JsonReader.Get the counters property: Service level resource counters.Get the limits property: Service level general limits.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
-
Constructor Details
-
SearchServiceStatistics
Creates an instance of SearchServiceStatistics class.- Parameters:
counters- the counters value to set.limits- the limits value to set.
-
-
Method Details
-
getCounters
Get the counters property: Service level resource counters.- Returns:
- the counters value.
-
getLimits
Get the limits property: Service level general limits.- Returns:
- the limits value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-