Class SearchServiceCounters
java.lang.Object
com.azure.search.documents.indexes.models.SearchServiceCounters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchServiceCounters>
public final class SearchServiceCounters
extends Object
implements com.azure.json.JsonSerializable<SearchServiceCounters>
Represents service-level resource counters and quotas.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchServiceCounters(ResourceCounter documentCounter, ResourceCounter indexCounter, ResourceCounter indexerCounter, ResourceCounter dataSourceCounter, ResourceCounter storageSizeCounter, ResourceCounter synonymMapCounter) Creates an instance of SearchServiceCounters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchServiceCountersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchServiceCounters from the JsonReader.Get the aliasCounter property: Total number of aliases.Get the dataSourceCounter property: Total number of data sources.Get the documentCounter property: Total number of documents across all indexes in the service.Get the indexCounter property: Total number of indexes.Get the indexerCounter property: Total number of indexers.Get the skillsetCounter property: Total number of skillsets.Get the storageSizeCounter property: Total size of used storage in bytes.Get the synonymMapCounter property: Total number of synonym maps.Get the vectorIndexSizeCounter property: Total memory consumption of all vector indexes within the service, in bytes.setAliasCounter(ResourceCounter aliasCounter) Set the aliasCounter property: Total number of aliases.setSkillsetCounter(ResourceCounter skillsetCounter) Set the skillsetCounter property: Total number of skillsets.setVectorIndexSizeCounter(ResourceCounter vectorIndexSizeCounter) Set the vectorIndexSizeCounter property: Total memory consumption of all vector indexes within the service, in bytes.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
-
SearchServiceCounters
public SearchServiceCounters(ResourceCounter documentCounter, ResourceCounter indexCounter, ResourceCounter indexerCounter, ResourceCounter dataSourceCounter, ResourceCounter storageSizeCounter, ResourceCounter synonymMapCounter) Creates an instance of SearchServiceCounters class.- Parameters:
documentCounter- the documentCounter value to set.indexCounter- the indexCounter value to set.indexerCounter- the indexerCounter value to set.dataSourceCounter- the dataSourceCounter value to set.storageSizeCounter- the storageSizeCounter value to set.synonymMapCounter- the synonymMapCounter value to set.
-
-
Method Details
-
getAliasCounter
Get the aliasCounter property: Total number of aliases.- Returns:
- the aliasCounter value.
-
setAliasCounter
Set the aliasCounter property: Total number of aliases.- Parameters:
aliasCounter- the aliasCounter value to set.- Returns:
- the SearchServiceCounters object itself.
-
getDocumentCounter
Get the documentCounter property: Total number of documents across all indexes in the service.- Returns:
- the documentCounter value.
-
getIndexCounter
Get the indexCounter property: Total number of indexes.- Returns:
- the indexCounter value.
-
getIndexerCounter
Get the indexerCounter property: Total number of indexers.- Returns:
- the indexerCounter value.
-
getDataSourceCounter
Get the dataSourceCounter property: Total number of data sources.- Returns:
- the dataSourceCounter value.
-
getStorageSizeCounter
Get the storageSizeCounter property: Total size of used storage in bytes.- Returns:
- the storageSizeCounter value.
-
getSynonymMapCounter
Get the synonymMapCounter property: Total number of synonym maps.- Returns:
- the synonymMapCounter value.
-
getSkillsetCounter
Get the skillsetCounter property: Total number of skillsets.- Returns:
- the skillsetCounter value.
-
setSkillsetCounter
Set the skillsetCounter property: Total number of skillsets.- Parameters:
skillsetCounter- the skillsetCounter value to set.- Returns:
- the SearchServiceCounters object itself.
-
getVectorIndexSizeCounter
Get the vectorIndexSizeCounter property: Total memory consumption of all vector indexes within the service, in bytes.- Returns:
- the vectorIndexSizeCounter value.
-
setVectorIndexSizeCounter
Set the vectorIndexSizeCounter property: Total memory consumption of all vector indexes within the service, in bytes.- Parameters:
vectorIndexSizeCounter- the vectorIndexSizeCounter value to set.- Returns:
- the SearchServiceCounters object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchServiceCounters>- Throws:
IOException
-
fromJson
public static SearchServiceCounters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SearchServiceCounters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchServiceCounters 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 SearchServiceCounters.
-