Freigeben über


SearchServiceStatistics Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.SearchServiceStatistics

Implements

public final class SearchServiceStatistics
implements JsonSerializable<SearchServiceStatistics>

Response from a get service statistics request. If successful, it includes service level counters and limits.

Constructor Summary

Constructor Description
SearchServiceStatistics(SearchServiceCounters counters, SearchServiceLimits limits)

Creates an instance of SearchServiceStatistics class.

Method Summary

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

Reads an instance of SearchServiceStatistics from the JsonReader.

SearchServiceCounters getCounters()

Get the counters property: Service level resource counters.

SearchServiceLimits getLimits()

Get the limits property: Service level general limits.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

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

fromJson

public static SearchServiceStatistics fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to