IndexerRuntime Class

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

Implements

public final class IndexerRuntime
implements JsonSerializable<IndexerRuntime>

Represents the indexer's cumulative runtime consumption in the service.

Method Summary

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

Reads an instance of IndexerRuntime from the JsonReader.

OffsetDateTime getBeginningTime()

Get the beginningTime property: Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive).

OffsetDateTime getEndingTime()

Get the endingTime property: End UTC time of the 24-hour period considered for indexer runtime usage (inclusive).

Long getRemainingSeconds()

Get the remainingSeconds property: Cumulative runtime remaining for all indexers in the service from the beginningTime to endingTime, in seconds.

long getUsedSeconds()

Get the usedSeconds property: Cumulative runtime of the indexer from the beginningTime to endingTime, in seconds.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static IndexerRuntime fromJson(JsonReader jsonReader)

Reads an instance of IndexerRuntime from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IndexerRuntime 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.

getBeginningTime

public OffsetDateTime getBeginningTime()

Get the beginningTime property: Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive).

Returns:

the beginningTime value.

getEndingTime

public OffsetDateTime getEndingTime()

Get the endingTime property: End UTC time of the 24-hour period considered for indexer runtime usage (inclusive).

Returns:

the endingTime value.

getRemainingSeconds

public Long getRemainingSeconds()

Get the remainingSeconds property: Cumulative runtime remaining for all indexers in the service from the beginningTime to endingTime, in seconds.

Returns:

the remainingSeconds value.

getUsedSeconds

public long getUsedSeconds()

Get the usedSeconds property: Cumulative runtime of the indexer from the beginningTime to endingTime, in seconds.

Returns:

the usedSeconds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to