Class HealthRecord
java.lang.Object
co.elastic.clients.elasticsearch.cat.health.HealthRecord
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class HealthRecord extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HealthRecord.Builder
Builder forHealthRecord
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<HealthRecord>
_DESERIALIZER
Json deserializer forHealthRecord
-
Method Summary
Modifier and Type Method Description java.lang.String
activeShardsPercent()
active number of shards in percentjava.lang.String
cluster()
cluster namejava.lang.String
epoch()
seconds since 1969-01-01 00:00:00java.lang.String
init()
number of initializing nodesjava.lang.String
maxTaskWaitTime()
wait time of longest task pendingjava.lang.String
nodeData()
number of nodes that can store datajava.lang.String
nodeTotal()
total number of nodesstatic HealthRecord
of(java.util.function.Function<HealthRecord.Builder,ObjectBuilder<HealthRecord>> fn)
java.lang.String
pendingTasks()
number of pending tasksjava.lang.String
pri()
number of primary shardsjava.lang.String
relo()
number of relocating nodesvoid
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupHealthRecordDeserializer(ObjectDeserializer<HealthRecord.Builder> op)
java.lang.String
shards()
total number of shardsjava.lang.String
status()
health statusjava.lang.String
timestamp()
time in HH:MM:SSjava.lang.String
unassign()
number of unassigned shardsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forHealthRecord
-
-
Method Details
-
of
public static HealthRecord of(java.util.function.Function<HealthRecord.Builder,ObjectBuilder<HealthRecord>> fn) -
epoch
@Nullable public final java.lang.String epoch()seconds since 1969-01-01 00:00:00API name:
epoch
-
timestamp
@Nullable public final java.lang.String timestamp()time in HH:MM:SSAPI name:
timestamp
-
cluster
@Nullable public final java.lang.String cluster()cluster nameAPI name:
cluster
-
status
@Nullable public final java.lang.String status()health statusAPI name:
status
-
nodeTotal
@Nullable public final java.lang.String nodeTotal()total number of nodesAPI name:
node.total
-
nodeData
@Nullable public final java.lang.String nodeData()number of nodes that can store dataAPI name:
node.data
-
shards
@Nullable public final java.lang.String shards()total number of shardsAPI name:
shards
-
pri
@Nullable public final java.lang.String pri()number of primary shardsAPI name:
pri
-
relo
@Nullable public final java.lang.String relo()number of relocating nodesAPI name:
relo
-
init
@Nullable public final java.lang.String init()number of initializing nodesAPI name:
init
-
unassign
@Nullable public final java.lang.String unassign()number of unassigned shardsAPI name:
unassign
-
pendingTasks
@Nullable public final java.lang.String pendingTasks()number of pending tasksAPI name:
pending_tasks
-
maxTaskWaitTime
@Nullable public final java.lang.String maxTaskWaitTime()wait time of longest task pendingAPI name:
max_task_wait_time
-
activeShardsPercent
@Nullable public final java.lang.String activeShardsPercent()active number of shards in percentAPI name:
active_shards_percent
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupHealthRecordDeserializer
-