Class ForecastStats
java.lang.Object
org.elasticsearch.client.ml.job.stats.ForecastStats
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class ForecastStats extends java.lang.Object implements ToXContentObject
A class to hold statistics about forecasts.
-
Nested Class Summary
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 ParseFieldFORECASTED_JOBSstatic ParseFieldMEMORY_BYTESstatic ConstructingObjectParser<ForecastStats,java.lang.Void>PARSERstatic ParseFieldPROCESSING_TIME_MSstatic ParseFieldRECORDSstatic ParseFieldSTATUSstatic ParseFieldTOTAL -
Constructor Summary
Constructors Constructor Description ForecastStats(long total, SimpleStats memoryStats, SimpleStats recordStats, SimpleStats runtimeStats, java.util.Map<java.lang.String,java.lang.Long> statusCounts) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetForecastedJobs()The number of jobs that have at least one forecast.SimpleStatsgetMemoryStats()Statistics about the memory usage: minimum, maximum, average and total.SimpleStatsgetRecordStats()Statistics about the number of forecast records: minimum, maximum, average and total.SimpleStatsgetRuntimeStats()Statistics about the forecast runtime in milliseconds: minimum, maximum, average and totaljava.util.Map<java.lang.String,java.lang.Long>getStatusCounts()Counts per forecast status, for example: {"finished" : 2}.longgetTotal()The number of forecasts currently available for this model.inthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
Constructor Details
-
ForecastStats
public ForecastStats(long total, SimpleStats memoryStats, SimpleStats recordStats, SimpleStats runtimeStats, java.util.Map<java.lang.String,java.lang.Long> statusCounts)
-
-
Method Details
-
getTotal
public long getTotal()The number of forecasts currently available for this model. -
getForecastedJobs
public long getForecastedJobs()The number of jobs that have at least one forecast. -
getMemoryStats
Statistics about the memory usage: minimum, maximum, average and total. -
getRecordStats
Statistics about the number of forecast records: minimum, maximum, average and total. -
getRuntimeStats
Statistics about the forecast runtime in milliseconds: minimum, maximum, average and total -
getStatusCounts
public java.util.Map<java.lang.String,java.lang.Long> getStatusCounts()Counts per forecast status, for example: {"finished" : 2}. -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-