Class ModelSizeStats
- java.lang.Object
-
- org.elasticsearch.client.ml.job.process.ModelSizeStats
-
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class ModelSizeStats extends java.lang.Object implements ToXContentObject
Provide access to the C++ model memory usage numbers for the Java process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelSizeStats.Builder
static class
ModelSizeStats.MemoryStatus
The status of the memory monitored by the ResourceMonitor.-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ParseField
BUCKET_ALLOCATION_FAILURES_COUNT_FIELD
static ParseField
LOG_TIME_FIELD
static ParseField
MEMORY_STATUS_FIELD
static ParseField
MODEL_BYTES_FIELD
Field Namesstatic ConstructingObjectParser<ModelSizeStats.Builder,java.lang.Void>
PARSER
static ParseField
RESULT_TYPE_FIELD
static java.lang.String
RESULT_TYPE_VALUE
Result typestatic ParseField
TIMESTAMP_FIELD
static ParseField
TOTAL_BY_FIELD_COUNT_FIELD
static ParseField
TOTAL_OVER_FIELD_COUNT_FIELD
static ParseField
TOTAL_PARTITION_FIELD_COUNT_FIELD
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object other)
Compare all the fields.long
getBucketAllocationFailuresCount()
java.lang.String
getJobId()
java.util.Date
getLogTime()
The wall clock time at the point when this instance was created.ModelSizeStats.MemoryStatus
getMemoryStatus()
long
getModelBytes()
java.util.Date
getTimestamp()
The timestamp of the last processed record when this instance was created.long
getTotalByFieldCount()
long
getTotalOverFieldCount()
long
getTotalPartitionFieldCount()
int
hashCode()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
RESULT_TYPE_VALUE
public static final java.lang.String RESULT_TYPE_VALUE
Result type- See Also:
- Constant Field Values
-
RESULT_TYPE_FIELD
public static final ParseField RESULT_TYPE_FIELD
-
MODEL_BYTES_FIELD
public static final ParseField MODEL_BYTES_FIELD
Field Names
-
TOTAL_BY_FIELD_COUNT_FIELD
public static final ParseField TOTAL_BY_FIELD_COUNT_FIELD
-
TOTAL_OVER_FIELD_COUNT_FIELD
public static final ParseField TOTAL_OVER_FIELD_COUNT_FIELD
-
TOTAL_PARTITION_FIELD_COUNT_FIELD
public static final ParseField TOTAL_PARTITION_FIELD_COUNT_FIELD
-
BUCKET_ALLOCATION_FAILURES_COUNT_FIELD
public static final ParseField BUCKET_ALLOCATION_FAILURES_COUNT_FIELD
-
MEMORY_STATUS_FIELD
public static final ParseField MEMORY_STATUS_FIELD
-
LOG_TIME_FIELD
public static final ParseField LOG_TIME_FIELD
-
TIMESTAMP_FIELD
public static final ParseField TIMESTAMP_FIELD
-
PARSER
public static final ConstructingObjectParser<ModelSizeStats.Builder,java.lang.Void> PARSER
-
-
Method Detail
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
getJobId
public java.lang.String getJobId()
-
getModelBytes
public long getModelBytes()
-
getTotalByFieldCount
public long getTotalByFieldCount()
-
getTotalPartitionFieldCount
public long getTotalPartitionFieldCount()
-
getTotalOverFieldCount
public long getTotalOverFieldCount()
-
getBucketAllocationFailuresCount
public long getBucketAllocationFailuresCount()
-
getMemoryStatus
public ModelSizeStats.MemoryStatus getMemoryStatus()
-
getTimestamp
public java.util.Date getTimestamp()
The timestamp of the last processed record when this instance was created.- Returns:
- The record time
-
getLogTime
public java.util.Date getLogTime()
The wall clock time at the point when this instance was created.- Returns:
- The wall clock time
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
Compare all the fields.- Overrides:
equals
in classjava.lang.Object
-
-