Class Cpu
java.lang.Object
co.elastic.clients.elasticsearch.nodes.Cpu
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class Cpu extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCpu.BuilderBuilder forCpu. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Cpu>_DESERIALIZERJson deserializer forCpu -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Double>loadAverage()API name:load_averagestatic Cpuof(java.util.function.Function<Cpu.Builder,ObjectBuilder<Cpu>> fn)java.lang.Integerpercent()API name:percentvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupCpuDeserializer(ObjectDeserializer<Cpu.Builder> op)java.lang.Stringsys()API name:sysjava.lang.LongsysInMillis()API name:sys_in_millisjava.lang.StringtoString()java.lang.Stringtotal()API name:totaljava.lang.LongtotalInMillis()API name:total_in_millisjava.lang.Stringuser()API name:userjava.lang.LonguserInMillis()API name:user_in_millisMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCpu
-
-
Method Details
-
of
-
percent
@Nullable public final java.lang.Integer percent()API name:percent -
sys
@Nullable public final java.lang.String sys()API name:sys -
sysInMillis
@Nullable public final java.lang.Long sysInMillis()API name:sys_in_millis -
total
@Nullable public final java.lang.String total()API name:total -
totalInMillis
@Nullable public final java.lang.Long totalInMillis()API name:total_in_millis -
user
@Nullable public final java.lang.String user()API name:user -
userInMillis
@Nullable public final java.lang.Long userInMillis()API name:user_in_millis -
loadAverage
public final java.util.Map<java.lang.String,java.lang.Double> loadAverage()API name:load_average -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupCpuDeserializer
-