Class ResourceStat
java.lang.Object
org.opensearch.client.opensearch._types.ResourceStat
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ResourceStat.Builder,ResourceStat>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ResourceStat
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ResourceStat.Builder,ResourceStat>
Any statistics about CPU and memory usage.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ResourceStat> Json deserializer forResourceStat -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceStat.Builderbuilder()final longRequired - API name:cpu_time_in_nanosbooleaninthashCode()final longRequired - API name:memory_in_bytesstatic ResourceStatvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.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 forResourceStat
-
-
Method Details
-
of
-
cpuTimeInNanos
public final long cpuTimeInNanos()Required - API name:cpu_time_in_nanos -
memoryInBytes
public final long memoryInBytes()Required - API name:memory_in_bytes -
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<ResourceStat.Builder,ResourceStat> - Returns:
- a new builder instance.
-
builder
-
setupResourceStatDeserializer
-
hashCode
public int hashCode() -
equals
-