Class ClusterProcessCpu
java.lang.Object
co.elastic.clients.elasticsearch.cluster.stats.ClusterProcessCpu
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ClusterProcessCpu>Json deserializer forClusterProcessCpu -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterProcessCpufinal intpercent()Required - Percentage of CPU used across all selected nodes.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forClusterProcessCpu
-
-
Method Details
-
of
public static ClusterProcessCpu of(Function<ClusterProcessCpu.Builder, ObjectBuilder<ClusterProcessCpu>> fn) -
percent
public final int percent()Required - Percentage of CPU used across all selected nodes. Returns-1if not supported.API name:
percent -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupClusterProcessCpuDeserializer
protected static void setupClusterProcessCpuDeserializer(ObjectDeserializer<ClusterProcessCpu.Builder> op)
-