Class RequestStats
java.lang.Object
org.opensearch.client.opensearch._types.RequestStats
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RequestStats.Builder,RequestStats>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RequestStats
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<RequestStats.Builder,RequestStats>
The statistics about request operations.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RequestStats> Json deserializer forRequestStats -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestStats.Builderbuilder()final Longcurrent()The number of current request operations.booleaninthashCode()static RequestStatsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Timetime()The total time spent on request operations.final LongThe total time spent on request operations in milliseconds.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Longtotal()The total number of request operations.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRequestStats
-
-
Method Details
-
of
-
current
The number of current request operations.API name:
current -
time
The total time spent on request operations.API name:
time -
timeInMillis
The total time spent on request operations in milliseconds.API name:
time_in_millis -
total
The total number of request operations.API name:
total -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RequestStats.Builder,RequestStats> - Returns:
- a new builder instance.
-
builder
-
setupRequestStatsDeserializer
-
hashCode
public int hashCode() -
equals
-